<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi,<br>I want to add a custom Identifier recognizer to clang compiler that allows it access to the members of selected object, for example see the code below:<br><br>[code]<br>#include <iostream><br>using namespace std;<br>class XY {<br> public:<br> void printX() { cout << "X" << endl; }<br> void printY() { cout << "Y" << endl; }<br>}<br>int main() {<br> XY xy;<br> with(xy) {<br> printX();<br> printY();<br> }<br> return 0;<br>}<br>[/code]<br><br>I've added "with" token(keyword), statement, parser, semantic, recursive ast visitor, tree transform and all other requirements to parse concept statement.</div><div dir="ltr">All parsing routine are fine follow by " use of undeclared identifier 'printX' " and
" use of undeclared identifier 'printX' " errors.<br>What are the complement works which has to be done after what I have said so far to allow compiler detect selected object members?</div><div dir="ltr"><br></div><div dir="ltr">--</div><div>Regards,</div><div>Mohsen Timar<br></div></div></div></div>