Code style: add missed explicit 'this->'

CMake uses explicit 'this->' style. Using custom clang-tidy check we can
detect and fix places where 'this->' was missed.
This commit is contained in:
Oleksandr Koval
2021-01-05 14:32:36 +02:00
parent 764ce15ffb
commit 209daa20b2
127 changed files with 5229 additions and 4583 deletions
+6 -4
View File
@@ -148,11 +148,13 @@ bool cmStateDirectory::ContainsBoth(std::string const& local_path,
cmSystemTools::IsSubDirectory(a, b));
};
bool bothInBinary = PathEqOrSubDir(local_path, GetRelativePathTopBinary()) &&
PathEqOrSubDir(remote_path, GetRelativePathTopBinary());
bool bothInBinary =
PathEqOrSubDir(local_path, this->GetRelativePathTopBinary()) &&
PathEqOrSubDir(remote_path, this->GetRelativePathTopBinary());
bool bothInSource = PathEqOrSubDir(local_path, GetRelativePathTopSource()) &&
PathEqOrSubDir(remote_path, GetRelativePathTopSource());
bool bothInSource =
PathEqOrSubDir(local_path, this->GetRelativePathTopSource()) &&
PathEqOrSubDir(remote_path, this->GetRelativePathTopSource());
return bothInBinary || bothInSource;
}