summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.h
diff options
context:
space:
mode:
authorCengizhan Pasaoglu <cengizhanpasaoglu@gmail.com>2020-10-17 23:00:29 (GMT)
committerCengizhan Pasaoglu <cengizhanpasaoglu@gmail.com>2020-10-19 21:04:04 (GMT)
commitbd705788f67741df88bf153825a5943b4b518818 (patch)
tree356596cc5ca5d3f2ad2de7954257903301143bd8 /Source/cmMakefile.h
parentc05e561474c422d23b9f1d29ccb5ceea0037477b (diff)
downloadCMake-bd705788f67741df88bf153825a5943b4b518818.zip
CMake-bd705788f67741df88bf153825a5943b4b518818.tar.gz
CMake-bd705788f67741df88bf153825a5943b4b518818.tar.bz2
Constify some code as suggested by clang-tidy
Diffstat (limited to 'Source/cmMakefile.h')
-rw-r--r--Source/cmMakefile.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/cmMakefile.h b/Source/cmMakefile.h
index ecc6aab..26ed737 100644
--- a/Source/cmMakefile.h
+++ b/Source/cmMakefile.h
@@ -304,7 +304,7 @@ public:
*/
void RemoveDefinition(const std::string& name);
//! Remove a definition from the cache.
- void RemoveCacheDefinition(const std::string& name);
+ void RemoveCacheDefinition(const std::string& name) const;
/**
* Specify the name of the project for this build.
@@ -345,7 +345,7 @@ public:
bool parent_scope = false) const;
bool SetPolicyVersion(std::string const& version_min,
std::string const& version_max);
- void RecordPolicies(cmPolicies::PolicyMap& pm);
+ void RecordPolicies(cmPolicies::PolicyMap& pm) const;
//@}
/** Helper class to push and pop policies automatically. */
@@ -738,7 +738,7 @@ public:
/**
* Get all tests that run under the given configuration.
*/
- void GetTests(const std::string& config, std::vector<cmTest*>& tests);
+ void GetTests(const std::string& config, std::vector<cmTest*>& tests) const;
/**
* Return a location of a file in cmake or custom modules directory
@@ -885,7 +885,7 @@ public:
return this->SystemIncludeDirectories;
}
- bool PolicyOptionalWarningEnabled(std::string const& var);
+ bool PolicyOptionalWarningEnabled(std::string const& var) const;
void PushLoopBlock();
void PopLoopBlock();
@@ -926,7 +926,7 @@ public:
int GetRecursionDepth() const;
void SetRecursionDepth(int recursionDepth);
- std::string NewDeferId();
+ std::string NewDeferId() const;
bool DeferCall(std::string id, std::string fileName, cmListFileFunction lff);
bool DeferCancelCall(std::string const& id);
cm::optional<std::string> DeferGetCallIds() const;