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, StringRef filename)
 
void ResetManager (DiagnosticManager *manager=nullptr)
 
ClangDiagnosticMaybeGetLastClangDiag () 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

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.
 
StringRef m_filename
 

Detailed Description

Definition at line 164 of file ClangExpressionParser.cpp.

Constructor & Destructor Documentation

◆ ClangDiagnosticManagerAdapter()

ClangDiagnosticManagerAdapter::ClangDiagnosticManagerAdapter ( DiagnosticOptions &  opts,
StringRef  filename 
)
inline

Definition at line 166 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 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().

◆ ResetManager()

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

Definition at line 176 of file ClangExpressionParser.cpp.

References m_manager.

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

Member Data Documentation

◆ m_filename

StringRef ClangDiagnosticManagerAdapter::m_filename
private

Definition at line 319 of file ClangExpressionParser.cpp.

Referenced by HandleDiagnostic().

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

Referenced by ClangDiagnosticManagerAdapter().

◆ m_output

std::string ClangDiagnosticManagerAdapter::m_output
private

Output string filled by m_os.

Definition at line 318 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: