Compare commits

...

1 Commits

Author SHA1 Message Date
Calum Grant
2b4935cd41 C++: Add test for implicit this 2023-10-10 09:42:02 +01:00
3 changed files with 16 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
class TestImplicitThis
{
public:
int field;
int get() const {
return field + this->field + get() + this->get();
}
};

View File

@@ -0,0 +1,2 @@
| this.cpp:7:16:7:20 | this |
| this.cpp:7:38:7:40 | this |

View File

@@ -0,0 +1,5 @@
import cpp
from ThisExpr te
where te.isCompilerGenerated()
select te