djasper added a comment.

I don't understand how my patch description says that. I am trying to be very 
explicit about that fact that it doesn't, see last paragraph.

I have thought about what you are suggesting, but

- A DeclContext doesn't have getEndLoc().
- The DeclContext NewDC here is usually the FunctionDecl, which doesn't help. I 
think you are thinking about the parent CompoundStmt in terms of AST matching. 
Not sure there is something like that in the AST itself.


https://reviews.llvm.org/D35783



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to