[cfe-users] Unknown type name extraction from AST.

2016-12-22 Thread Hemant Bhagat via cfe-users
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 nam

[cfe-users] Is there any base container for VarDeclExpr

2016-12-27 Thread Hemant Bhagat via cfe-users
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 var

[cfe-users] Stakoverflow exception while parsing clang test file p2-0x.cpp with clang frontend.

2017-02-27 Thread Hemant Bhagat via cfe-users
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.cons