diff options
author | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2016-12-10 15:04:43 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-12-12 19:04:15 (GMT) |
commit | 58c66393cfb999f23bfb6ff72122ecbc531434c0 (patch) | |
tree | 2a5128546d94cf74b4800c8bd43e8b0f996bd21d /Source/cmServerProtocol.cxx | |
parent | 85bfdddaf75905a2c075d2a94d85f4bcfa1feea9 (diff) | |
download | CMake-58c66393cfb999f23bfb6ff72122ecbc531434c0.zip CMake-58c66393cfb999f23bfb6ff72122ecbc531434c0.tar.gz CMake-58c66393cfb999f23bfb6ff72122ecbc531434c0.tar.bz2 |
clang-tidy: apply readability-static-definition-in-anonymous-namespace fixes
Diffstat (limited to 'Source/cmServerProtocol.cxx')
-rw-r--r-- | Source/cmServerProtocol.cxx | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/Source/cmServerProtocol.cxx b/Source/cmServerProtocol.cxx index c08a36b..f47cb33 100644 --- a/Source/cmServerProtocol.cxx +++ b/Source/cmServerProtocol.cxx @@ -32,7 +32,7 @@ namespace { -static std::vector<std::string> getConfigurations(const cmake* cm) +std::vector<std::string> getConfigurations(const cmake* cm) { std::vector<std::string> configurations; auto makefiles = cm->GetGlobalGenerator()->GetMakefiles(); @@ -47,7 +47,7 @@ static std::vector<std::string> getConfigurations(const cmake* cm) return configurations; } -static bool hasString(const Json::Value& v, const std::string& s) +bool hasString(const Json::Value& v, const std::string& s) { return !v.isNull() && std::find_if(v.begin(), v.end(), [s](const Json::Value& i) { @@ -56,7 +56,7 @@ static bool hasString(const Json::Value& v, const std::string& s) } template <class T> -static Json::Value fromStringList(const T& in) +Json::Value fromStringList(const T& in) { Json::Value result = Json::arrayValue; for (const std::string& i : in) { @@ -65,7 +65,7 @@ static Json::Value fromStringList(const T& in) return result; } -static std::vector<std::string> toStringList(const Json::Value& in) +std::vector<std::string> toStringList(const Json::Value& in) { std::vector<std::string> result; for (const auto& it : in) { @@ -74,12 +74,11 @@ static std::vector<std::string> toStringList(const Json::Value& in) return result; } -static void getCMakeInputs(const cmGlobalGenerator* gg, - const std::string& sourceDir, - const std::string& buildDir, - std::vector<std::string>* internalFiles, - std::vector<std::string>* explicitFiles, - std::vector<std::string>* tmpFiles) +void getCMakeInputs(const cmGlobalGenerator* gg, const std::string& sourceDir, + const std::string& buildDir, + std::vector<std::string>* internalFiles, + std::vector<std::string>* explicitFiles, + std::vector<std::string>* tmpFiles) { const std::string cmakeRootDir = cmSystemTools::GetCMakeRoot() + '/'; std::vector<cmMakefile*> const& makefiles = gg->GetMakefiles(); |