Is there a lint script that will enforce use of this for class variables?
Ex -
class A {
int var1;
void func() {
return var1;
}
}
should be -
class A {
int var1;
void func() {
return this->var1;
}
}
Is there a lint script that will enforce use of this for class variables?
Ex -
class A {
int var1;
void func() {
return var1;
}
}
should be -
class A {
int var1;
void func() {
return this->var1;
}
}
© 2022 - 2024 — McMap. All rights reserved.
this->
around is kind of a "naming rule"? – Clinkscales