diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2021-01-22 15:37:38 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2021-01-27 13:45:45 (GMT) |
commit | 808b17b1206dd70c7fbd676e8c24181cde537954 (patch) | |
tree | e20da218e1f9d702f4ff76fac9595740d375c3ed /Source/CTest | |
parent | 4470eb5179d6ccbe5e31cec758546e820752f2d8 (diff) | |
download | CMake-808b17b1206dd70c7fbd676e8c24181cde537954.zip CMake-808b17b1206dd70c7fbd676e8c24181cde537954.tar.gz CMake-808b17b1206dd70c7fbd676e8c24181cde537954.tar.bz2 |
clang-tidy: fix `readability-make-member-function-const` warnings
Diffstat (limited to 'Source/CTest')
-rw-r--r-- | Source/CTest/cmCTestCoverageHandler.cxx | 2 | ||||
-rw-r--r-- | Source/CTest/cmCTestLaunch.cxx | 2 | ||||
-rw-r--r-- | Source/CTest/cmCTestLaunch.h | 2 | ||||
-rw-r--r-- | Source/CTest/cmCTestLaunchReporter.cxx | 2 | ||||
-rw-r--r-- | Source/CTest/cmCTestLaunchReporter.h | 2 | ||||
-rw-r--r-- | Source/CTest/cmCTestMemCheckHandler.cxx | 2 | ||||
-rw-r--r-- | Source/CTest/cmCTestMemCheckHandler.h | 2 | ||||
-rw-r--r-- | Source/CTest/cmProcess.cxx | 4 | ||||
-rw-r--r-- | Source/CTest/cmProcess.h | 4 |
9 files changed, 11 insertions, 11 deletions
diff --git a/Source/CTest/cmCTestCoverageHandler.cxx b/Source/CTest/cmCTestCoverageHandler.cxx index 5fb52bf..3d7d031 100644 --- a/Source/CTest/cmCTestCoverageHandler.cxx +++ b/Source/CTest/cmCTestCoverageHandler.cxx @@ -107,7 +107,7 @@ public: this->PipeState = cmsysProcess_WaitForExit(this->Process, timeout); return this->PipeState; } - int GetProcessState() { return this->PipeState; } + int GetProcessState() const { return this->PipeState; } private: int PipeState; diff --git a/Source/CTest/cmCTestLaunch.cxx b/Source/CTest/cmCTestLaunch.cxx index b9ed033..15c443a 100644 --- a/Source/CTest/cmCTestLaunch.cxx +++ b/Source/CTest/cmCTestLaunch.cxx @@ -265,7 +265,7 @@ void cmCTestLaunch::LoadScrapeRules() } void cmCTestLaunch::LoadScrapeRules( - const char* purpose, std::vector<cmsys::RegularExpression>& regexps) + const char* purpose, std::vector<cmsys::RegularExpression>& regexps) const { std::string fname = cmStrCat(this->Reporter.LogDir, "Custom", purpose, ".txt"); diff --git a/Source/CTest/cmCTestLaunch.h b/Source/CTest/cmCTestLaunch.h index d18f66d..eabb608 100644 --- a/Source/CTest/cmCTestLaunch.h +++ b/Source/CTest/cmCTestLaunch.h @@ -60,7 +60,7 @@ private: bool ScrapeRulesLoaded; void LoadScrapeRules(); void LoadScrapeRules(const char* purpose, - std::vector<cmsys::RegularExpression>& regexps); + std::vector<cmsys::RegularExpression>& regexps) const; bool ScrapeLog(std::string const& fname); // Helper class to generate the xml fragment. diff --git a/Source/CTest/cmCTestLaunchReporter.cxx b/Source/CTest/cmCTestLaunchReporter.cxx index f89fc9b..5334a93 100644 --- a/Source/CTest/cmCTestLaunchReporter.cxx +++ b/Source/CTest/cmCTestLaunchReporter.cxx @@ -150,7 +150,7 @@ void cmCTestLaunchReporter::WriteXML() this->WriteXMLLabels(e2); } -void cmCTestLaunchReporter::WriteXMLAction(cmXMLElement& e2) +void cmCTestLaunchReporter::WriteXMLAction(cmXMLElement& e2) const { e2.Comment("Meta-information about the build action"); cmXMLElement e3(e2, "Action"); diff --git a/Source/CTest/cmCTestLaunchReporter.h b/Source/CTest/cmCTestLaunchReporter.h index 675a878..4be0d9b 100644 --- a/Source/CTest/cmCTestLaunchReporter.h +++ b/Source/CTest/cmCTestLaunchReporter.h @@ -70,7 +70,7 @@ public: // Methods to generate the xml fragment. void WriteXML(); - void WriteXMLAction(cmXMLElement&); + void WriteXMLAction(cmXMLElement&) const; void WriteXMLCommand(cmXMLElement&); void WriteXMLResult(cmXMLElement&); void WriteXMLLabels(cmXMLElement&); diff --git a/Source/CTest/cmCTestMemCheckHandler.cxx b/Source/CTest/cmCTestMemCheckHandler.cxx index 6e8091b..125d003 100644 --- a/Source/CTest/cmCTestMemCheckHandler.cxx +++ b/Source/CTest/cmCTestMemCheckHandler.cxx @@ -300,7 +300,7 @@ void cmCTestMemCheckHandler::PopulateCustomVectors(cmMakefile* mf) this->CustomTestsIgnore); } -int cmCTestMemCheckHandler::GetDefectCount() +int cmCTestMemCheckHandler::GetDefectCount() const { return this->DefectCount; } diff --git a/Source/CTest/cmCTestMemCheckHandler.h b/Source/CTest/cmCTestMemCheckHandler.h index 7ab00db..b200c43 100644 --- a/Source/CTest/cmCTestMemCheckHandler.h +++ b/Source/CTest/cmCTestMemCheckHandler.h @@ -29,7 +29,7 @@ public: void Initialize() override; - int GetDefectCount(); + int GetDefectCount() const; protected: int PreProcessHandler() override; diff --git a/Source/CTest/cmProcess.cxx b/Source/CTest/cmProcess.cxx index c7cbd34..1f220af 100644 --- a/Source/CTest/cmProcess.cxx +++ b/Source/CTest/cmProcess.cxx @@ -358,7 +358,7 @@ void cmProcess::ResetStartTime() this->StartTime = std::chrono::steady_clock::now(); } -cmProcess::Exception cmProcess::GetExitException() +cmProcess::Exception cmProcess::GetExitException() const { auto exception = Exception::None; #if defined(_WIN32) && !defined(__CYGWIN__) @@ -430,7 +430,7 @@ cmProcess::Exception cmProcess::GetExitException() return exception; } -std::string cmProcess::GetExitExceptionString() +std::string cmProcess::GetExitExceptionString() const { std::string exception_str; #if defined(_WIN32) diff --git a/Source/CTest/cmProcess.h b/Source/CTest/cmProcess.h index 9eec952..a44aeb0 100644 --- a/Source/CTest/cmProcess.h +++ b/Source/CTest/cmProcess.h @@ -67,8 +67,8 @@ public: Other }; - Exception GetExitException(); - std::string GetExitExceptionString(); + Exception GetExitException() const; + std::string GetExitExceptionString() const; std::unique_ptr<cmCTestRunTest> GetRunner() { |