summaryrefslogtreecommitdiff
path: root/Source/cmState.h
diff options
context:
space:
mode:
authorDaniel Pfeifer <daniel@pfeifer-mail.de>2017-05-10 21:05:29 +0200
committerDaniel Pfeifer <daniel@pfeifer-mail.de>2017-05-11 19:49:06 +0200
commit587084052bbecc812de00e75aac389faef6b7eed (patch)
treee11a66bceaac026ae0e840e8fcb40b5541da5b51 /Source/cmState.h
parenta890ca2f8dfc640f7096f3ad89a2429315d8b71a (diff)
downloadcmake-587084052bbecc812de00e75aac389faef6b7eed.tar.gz
cmState: introduce methods for adding builtin commands
Diffstat (limited to 'Source/cmState.h')
-rw-r--r--Source/cmState.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmState.h b/Source/cmState.h
index 240d75bd98..603fe5dcf8 100644
--- a/Source/cmState.h
+++ b/Source/cmState.h
@@ -12,6 +12,7 @@
#include "cmDefinitions.h"
#include "cmLinkedTree.h"
+#include "cmPolicies.h"
#include "cmProperty.h"
#include "cmPropertyDefinitionMap.h"
#include "cmPropertyMap.h"
@@ -121,6 +122,10 @@ public:
cmCommand* GetCommand(std::string const& name) const;
void AddCommand(cmCommand* command);
+ void AddBuiltinCommand(std::string const& name, cmCommand* command);
+ void AddDisallowedCommand(std::string const& name, cmCommand* command,
+ cmPolicies::PolicyID policy, const char* message);
+ void AddUnexpectedCommand(std::string const& name, const char* error);
void RenameCommand(std::string const& oldName, std::string const& newName);
void RemoveUserDefinedCommands();
std::vector<std::string> GetCommandNames() const;