clang-tools
4.0.0
|
A diagnostic consumer that turns each Diagnostic
into a SourceManager-independent
ClangTidyError
.
More...
#include <ClangTidyDiagnosticConsumer.h>
Public Member Functions | |
ClangTidyDiagnosticConsumer (ClangTidyContext &Ctx) | |
void | HandleDiagnostic (DiagnosticsEngine::Level DiagLevel, const Diagnostic &Info) override |
void | finish () override |
Flushes the internal diagnostics buffer to the ClangTidyContext. More... | |
A diagnostic consumer that turns each Diagnostic
into a SourceManager-independent
ClangTidyError
.
Definition at line 224 of file ClangTidyDiagnosticConsumer.h.
ClangTidyDiagnosticConsumer::ClangTidyDiagnosticConsumer | ( | ClangTidyContext & | Ctx | ) |
Definition at line 238 of file ClangTidyDiagnosticConsumer.cpp.
References DiagOpts.
|
override |
Flushes the internal diagnostics buffer to the ClangTidyContext.
Definition at line 577 of file ClangTidyDiagnosticConsumer.cpp.
|
override |
Definition at line 297 of file ClangTidyDiagnosticConsumer.cpp.
References clang::tidy::GlobList::contains(), clang::tidy::ClangTidyStats::ErrorsIgnoredNOLINT, clang::tidy::ClangTidyContext::getCheckName(), clang::tidy::ClangTidyContext::getCurrentBuildDirectory(), clang::tidy::ClangTidyContext::getLangOpts(), clang::tidy::ClangTidyContext::getWarningAsErrorFilter(), LineIsMarkedWithNOLINTinMacro(), and clang::tidy::modernize::Message.