clang API Documentation
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 | |
DiagnosticConsumer * | Other |
SmallVector< std::string, 2 > | UnusedInputs |
Definition at line 151 of file CompilationDatabase.cpp.
Definition at line 153 of file CompilationDatabase.cpp.
clang::tooling::UnusedInputDiagConsumer::UnusedInputDiagConsumer | ( | DiagnosticConsumer * | Other | ) | [inline] |
Definition at line 157 of file CompilationDatabase.cpp.
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.
Definition at line 169 of file CompilationDatabase.cpp.
Referenced by HandleDiagnostic().
SmallVector<std::string, 2> clang::tooling::UnusedInputDiagConsumer::UnusedInputs |
Definition at line 170 of file CompilationDatabase.cpp.
Referenced by HandleDiagnostic(), and clang::tooling::stripPositionalArgs().