[PATCH] D37200: [AST] Traverse CXXOperatorCallExpr in LexicallyOrderedRecursiveASTVisitor
Alex Lorenz via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 28 06:33:09 PDT 2017
arphaman added inline comments.
================
Comment at: include/clang/AST/LexicallyOrderedRecursiveASTVisitor.h:149
+ auto Offset = [&](Stmt *S) { return SM.getFileOffset(S->getLocStart()); };
+ Swap = Offset(Children[0]) > Offset(Children[1]);
+ break;
----------------
For `++` and `--` you can see whether its prefix or postfix by looking at the number of arguments. If there's one argument, then `++` and `--` are prefix. Otherwise, they're postfix.
https://reviews.llvm.org/D37200
More information about the cfe-commits
mailing list