Changeset View
Changeset View
Standalone View
Standalone View
src/Clazy.h
Show First 20 Lines • Show All 49 Lines • ▼ Show 20 Line(s) | 48 | public: | |||
---|---|---|---|---|---|
50 | enum HelpMode { | 50 | enum HelpMode { | ||
51 | HelpMode_Normal = 0, | 51 | HelpMode_Normal = 0, | ||
52 | HelpMode_AnchorHeader = 1 | 52 | HelpMode_AnchorHeader = 1 | ||
53 | }; | 53 | }; | ||
54 | 54 | | |||
55 | ClazyASTAction(); | 55 | ClazyASTAction(); | ||
56 | 56 | | |||
57 | protected: | 57 | protected: | ||
58 | /// @note This function is reentrant | ||||
58 | std::unique_ptr<clang::ASTConsumer> CreateASTConsumer(clang::CompilerInstance &ci, llvm::StringRef) override; | 59 | std::unique_ptr<clang::ASTConsumer> CreateASTConsumer(clang::CompilerInstance &ci, llvm::StringRef) override; | ||
60 | /// @note This function is reentrant | ||||
59 | bool ParseArgs(const clang::CompilerInstance &ci, const std::vector<std::string> &args_) override; | 61 | bool ParseArgs(const clang::CompilerInstance &ci, const std::vector<std::string> &args_) override; | ||
62 | | ||||
60 | void PrintHelp(llvm::raw_ostream &ros, HelpMode = HelpMode_Normal); | 63 | void PrintHelp(llvm::raw_ostream &ros, HelpMode = HelpMode_Normal); | ||
61 | void PrintAnchorHeader(llvm::raw_ostream &ro, RegisteredCheck::List &checks); | 64 | void PrintAnchorHeader(llvm::raw_ostream &ro, RegisteredCheck::List &checks); | ||
62 | private: | 65 | private: | ||
63 | void printRequestedChecks(); | 66 | void printRequestedChecks(); | ||
64 | RegisteredCheck::List m_checks; | 67 | RegisteredCheck::List m_checks; | ||
65 | ClazyContext::ClazyOptions m_options = 0; | 68 | ClazyContext::ClazyOptions m_options = 0; | ||
66 | CheckManager *const m_checkManager; | 69 | CheckManager *const m_checkManager; | ||
67 | ClazyContext *m_context = nullptr; | 70 | ClazyContext *m_context = nullptr; | ||
▲ Show 20 Lines • Show All 43 Lines • Show Last 20 Lines |