diff options
author | Cengizhan Pasaoglu <cengizhanpasaoglu@gmail.com> | 2020-10-17 23:00:29 (GMT) |
---|---|---|
committer | Cengizhan Pasaoglu <cengizhanpasaoglu@gmail.com> | 2020-10-19 21:04:04 (GMT) |
commit | bd705788f67741df88bf153825a5943b4b518818 (patch) | |
tree | 356596cc5ca5d3f2ad2de7954257903301143bd8 /Source/cmMakefile.h | |
parent | c05e561474c422d23b9f1d29ccb5ceea0037477b (diff) | |
download | CMake-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.h | 10 |
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; |