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) |
llvm::Error | GetAsError (lldb::ExpressionResults result, llvm::Twine message={}) const |
Returns an ExpressionError with arg as error code. | |
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 103 of file DiagnosticManager.h.
void DiagnosticManager::AddDiagnostic | ( | llvm::StringRef | message, |
lldb::Severity | severity, | ||
DiagnosticOrigin | origin, | ||
uint32_t | compiler_id = LLDB_INVALID_COMPILER_ID |
||
) |
Definition at line 120 of file DiagnosticManager.cpp.
References m_diagnostics.
Referenced by lldb_private::UserExpression::Evaluate(), ClangDiagnosticManagerAdapter::HandleDiagnostic(), Printf(), and PutString().
|
inline |
Definition at line 123 of file DiagnosticManager.h.
References m_diagnostics.
|
inline |
Definition at line 141 of file DiagnosticManager.h.
References m_diagnostics.
Referenced by lldb_private::LLVMUserExpression::DoExecute(), and lldb_private::ClangExpressionParser::ParseInternal().
|
inline |
Definition at line 105 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 130 of file DiagnosticManager.h.
References m_diagnostics, and m_fixed_expression.
|
inline |
Definition at line 110 of file DiagnosticManager.h.
References m_diagnostics.
Referenced by lldb_private::UserExpression::Evaluate(), GetString(), ClangDiagnosticManagerAdapter::MaybeGetLastClangDiag(), and lldb_private::ClangExpressionParser::RewriteExpression().
void DiagnosticManager::Dump | ( | Log * | log | ) |
Definition at line 97 of file DiagnosticManager.cpp.
References GetString(), and lldb_private::Log::PutString().
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().
llvm::Error DiagnosticManager::GetAsError | ( | lldb::ExpressionResults | result, |
llvm::Twine | message = {} |
||
) | const |
Returns an ExpressionError with arg
as error code.
Definition at line 112 of file DiagnosticManager.cpp.
References m_diagnostics.
Referenced by lldb_private::BreakpointLocation::ConditionSaysStop(), lldb_private::Target::CreateUtilityFunction(), PlatformPOSIX::DoLoadImage(), lldb_private::PlatformWindows::DoLoadImage(), lldb_private::ClangExpressionParser::DoPrepareForExecution(), lldb_private::UserExpression::Evaluate(), lldb_private::UtilityFunction::MakeFunctionCaller(), and lldb_private::ExpressionParser::RunStaticInitializers().
|
inline |
Definition at line 159 of file DiagnosticManager.h.
References m_fixed_expression.
Referenced by lldb_private::ClangUserExpression::TryParse().
std::string DiagnosticManager::GetString | ( | char | separator = '\n' | ) |
Definition at line 77 of file DiagnosticManager.cpp.
References Diagnostics(), and StringForSeverity().
Referenced by Dump().
|
inline |
Definition at line 112 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 129 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 143 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 162 of file DiagnosticManager.h.
References m_fixed_expression.
Referenced by lldb_private::ClangExpressionParser::RewriteExpression().
|
protected |
Definition at line 167 of file DiagnosticManager.h.
Referenced by AddDiagnostic(), AppendMessageToDiagnostic(), Clear(), Consume(), Diagnostics(), GetAsError(), and HasFixIts().
|
protected |
Definition at line 168 of file DiagnosticManager.h.
Referenced by Clear(), Consume(), GetFixedExpression(), and SetFixedExpression().