Configure clang-tidy CI check (#1028)

This commit is contained in:
Siarhei Fedartsou
2023-04-20 09:57:25 +02:00
committed by GitHub
parent f03deb7032
commit 2a7a6f01a2
27 changed files with 200 additions and 31 deletions

View File

@@ -64,7 +64,7 @@ std::map<std::string, std::string> createTokenMap(const std::string& urlTemplate
i != std::sregex_iterator();
++i)
{
std::smatch m = *i;
const std::smatch& m = *i;
if (m.size() > 0) {
auto captureGroupValue = m[1].str();
if (!captureGroupValue.empty()){
@@ -86,7 +86,7 @@ std::map<std::string, std::string> createTokenMap(const std::string& urlTemplate
i != std::sregex_iterator();
++i)
{
std::smatch m = *i;
const std::smatch& m = *i;
if (m.size() > 0) {
auto captureGroupValue = m[1].str();
if (!captureGroupValue.empty()){
@@ -152,7 +152,7 @@ bool isNormalizedURL(const TileServerOptions& tileServerOptions, const std::stri
}
std::string makeQueryString(const TileServerOptions& tileServerOptions, const std::string& apiKey) {
const std::string queryString = (!tileServerOptions.requiresApiKey() || tileServerOptions.apiKeyParameterName().empty() || apiKey.empty()) ?
std::string queryString = (!tileServerOptions.requiresApiKey() || tileServerOptions.apiKeyParameterName().empty() || apiKey.empty()) ?
"" : "?" + tileServerOptions.apiKeyParameterName() + "=" + apiKey;
return queryString;
}