clang-tools 20.0.0git
|
A diagnostic consumer that turns each Diagnostic
into a SourceManager-independent
ClangTidyError
.
More...
#include <ClangTidyDiagnosticConsumer.h>
Public Member Functions | |
ClangTidyDiagnosticConsumer (ClangTidyContext &Ctx, DiagnosticsEngine *ExternalDiagEngine=nullptr, bool RemoveIncompatibleErrors=true, bool GetFixesFromNotes=false, bool EnableNolintBlocks=true) | |
void | HandleDiagnostic (DiagnosticsEngine::Level DiagLevel, const Diagnostic &Info) override |
std::vector< ClangTidyError > | take () |
A diagnostic consumer that turns each Diagnostic
into a SourceManager-independent
ClangTidyError
.
Definition at line 277 of file ClangTidyDiagnosticConsumer.h.
ClangTidyDiagnosticConsumer::ClangTidyDiagnosticConsumer | ( | ClangTidyContext & | Ctx, |
DiagnosticsEngine * | ExternalDiagEngine = nullptr , |
||
bool | RemoveIncompatibleErrors = true , |
||
bool | GetFixesFromNotes = false , |
||
bool | EnableNolintBlocks = true |
||
) |
EnableNolintBlocks | Enables diagnostic-disabling inside blocks of code, delimited by NOLINTBEGIN and NOLINTEND. |
Definition at line 307 of file ClangTidyDiagnosticConsumer.cpp.
References clang::tidy::ClangTidyOptions::ExcludeHeaderFilterRegex, clang::tidy::ClangTidyContext::getOptions(), and clang::tidy::ClangTidyOptions::HeaderFilterRegex.
|
override |
Definition at line 372 of file ClangTidyDiagnosticConsumer.cpp.
References clang::tidy::ClangTidyContext::diag(), Error, clang::tidy::ClangTidyStats::ErrorsIgnoredNOLINT, clang::tidy::ClangTidyContext::getCheckName(), clang::tidy::ClangTidyContext::getCurrentBuildDirectory(), clang::tidy::ClangTidyContext::getLangOpts(), Info, Loc, clang::tidy::ClangTidyContext::shouldSuppressDiagnostic(), and clang::tidy::ClangTidyContext::treatAsError().
std::vector< ClangTidyError > ClangTidyDiagnosticConsumer::take | ( | ) |
Definition at line 748 of file ClangTidyDiagnosticConsumer.cpp.
References Errors.