summaryrefslogtreecommitdiffstats
path: root/Source/cmcmd.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmcmd.h')
-rw-r--r--Source/cmcmd.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/Source/cmcmd.h b/Source/cmcmd.h
index 457b760..090ca08 100644
--- a/Source/cmcmd.h
+++ b/Source/cmcmd.h
@@ -18,7 +18,26 @@ public:
*/
static int ExecuteCMakeCommand(std::vector<std::string>&);
+ // define co-compile command handlers they must be public
+ // because they are used in a std::function map
+ static int HandleIWYU(const std::string& runCmd,
+ const std::string& sourceFile,
+ const std::vector<std::string>& orig_cmd);
+ static int HandleTidy(const std::string& runCmd,
+ const std::string& sourceFile,
+ const std::vector<std::string>& orig_cmd);
+ static int HandleLWYU(const std::string& runCmd,
+ const std::string& sourceFile,
+ const std::vector<std::string>& orig_cmd);
+ static int HandleCppLint(const std::string& runCmd,
+ const std::string& sourceFile,
+ const std::vector<std::string>& orig_cmd);
+ static int HandleCppCheck(const std::string& runCmd,
+ const std::string& sourceFile,
+ const std::vector<std::string>& orig_cmd);
+
protected:
+ static int HandleCoCompileCommands(std::vector<std::string>& args);
static int HashSumFile(std::vector<std::string>& args,
cmCryptoHash::Algo algo);
static int SymlinkLibrary(std::vector<std::string>& args);