LLDB mainline
|
#include <DiagnosticManager.h>
Public Member Functions | |
void | Clear () |
const DiagnosticList & | Diagnostics () |
bool | HasFixIts () const |
void | AddDiagnostic (llvm::StringRef message, lldb::Severity severity, DiagnosticOrigin origin, uint32_t compiler_id=LLDB_INVALID_COMPILER_ID) |
void | AddDiagnostic (std::unique_ptr< Diagnostic > diagnostic) |
void | Consume (DiagnosticManager &&other) |
Moves over the contents of a second diagnostic manager over. | |
size_t | Printf (lldb::Severity severity, const char *format,...) __attribute__((format(printf |
size_t void | PutString (lldb::Severity severity, llvm::StringRef str) |
void | AppendMessageToDiagnostic (llvm::StringRef str) |
std::string | GetString (char separator='\n') |
void | Dump (Log *log) |
const std::string & | GetFixedExpression () |
void | SetFixedExpression (std::string fixed_expression) |
Protected Attributes | |
DiagnosticList | m_diagnostics |
std::string | m_fixed_expression |
Definition at line 87 of file DiagnosticManager.h.
|
inline |
Definition at line 103 of file DiagnosticManager.h.
References m_diagnostics.
Referenced by ClangDiagnosticManagerAdapter::HandleDiagnostic(), Printf(), and PutString().
|
inline |
Definition at line 110 of file DiagnosticManager.h.
References m_diagnostics.
|
inline |
Definition at line 128 of file DiagnosticManager.h.
References m_diagnostics.
Referenced by lldb_private::LLVMUserExpression::DoExecute(), ClangDiagnosticManagerAdapter::HandleDiagnostic(), and lldb_private::ClangExpressionParser::ParseInternal().
|
inline |
Definition at line 89 of file DiagnosticManager.h.
References m_diagnostics, and m_fixed_expression.
Referenced by lldb_private::BreakpointLocation::ConditionSaysStop(), PlatformPOSIX::DoLoadImage(), lldb_private::PlatformWindows::DoLoadImage(), lldb_private::UserExpression::Evaluate(), lldb_private::UtilityFunction::MakeFunctionCaller(), lldb_private::AppleGetItemInfoHandler::SetupGetItemInfoFunction(), lldb_private::AppleGetPendingItemsHandler::SetupGetPendingItemsFunction(), lldb_private::AppleGetQueuesHandler::SetupGetQueuesFunction(), lldb_private::AppleGetThreadItemInfoHandler::SetupGetThreadItemInfoFunction(), lldb_private::AppleObjCRuntimeV2::SharedCacheClassInfoExtractor::UpdateISAToDescriptorMap(), and lldb_private::AppleObjCRuntimeV2::DynamicClassInfoExtractor::UpdateISAToDescriptorMap().
|
inline |
Moves over the contents of a second diagnostic manager over.
Leaves other diagnostic manager in an empty state.
Definition at line 117 of file DiagnosticManager.h.
References m_diagnostics, and m_fixed_expression.
|
inline |
Definition at line 94 of file DiagnosticManager.h.
References m_diagnostics.
Referenced by lldb_private::ClangExpressionParser::DoPrepareForExecution(), lldb_private::UserExpression::Evaluate(), GetString(), ClangDiagnosticManagerAdapter::MaybeGetLastClangDiag(), and lldb_private::ClangExpressionParser::RewriteExpression().
void DiagnosticManager::Dump | ( | Log * | log | ) |
Definition at line 18 of file DiagnosticManager.cpp.
References GetString(), and lldb_private::Log::PutCString().
Referenced by lldb_private::AppleObjCTrampolineHandler::SetupDispatchFunction(), lldb_private::AppleGetItemInfoHandler::SetupGetItemInfoFunction(), lldb_private::AppleGetPendingItemsHandler::SetupGetPendingItemsFunction(), lldb_private::AppleGetQueuesHandler::SetupGetQueuesFunction(), lldb_private::AppleGetThreadItemInfoHandler::SetupGetThreadItemInfoFunction(), lldb_private::AppleObjCRuntimeV2::SharedCacheClassInfoExtractor::UpdateISAToDescriptorMap(), and lldb_private::AppleObjCRuntimeV2::DynamicClassInfoExtractor::UpdateISAToDescriptorMap().
|
inline |
Definition at line 142 of file DiagnosticManager.h.
References m_fixed_expression.
Referenced by lldb_private::ClangUserExpression::TryParse().
std::string DiagnosticManager::GetString | ( | char | separator = '\n' | ) |
Definition at line 47 of file DiagnosticManager.cpp.
References Diagnostics(), and StringForSeverity().
Referenced by lldb_private::BreakpointLocation::ConditionSaysStop(), lldb_private::Target::CreateUtilityFunction(), PlatformPOSIX::DoLoadImage(), lldb_private::PlatformWindows::DoLoadImage(), lldb_private::ClangExpressionParser::DoPrepareForExecution(), Dump(), lldb_private::UserExpression::Evaluate(), lldb_private::UtilityFunction::MakeFunctionCaller(), and lldb_private::ExpressionParser::RunStaticInitializers().
|
inline |
Definition at line 96 of file DiagnosticManager.h.
References m_diagnostics.
Referenced by lldb_private::ClangUserExpression::TryParse().
size_t DiagnosticManager::Printf | ( | lldb::Severity | severity, |
const char * | format, | ||
... | |||
) |
Definition at line 68 of file DiagnosticManager.cpp.
References AddDiagnostic(), lldb_private::eDiagnosticOriginLLDB, lldb_private::StreamString::GetString(), and lldb_private::Stream::PrintfVarArg().
Referenced by lldb_private::ClangUserExpression::AddArguments(), lldb_private::ClangFunctionCaller::CompileFunction(), lldb_private::LLVMUserExpression::DoExecute(), lldb_private::LLVMUserExpression::FinalizeJITExecution(), lldb_private::ClangUtilityFunction::Install(), lldb_private::LLVMUserExpression::PrepareToExecuteJITExpression(), lldb_private::Process::RunThreadPlan(), lldb_private::FunctionCaller::WriteFunctionArguments(), and lldb_private::FunctionCaller::WriteFunctionWrapper().
void DiagnosticManager::PutString | ( | lldb::Severity | severity, |
llvm::StringRef | str | ||
) |
Definition at line 82 of file DiagnosticManager.cpp.
References AddDiagnostic(), and lldb_private::eDiagnosticOriginLLDB.
Referenced by lldb_private::ClangUserExpression::AddArguments(), lldb_private::ClangFunctionCaller::CompileFunction(), lldb_private::ClangUserExpression::Complete(), lldb_private::ClangUserExpression::CreateSourceCode(), lldb_private::LLVMUserExpression::DoExecute(), lldb_private::FunctionCaller::GetThreadPlanToCallFunction(), lldb_private::FunctionCaller::InsertFunction(), lldb_private::ClangUtilityFunction::Install(), lldb_private::ClangUserExpression::Parse(), lldb_private::ClangExpressionParser::ParseInternal(), lldb_private::ClangUserExpression::PrepareForParsing(), lldb_private::LLVMUserExpression::PrepareToExecuteJITExpression(), lldb_private::Process::RunThreadPlan(), SetupDeclVendor(), lldb_private::ClangUserExpression::SetupPersistentState(), lldb_private::ClangUserExpression::TryParse(), and lldb_private::FunctionCaller::WriteFunctionArguments().
|
inline |
Definition at line 145 of file DiagnosticManager.h.
References m_fixed_expression.
Referenced by lldb_private::ClangExpressionParser::RewriteExpression().
|
protected |
Definition at line 150 of file DiagnosticManager.h.
Referenced by AddDiagnostic(), AppendMessageToDiagnostic(), Clear(), Consume(), Diagnostics(), and HasFixIts().
|
protected |
Definition at line 151 of file DiagnosticManager.h.
Referenced by Clear(), Consume(), GetFixedExpression(), and SetFixedExpression().