LLDB  mainline
Public Member Functions | Private Attributes | List of all members
ClangDiagnosticManagerAdapter Class Reference
Inheritance diagram for ClangDiagnosticManagerAdapter:
Inheritance graph
[legend]
Collaboration diagram for ClangDiagnosticManagerAdapter:
Collaboration 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. More...
 
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. More...
 
std::string m_output
 Output string filled by m_os. More...
 

Detailed Description

Definition at line 158 of file ClangExpressionParser.cpp.

Constructor & Destructor Documentation

◆ ClangDiagnosticManagerAdapter()

ClangDiagnosticManagerAdapter::ClangDiagnosticManagerAdapter ( DiagnosticOptions &  opts)
inline

Definition at line 160 of file ClangExpressionParser.cpp.

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 176 of file ClangExpressionParser.cpp.

◆ ResetManager()

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

Member Data Documentation

◆ m_manager

DiagnosticManager* ClangDiagnosticManagerAdapter::m_manager = nullptr
private

Definition at line 274 of file ClangExpressionParser.cpp.

◆ m_os

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

Output stream of m_passthrough.

Definition at line 277 of file ClangExpressionParser.cpp.

◆ m_output

std::string ClangDiagnosticManagerAdapter::m_output
private

Output string filled by m_os.

Definition at line 279 of file ClangExpressionParser.cpp.

◆ m_passthrough

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

Definition at line 275 of file ClangExpressionParser.cpp.


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