| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
#ifndef LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_NOLINTDIRECTIVEHANDLER_H |
| 10 |
#define LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_NOLINTDIRECTIVEHANDLER_H |
| 11 |
|
| 12 |
#include "clang/Basic/Diagnostic.h" |
| 13 |
#include "llvm/ADT/StringRef.h" |
| 14 |
#include <memory> |
| 15 |
|
| 16 |
namespace clang::tooling { |
| 17 |
struct Diagnostic; |
| 18 |
} |
| 19 |
|
| 20 |
namespace llvm { |
| 21 |
template <typename T> class SmallVectorImpl; |
| 22 |
} |
| 23 |
|
| 24 |
namespace clang::tidy { |
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
class NoLintDirectiveHandler { |
| 31 |
public: |
| 32 |
NoLintDirectiveHandler(); |
| 33 |
~NoLintDirectiveHandler(); |
| 34 |
|
| 35 |
bool shouldSuppress(DiagnosticsEngine::Level DiagLevel, |
| 36 |
const Diagnostic &Diag, llvm::StringRef DiagName, |
| 37 |
llvm::SmallVectorImpl<tooling::Diagnostic> &NoLintErrors, |
| 38 |
bool AllowIO, bool EnableNoLintBlocks); |
| 39 |
|
| 40 |
private: |
| 41 |
class Impl; |
| 42 |
std::unique_ptr<Impl> PImpl; |
| 43 |
}; |
| 44 |
|
| 45 |
} |
| 46 |
|
| 47 |
#endif |