The CXXFoldExpr's range is invalid if the cxxfoldexpr is formed via the
Concept's TypeContraints (because the parentheses are not written in the
source code). We fallback to use the range from the pattern.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
address review comments.
clang/include/clang/AST/ExprCXX.h | ||
---|---|---|
4589 | yeah, that sounds more reasonable. |
clang/include/clang/AST/ExprCXX.h | ||
---|---|---|
4582 | Can this case (left fold and no parenthesis) ever happen? It would be interesting to see an example. |
clang/include/clang/AST/ExprCXX.h | ||
---|---|---|
4582 | I think in theory it should not happen. Doing it here is for completeness, it seems a bit odd we only do the change for getEndLoc. |
Can this case (left fold and no parenthesis) ever happen? It would be interesting to see an example.