clang-tools 22.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 |
void | BeginSourceFile (const LangOptions &LangOpts, const Preprocessor *PP=nullptr) override |
void | EndSourceFile () override |
std::vector< ClangTidyError > | take () |
A diagnostic consumer that turns each Diagnostic
into a SourceManager-independent
ClangTidyError
.
Definition at line 288 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.
|
override |
Definition at line 370 of file ClangTidyDiagnosticConsumer.cpp.
|
override |
Definition at line 377 of file ClangTidyDiagnosticConsumer.cpp.
std::vector< ClangTidyError > ClangTidyDiagnosticConsumer::take | ( | ) |
Definition at line 776 of file ClangTidyDiagnosticConsumer.cpp.
Referenced by clang::tidy::runClangTidy().