mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-03 12:49:50 -05:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user