[PATCH] D85645: [AST] Fix the CXXFoldExpr source range when parentheses range is invalid.
Nathan Ridge via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 11 22:34:22 PDT 2020
nridge accepted this revision.
nridge added inline comments.
This revision is now accepted and ready to land.
================
Comment at: clang/include/clang/AST/ExprCXX.h:4582
+ if (isLeftFold())
+ return getEllipsisLoc();
+ return getLHS()->getBeginLoc();
----------------
Can this case (left fold and no parenthesis) ever happen? It would be interesting to see an example.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D85645/new/
https://reviews.llvm.org/D85645
More information about the cfe-commits
mailing list