[cfe-users] Unknown type name extraction from AST.
Hi, How do I get the unknown type name while visiting AST nodes. Example: class Sample { std::string strMember; } I the above code if the #include is missing then the AST will have an "invalid" for field declaration. I want to extract the token std::string as unknown type name. Would you please help me to extract such unknown type names while visiting AST nodes. Any kind of help will be really very appreciated as it is blocking the progress. Thanks, Hemant DISCLAIMER :- This e-mail may contain privileged and confidential information which is the property of Acellere GmbH and its associated companies. It is intended only for the use of the individual or entity to whom it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Acellere GmbH and its associated companies does not accept any liability for virus infected mails. ___ cfe-users mailing list cfe-users@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users
[cfe-users] Is there any base container for VarDeclExpr
Hi, For the following declaration expression int I, j, k = 10; ^^ Is there any base container in clang AST for the above complete expression. I have generated the AST for the above expression and what I see is there is not common expression for all three variables. Each variable I, j, k I get separate varDeclVisitor. Is there any way to traverse the complete expression and then individual variable? Thanks, Hemant DISCLAIMER :- This e-mail may contain privileged and confidential information which is the property of Acellere GmbH and its associated companies. It is intended only for the use of the individual or entity to whom it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Acellere GmbH and its associated companies does not accept any liability for virus infected mails. ___ cfe-users mailing list cfe-users@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users
[cfe-users] Stakoverflow exception while parsing clang test file p2-0x.cpp with clang frontend.
Hi, I have written a custom RecursiveASTVisitor class according to the following link. http://clang.llvm.org/docs/RAVFrontendAction.html Now I am giving clang source code to my frontend tool for analysis. The problem is for the test case llvm-3.8.1.src\tools\cfe-3.8.1.src\test\CXX\expr\expr.const\p2-0x.cpp >From the documentation of this test case, It is for undefined behaviour. But clang can generate its AST. And while running ClangTool on this test it throws stackoverflow exception even before the control comes in HandleTranslationUnit. I am really very confused about the control flow and why this exception is coming. Is this the expected behaviour. Then how to traverse the generated AST and visit the nodes. Thanks, Hemant Bhagat DISCLAIMER :- This e-mail may contain privileged and confidential information which is the property of Acellere GmbH and its associated companies. It is intended only for the use of the individual or entity to whom it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Acellere GmbH and its associated companies does not accept any liability for virus infected mails. ___ cfe-users mailing list cfe-users@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users