LLDB mainline
|
Public Member Functions | |
ClangDiagnosticManagerAdapter (DiagnosticOptions &opts, StringRef filename) | |
void | ResetManager (DiagnosticManager *manager=nullptr) |
ClangDiagnostic * | MaybeGetLastClangDiag () const |
Returns the last error ClangDiagnostic message that the DiagnosticManager received or a nullptr. | |
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. | |
StringRef | m_filename |
Definition at line 164 of file ClangExpressionParser.cpp.
|
inline |
Definition at line 166 of file ClangExpressionParser.cpp.
References m_os, m_output, and m_passthrough.
|
inlineoverride |
Definition at line 306 of file ClangExpressionParser.cpp.
References m_passthrough.
Referenced by lldb_private::ClangExpressionParser::ParseInternal().
|
inlineoverride |
Definition at line 310 of file ClangExpressionParser.cpp.
References m_passthrough.
Referenced by lldb_private::ClangExpressionParser::ParseInternal().
|
inlineoverride |
Definition at line 198 of file ClangExpressionParser.cpp.
References AddAllFixIts(), lldb_private::DiagnosticManager::AddDiagnostic(), lldb_private::DiagnosticDetail::SourceLocation::column, lldb::eSeverityError, lldb::eSeverityInfo, lldb::eSeverityWarning, lldb_private::DiagnosticDetail::SourceLocation::file, lldb_private::GetLog(), lldb_private::DiagnosticDetail::SourceLocation::hidden, lldb_private::DiagnosticDetail::SourceLocation::in_user_input, lldb_private::DiagnosticDetail::SourceLocation::length, lldb_private::DiagnosticDetail::SourceLocation::line, LLDB_LOG, m_filename, m_manager, m_output, m_passthrough, MaybeGetLastClangDiag(), lldb_private::DiagnosticDetail::message, lldb_private::DiagnosticDetail::rendered, lldb_private::DiagnosticDetail::severity, and lldb_private::DiagnosticDetail::source_location.
|
inline |
Returns the last error ClangDiagnostic message that the DiagnosticManager received or a nullptr.
Definition at line 182 of file ClangExpressionParser.cpp.
References lldb_private::DiagnosticManager::Diagnostics(), lldb::eSeverityError, lldb::eSeverityWarning, and m_manager.
Referenced by HandleDiagnostic().
|
inline |
Definition at line 176 of file ClangExpressionParser.cpp.
References m_manager.
Referenced by lldb_private::ClangExpressionParser::ParseInternal().
|
private |
Definition at line 319 of file ClangExpressionParser.cpp.
Referenced by HandleDiagnostic().
|
private |
Definition at line 313 of file ClangExpressionParser.cpp.
Referenced by HandleDiagnostic(), MaybeGetLastClangDiag(), and ResetManager().
|
private |
Output stream of m_passthrough.
Definition at line 316 of file ClangExpressionParser.cpp.
Referenced by ClangDiagnosticManagerAdapter().
|
private |
Output string filled by m_os.
Definition at line 318 of file ClangExpressionParser.cpp.
Referenced by ClangDiagnosticManagerAdapter(), and HandleDiagnostic().
|
private |
Definition at line 314 of file ClangExpressionParser.cpp.
Referenced by BeginSourceFile(), ClangDiagnosticManagerAdapter(), EndSourceFile(), and HandleDiagnostic().