clang-tools 20.0.0git
|
This class is used to locate NOLINT comments in the file being analyzed, to decide whether a diagnostic should be suppressed. More...
#include <NoLintDirectiveHandler.h>
Classes | |
class | Impl |
Public Member Functions | |
NoLintDirectiveHandler () | |
~NoLintDirectiveHandler () | |
NoLintDirectiveHandler (const NoLintDirectiveHandler &)=delete | |
NoLintDirectiveHandler & | operator= (const NoLintDirectiveHandler &)=delete |
bool | shouldSuppress (DiagnosticsEngine::Level DiagLevel, const Diagnostic &Diag, llvm::StringRef DiagName, llvm::SmallVectorImpl< tooling::Diagnostic > &NoLintErrors, bool AllowIO, bool EnableNoLintBlocks) |
This class is used to locate NOLINT comments in the file being analyzed, to decide whether a diagnostic should be suppressed.
This class keeps a cache of every NOLINT comment found so that files do not have to be repeatedly parsed each time a new diagnostic is raised.
Definition at line 30 of file NoLintDirectiveHandler.h.
clang::tidy::NoLintDirectiveHandler::NoLintDirectiveHandler | ( | ) |
Definition at line 400 of file NoLintDirectiveHandler.cpp.
|
default |
|
delete |
|
delete |
bool clang::tidy::NoLintDirectiveHandler::shouldSuppress | ( | DiagnosticsEngine::Level | DiagLevel, |
const Diagnostic & | Diag, | ||
llvm::StringRef | DiagName, | ||
llvm::SmallVectorImpl< tooling::Diagnostic > & | NoLintErrors, | ||
bool | AllowIO, | ||
bool | EnableNoLintBlocks | ||
) |
Definition at line 405 of file NoLintDirectiveHandler.cpp.
Referenced by clang::tidy::ClangTidyContext::shouldSuppressDiagnostic().