Changeset View
Changeset View
Standalone View
Standalone View
src/Clazy.h
Show First 20 Lines • Show All 80 Lines • ▼ Show 20 Line(s) | |||||
81 | */ | 81 | */ | ||
82 | class ClazyStandaloneASTAction | 82 | class ClazyStandaloneASTAction | ||
83 | : public clang::ASTFrontendAction | 83 | : public clang::ASTFrontendAction | ||
84 | { | 84 | { | ||
85 | public: | 85 | public: | ||
86 | explicit ClazyStandaloneASTAction(const std::string &checkList, | 86 | explicit ClazyStandaloneASTAction(const std::string &checkList, | ||
87 | const std::string &headerFilter, | 87 | const std::string &headerFilter, | ||
88 | const std::string &ignoreDirs, | 88 | const std::string &ignoreDirs, | ||
89 | const std::string &exportFixes, | ||||
89 | ClazyContext::ClazyOptions = ClazyContext::ClazyOption_None); | 90 | ClazyContext::ClazyOptions = ClazyContext::ClazyOption_None); | ||
90 | protected: | 91 | protected: | ||
91 | std::unique_ptr<clang::ASTConsumer> CreateASTConsumer(clang::CompilerInstance &ci, llvm::StringRef) override; | 92 | std::unique_ptr<clang::ASTConsumer> CreateASTConsumer(clang::CompilerInstance &ci, llvm::StringRef) override; | ||
92 | private: | 93 | private: | ||
93 | const std::string m_checkList; | 94 | const std::string m_checkList; | ||
94 | const std::string m_headerFilter; | 95 | const std::string m_headerFilter; | ||
95 | const std::string m_ignoreDirs; | 96 | const std::string m_ignoreDirs; | ||
97 | const std::string m_exportFixes; | ||||
96 | const ClazyContext::ClazyOptions m_options; | 98 | const ClazyContext::ClazyOptions m_options; | ||
97 | }; | 99 | }; | ||
98 | 100 | | |||
99 | /** | 101 | /** | ||
100 | * Clazy's AST Consumer. | 102 | * Clazy's AST Consumer. | ||
101 | */ | 103 | */ | ||
102 | class ClazyASTConsumer | 104 | class ClazyASTConsumer | ||
103 | : public clang::ASTConsumer | 105 | : public clang::ASTConsumer | ||
Show All 27 Lines |