Chisel
Reformat.h
Go to the documentation of this file.
1 #ifndef REFORMAT_H
2 #define REFORMAT_H
3 
4 #include "clang/AST/RecursiveASTVisitor.h"
5 #include "clang/Format/Format.h"
6 
7 #include "Transformation.h"
8 
10 class Reformat : public Transformation {
11 public:
12  Reformat() {}
13  ~Reformat() {}
14 
15 private:
16  void Initialize(clang::ASTContext &Ctx);
17  void HandleTranslationUnit(clang::ASTContext &Ctx);
18  void doReformatting(std::string FileName, clang::format::FormatStyle FS);
19  std::vector<clang::tooling::Range> createRanges(llvm::MemoryBuffer *Code);
20 };
21 
22 #endif // REFORMAT_H
Reformat()
Definition: Reformat.h:12
Represesnts a transformation action on an AST.
Definition: Transformation.h:10
Represents a reformatting action.
Definition: Reformat.h:10
~Reformat()
Definition: Reformat.h:13