summaryrefslogtreecommitdiffstats
path: root/Source/cmcmd.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-09-15 12:53:00 (GMT)
committerKitware Robot <kwrobot@kitware.com>2017-09-15 12:54:32 (GMT)
commitc0c5f924fe46fcf83603117689b372cb8520c4bb (patch)
tree3abb6b0d1b361ce133ecdc8df41a679e7e7e37c7 /Source/cmcmd.h
parent3449c18c36a9acf29dfbb228ee76059cc4b9127f (diff)
parent3bbe95f58a8fb83e56ca9023ef01b9e70b391b05 (diff)
downloadCMake-c0c5f924fe46fcf83603117689b372cb8520c4bb.zip
CMake-c0c5f924fe46fcf83603117689b372cb8520c4bb.tar.gz
CMake-c0c5f924fe46fcf83603117689b372cb8520c4bb.tar.bz2
Merge topic 'refactor-iwyu-code'
3bbe95f5 Clean up iwyu code to not be one big if statement. Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1247
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);