File indexing completed on 2026-05-10 08:36:23
0001
0002
0003
0004
0005
0006
0007
0008
0009 #ifndef LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_NOLINTDIRECTIVEHANDLER_H
0010 #define LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_NOLINTDIRECTIVEHANDLER_H
0011
0012 #include "clang/Basic/Diagnostic.h"
0013 #include "llvm/ADT/StringRef.h"
0014 #include <memory>
0015
0016 namespace clang::tooling {
0017 struct Diagnostic;
0018 }
0019
0020 namespace llvm {
0021 template <typename T> class SmallVectorImpl;
0022 }
0023
0024 namespace clang::tidy {
0025
0026
0027
0028
0029
0030 class NoLintDirectiveHandler {
0031 public:
0032 NoLintDirectiveHandler();
0033 ~NoLintDirectiveHandler();
0034 NoLintDirectiveHandler(const NoLintDirectiveHandler &) = delete;
0035 NoLintDirectiveHandler &operator=(const NoLintDirectiveHandler &) = delete;
0036
0037 bool shouldSuppress(DiagnosticsEngine::Level DiagLevel,
0038 const Diagnostic &Diag, llvm::StringRef DiagName,
0039 llvm::SmallVectorImpl<tooling::Diagnostic> &NoLintErrors,
0040 bool AllowIO, bool EnableNoLintBlocks);
0041
0042 private:
0043 class Impl;
0044 std::unique_ptr<Impl> PImpl;
0045 };
0046
0047 }
0048
0049 #endif