clang-tools 18.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 274 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 308 of file ClangTidyDiagnosticConsumer.cpp.
|
override |
Definition at line 362 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 745 of file ClangTidyDiagnosticConsumer.cpp.
Referenced by clang::tidy::runClangTidy().