43cf487c25
It is a little bit scuffed, but it seems to produce correct results. We can run it at a later date when we want to explode every in-flight commit in existence and then need to filter-branch them. Fixes: https://git.lix.systems/lix-project/lix/issues/188 Change-Id: Id97e4651f78804a941d941df02c7c1b21ce453b6
21 lines
517 B
C++
21 lines
517 B
C++
#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;
|
|
};
|
|
|
|
};
|