summaryrefslogtreecommitdiffstats
path: root/Source/cmVisualStudioSlnParser.cxx
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2022-11-22 18:53:54 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2022-11-29 17:39:29 (GMT)
commit64c0702f91fb1e9ff8f6afd55d8fc79003426d6b (patch)
tree0d8c59ebed13c719e2c2e7eef33f5b3147ab3bd3 /Source/cmVisualStudioSlnParser.cxx
parent1b929ba8e41b49ab9c30c095bf9585b3ab85656b (diff)
downloadCMake-64c0702f91fb1e9ff8f6afd55d8fc79003426d6b.zip
CMake-64c0702f91fb1e9ff8f6afd55d8fc79003426d6b.tar.gz
CMake-64c0702f91fb1e9ff8f6afd55d8fc79003426d6b.tar.bz2
clang-tidy: fix `readability-static-accessed-through-instance` lints
Diffstat (limited to 'Source/cmVisualStudioSlnParser.cxx')
-rw-r--r--Source/cmVisualStudioSlnParser.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/cmVisualStudioSlnParser.cxx b/Source/cmVisualStudioSlnParser.cxx
index 6500039..2b5cfd5 100644
--- a/Source/cmVisualStudioSlnParser.cxx
+++ b/Source/cmVisualStudioSlnParser.cxx
@@ -541,7 +541,7 @@ bool cmVisualStudioSlnParser::ParseMultiValueTag(const std::string& line,
auto fullTag = cm::string_view(line).substr(0, idxEqualSign);
if (!this->ParseTag(fullTag, parsedLine, state))
return false;
- if (idxEqualSign != line.npos) {
+ if (idxEqualSign != std::string::npos) {
size_t idxFieldStart = idxEqualSign + 1;
if (idxFieldStart < line.size()) {
size_t idxParsing = idxFieldStart;
@@ -549,7 +549,7 @@ bool cmVisualStudioSlnParser::ParseMultiValueTag(const std::string& line,
for (;;) {
idxParsing = line.find_first_of(",\"", idxParsing);
bool fieldOver = false;
- if (idxParsing == line.npos) {
+ if (idxParsing == std::string::npos) {
fieldOver = true;
if (inQuotes) {
this->LastResult.SetError(ResultErrorInputStructure,
@@ -565,7 +565,7 @@ bool cmVisualStudioSlnParser::ParseMultiValueTag(const std::string& line,
line.substr(idxFieldStart, idxParsing - idxFieldStart),
parsedLine))
return false;
- if (idxParsing == line.npos)
+ if (idxParsing == std::string::npos)
break; // end of last field
idxFieldStart = idxParsing + 1;
}
@@ -584,7 +584,7 @@ bool cmVisualStudioSlnParser::ParseSingleValueTag(const std::string& line,
auto fullTag = cm::string_view(line).substr(0, idxEqualSign);
if (!this->ParseTag(fullTag, parsedLine, state))
return false;
- if (idxEqualSign != line.npos) {
+ if (idxEqualSign != std::string::npos) {
if (!this->ParseValue(line.substr(idxEqualSign + 1), parsedLine))
return false;
}
@@ -596,7 +596,7 @@ bool cmVisualStudioSlnParser::ParseKeyValuePair(const std::string& line,
State& /*state*/)
{
size_t idxEqualSign = line.find('=');
- if (idxEqualSign == line.npos) {
+ if (idxEqualSign == std::string::npos) {
parsedLine.CopyVerbatim(line);
return true;
}