aboutsummaryrefslogtreecommitdiff
path: root/clang-tidy/FixIncludes.hh
diff options
context:
space:
mode:
Diffstat (limited to 'clang-tidy/FixIncludes.hh')
-rw-r--r--clang-tidy/FixIncludes.hh21
1 files changed, 21 insertions, 0 deletions
diff --git a/clang-tidy/FixIncludes.hh b/clang-tidy/FixIncludes.hh
new file mode 100644
index 000000000..ea890cd39
--- /dev/null
+++ b/clang-tidy/FixIncludes.hh
@@ -0,0 +1,21 @@
+#pragma once
+///@file
+
+#include <clang-tidy/ClangTidyCheck.h>
+#include <clang/ASTMatchers/ASTMatchFinder.h>
+#include <llvm/ADT/StringRef.h>
+
+namespace nix::clang_tidy {
+
+using namespace clang;
+using namespace clang::tidy;
+
+class FixIncludesCheck : public ClangTidyCheck {
+ public:
+ FixIncludesCheck(StringRef Name, ClangTidyContext *Context)
+ : ClangTidyCheck(Name, Context) {}
+
+ void registerPPCallbacks(const SourceManager &SM, Preprocessor *PP, Preprocessor *ModuleExpanderPP) override;
+};
+
+};