[all-commits] [llvm/llvm-project] dc7b1e: [AST] Fix the CXXFoldExpr source range when parent...
Haojian Wu via All-commits
all-commits at lists.llvm.org
Wed Aug 12 00:21:05 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: dc7b1e9db58152273d3232cca3fa95cef721796b
https://github.com/llvm/llvm-project/commit/dc7b1e9db58152273d3232cca3fa95cef721796b
Author: Haojian Wu <hokein.wu at gmail.com>
Date: 2020-08-12 (Wed, 12 Aug 2020)
Changed paths:
M clang/include/clang/AST/ExprCXX.h
M clang/test/AST/ast-dump-concepts.cpp
Log Message:
-----------
[AST] Fix the CXXFoldExpr source range when parentheses range is invalid.
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.
Differential Revision: https://reviews.llvm.org/D85645
More information about the All-commits
mailing list