LLDB mainline
Public Member Functions | Private Attributes | List of all members
ClangDiagnosticManagerAdapter Class Reference
Inheritance diagram for ClangDiagnosticManagerAdapter:
Inheritance graph
[legend]

Public Member Functions

 ClangDiagnosticManagerAdapter (DiagnosticOptions &opts)
 
void ResetManager (DiagnosticManager *manager=nullptr)
 
ClangDiagnosticMaybeGetLastClangDiag () 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

DiagnosticManagerm_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.
 

Detailed Description

Definition at line 162 of file ClangExpressionParser.cpp.

Constructor & Destructor Documentation

◆ ClangDiagnosticManagerAdapter()

ClangDiagnosticManagerAdapter::ClangDiagnosticManagerAdapter ( DiagnosticOptions &  opts)
inline

Definition at line 164 of file ClangExpressionParser.cpp.

References m_os, m_output, and m_passthrough.

Member Function Documentation

◆ BeginSourceFile()

void ClangDiagnosticManagerAdapter::BeginSourceFile ( const LangOptions &  LO,
const Preprocessor *  PP 
)
inlineoverride

◆ EndSourceFile()

void ClangDiagnosticManagerAdapter::EndSourceFile ( )
inlineoverride

◆ HandleDiagnostic()

void ClangDiagnosticManagerAdapter::HandleDiagnostic ( DiagnosticsEngine::Level  DiagLevel,
const clang::Diagnostic &  Info 
)
inlineoverride

◆ MaybeGetLastClangDiag()

ClangDiagnostic * ClangDiagnosticManagerAdapter::MaybeGetLastClangDiag ( ) const
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().

◆ ResetManager()

void ClangDiagnosticManagerAdapter::ResetManager ( DiagnosticManager manager = nullptr)
inline

Definition at line 173 of file ClangExpressionParser.cpp.

References m_manager.

Referenced by lldb_private::ClangExpressionParser::ParseInternal().

Member Data Documentation

◆ m_manager

DiagnosticManager* ClangDiagnosticManagerAdapter::m_manager = nullptr
private

◆ m_os

std::shared_ptr<llvm::raw_string_ostream> ClangDiagnosticManagerAdapter::m_os
private

Output stream of m_passthrough.

Definition at line 281 of file ClangExpressionParser.cpp.

Referenced by ClangDiagnosticManagerAdapter(), and HandleDiagnostic().

◆ m_output

std::string ClangDiagnosticManagerAdapter::m_output
private

Output string filled by m_os.

Definition at line 283 of file ClangExpressionParser.cpp.

Referenced by ClangDiagnosticManagerAdapter(), and HandleDiagnostic().

◆ m_passthrough

std::shared_ptr<clang::TextDiagnosticPrinter> ClangDiagnosticManagerAdapter::m_passthrough
private

The documentation for this class was generated from the following file: