mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-18 08:51:52 +08: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:
@@ -161,42 +161,42 @@ inline void MakeDigits(cm::string_view& view, char (&digits)[N],
|
||||
|
||||
cmAlphaNum::cmAlphaNum(int val)
|
||||
{
|
||||
MakeDigits(View_, Digits_, "%i", val);
|
||||
MakeDigits(this->View_, this->Digits_, "%i", val);
|
||||
}
|
||||
|
||||
cmAlphaNum::cmAlphaNum(unsigned int val)
|
||||
{
|
||||
MakeDigits(View_, Digits_, "%u", val);
|
||||
MakeDigits(this->View_, this->Digits_, "%u", val);
|
||||
}
|
||||
|
||||
cmAlphaNum::cmAlphaNum(long int val)
|
||||
{
|
||||
MakeDigits(View_, Digits_, "%li", val);
|
||||
MakeDigits(this->View_, this->Digits_, "%li", val);
|
||||
}
|
||||
|
||||
cmAlphaNum::cmAlphaNum(unsigned long int val)
|
||||
{
|
||||
MakeDigits(View_, Digits_, "%lu", val);
|
||||
MakeDigits(this->View_, this->Digits_, "%lu", val);
|
||||
}
|
||||
|
||||
cmAlphaNum::cmAlphaNum(long long int val)
|
||||
{
|
||||
MakeDigits(View_, Digits_, "%lli", val);
|
||||
MakeDigits(this->View_, this->Digits_, "%lli", val);
|
||||
}
|
||||
|
||||
cmAlphaNum::cmAlphaNum(unsigned long long int val)
|
||||
{
|
||||
MakeDigits(View_, Digits_, "%llu", val);
|
||||
MakeDigits(this->View_, this->Digits_, "%llu", val);
|
||||
}
|
||||
|
||||
cmAlphaNum::cmAlphaNum(float val)
|
||||
{
|
||||
MakeDigits(View_, Digits_, "%g", static_cast<double>(val));
|
||||
MakeDigits(this->View_, this->Digits_, "%g", static_cast<double>(val));
|
||||
}
|
||||
|
||||
cmAlphaNum::cmAlphaNum(double val)
|
||||
{
|
||||
MakeDigits(View_, Digits_, "%g", val);
|
||||
MakeDigits(this->View_, this->Digits_, "%g", val);
|
||||
}
|
||||
|
||||
std::string cmCatViews(std::initializer_list<cm::string_view> views)
|
||||
|
Reference in New Issue
Block a user