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;
}
}
Copyright © 2021 Jogjafile Inc.