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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits