LLDB mainline
|
Public Member Functions | |
ClangDiagnosticManagerAdapter (DiagnosticOptions &opts) | |
void | ResetManager (DiagnosticManager *manager=nullptr) |
ClangDiagnostic * | MaybeGetLastClangDiag () const |
Returns the last ClangDiagnostic message that the DiagnosticManager received or a nullptr if the DiagnosticMangager hasn't seen any Clang diagnostics yet. | |
void | HandleDiagnostic (DiagnosticsEngine::Level DiagLevel, const clang::Diagnostic &Info) override |
void | BeginSourceFile (const LangOptions &LO, const Preprocessor *PP) override |
void | EndSourceFile () override |
Private Attributes | |
DiagnosticManager * | m_manager = nullptr |
std::shared_ptr< clang::TextDiagnosticPrinter > | m_passthrough |
std::shared_ptr< llvm::raw_string_ostream > | m_os |
Output stream of m_passthrough. | |
std::string | m_output |
Output string filled by m_os. | |
Definition at line 162 of file ClangExpressionParser.cpp.
|
inline |
Definition at line 164 of file ClangExpressionParser.cpp.
References m_os, m_output, and m_passthrough.
|
inlineoverride |
Definition at line 271 of file ClangExpressionParser.cpp.
References m_passthrough.
Referenced by lldb_private::ClangExpressionParser::ParseInternal().
|
inlineoverride |
Definition at line 275 of file ClangExpressionParser.cpp.
References m_passthrough.
Referenced by lldb_private::ClangExpressionParser::ParseInternal().
|
inlineoverride |
Definition at line 188 of file ClangExpressionParser.cpp.
References AddAllFixIts(), lldb_private::DiagnosticManager::AddDiagnostic(), lldb_private::DiagnosticManager::AppendMessageToDiagnostic(), lldb::eSeverityError, lldb::eSeverityInfo, lldb::eSeverityWarning, lldb_private::GetLog(), LLDB_LOG, m_manager, m_os, m_output, m_passthrough, and MaybeGetLastClangDiag().
|
inline |
Returns the last ClangDiagnostic message that the DiagnosticManager received or a nullptr if the DiagnosticMangager hasn't seen any Clang diagnostics yet.
Definition at line 180 of file ClangExpressionParser.cpp.
References lldb_private::DiagnosticManager::Diagnostics(), and m_manager.
Referenced by HandleDiagnostic().
|
inline |
Definition at line 173 of file ClangExpressionParser.cpp.
References m_manager.
Referenced by lldb_private::ClangExpressionParser::ParseInternal().
|
private |
Definition at line 278 of file ClangExpressionParser.cpp.
Referenced by HandleDiagnostic(), MaybeGetLastClangDiag(), and ResetManager().
|
private |
Output stream of m_passthrough.
Definition at line 281 of file ClangExpressionParser.cpp.
Referenced by ClangDiagnosticManagerAdapter(), and HandleDiagnostic().
|
private |
Output string filled by m_os.
Definition at line 283 of file ClangExpressionParser.cpp.
Referenced by ClangDiagnosticManagerAdapter(), and HandleDiagnostic().
|
private |
Definition at line 279 of file ClangExpressionParser.cpp.
Referenced by BeginSourceFile(), ClangDiagnosticManagerAdapter(), EndSourceFile(), and HandleDiagnostic().