clang API Documentation

Public Member Functions | Public Attributes
clang::tooling::UnusedInputDiagConsumer Class Reference
Inheritance diagram for clang::tooling::UnusedInputDiagConsumer:
Inheritance graph
[legend]
Collaboration diagram for clang::tooling::UnusedInputDiagConsumer:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 UnusedInputDiagConsumer ()
 UnusedInputDiagConsumer (DiagnosticConsumer *Other)
virtual void HandleDiagnostic (DiagnosticsEngine::Level DiagLevel, const Diagnostic &Info) override
 Handle this diagnostic, reporting it to the user or capturing it to a log as needed.

Public Attributes

DiagnosticConsumerOther
SmallVector< std::string, 2 > UnusedInputs

Detailed Description

Definition at line 151 of file CompilationDatabase.cpp.


Constructor & Destructor Documentation

Definition at line 153 of file CompilationDatabase.cpp.

Definition at line 157 of file CompilationDatabase.cpp.


Member Function Documentation

virtual void clang::tooling::UnusedInputDiagConsumer::HandleDiagnostic ( DiagnosticsEngine::Level  DiagLevel,
const Diagnostic Info 
) [inline, override, virtual]

Handle this diagnostic, reporting it to the user or capturing it to a log as needed.

The default implementation just keeps track of the total number of warnings and errors.

Reimplemented from clang::DiagnosticConsumer.

Definition at line 159 of file CompilationDatabase.cpp.

References clang::Diagnostic::getArgStdStr(), clang::Diagnostic::getID(), clang::DiagnosticConsumer::HandleDiagnostic(), Other, and UnusedInputs.


Member Data Documentation

Definition at line 169 of file CompilationDatabase.cpp.

Referenced by HandleDiagnostic().


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