[cfe-dev] visiting complex<> declarations

Vassil Vassilev vvasilev at cern.ch
Sat Feb 23 07:11:03 PST 2013


Hi,
   Maybe you should override shouldVisitTemplateInstantiations 
<http://clang.llvm.org/doxygen/classclang_1_1RecursiveASTVisitor.html#ab3f2f514d030ebfffe6742a66eb31363>.
Vassil
On 2/23/13 1:57 PM, suppamax wrote:
> I added
>
> 	bool VisitCXXOperatorCallExprs(CXXOperatorCallExpr *e) {
> 		llvm::errs() << "Visiting cxxoperatorcall" << "\n";
> 		return true;
> 	}
>
> in
> class MyASTVisitor : public RecursiveASTVisitor<MyASTVisitor>
> but I don't see the desired print.
> Also
>
> 	bool VisitVarDecl(VarDecl *v) {
> 		llvm::errs() << "Visiting declaration of variable " <<
> v->getDeclName().getAsString() << "\n";
> 		return true;
> 	}
>
> is inactive regarding complex<> variable declaration, while it works fine
> for float variables.
>
> Any other suggestion?
>
>
>
>
> --
> View this message in context: http://clang-developers.42468.n3.nabble.com/visiting-complex-declarations-tp4030532p4030596.html
> Sent from the Clang Developers mailing list archive at Nabble.com.
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130223/cddceca5/attachment.html>


More information about the cfe-dev mailing list