|
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 309 of file ClangTidyDiagnosticConsumer.cpp.
|
override |
Definition at line 363 of file ClangTidyDiagnosticConsumer.cpp.
|
override |
Definition at line 371 of file ClangTidyDiagnosticConsumer.cpp.
|
override |
Definition at line 378 of file ClangTidyDiagnosticConsumer.cpp.
| std::vector< ClangTidyError > ClangTidyDiagnosticConsumer::take | ( | ) |
Definition at line 778 of file ClangTidyDiagnosticConsumer.cpp.
Referenced by clang::tidy::runClangTidy().