Commit d144eb1
authored
[Clang] Back out the source location workaround for CXXConstructExpr (llvm#145260)
This removes the workaround introduced in 3e1a9cf and 1ba7dc3.
The workaround overwrote the right parenthesis location of the sub
expression, which could be wrong when a CXXTemporaryObjectExpr occurs
within a nested expression, e.g. `A(A(1, 2))`.
To completely take it down, we now propagate the left parenthesis source
location throughout SemaCast, such that the ParenOrBraceRange can be
properly set at the point of its creation.
Fixes llvm#1437111 parent 741e1ca commit d144eb1
File tree
4 files changed
+124
-86
lines changed- clang
- docs
- include/clang/Sema
- lib/Sema
- test/AST
4 files changed
+124
-86
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
884 | 884 | | |
885 | 885 | | |
886 | 886 | | |
| 887 | + | |
887 | 888 | | |
888 | 889 | | |
889 | 890 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
676 | 676 | | |
677 | 677 | | |
678 | 678 | | |
679 | | - | |
| 679 | + | |
| 680 | + | |
680 | 681 | | |
681 | 682 | | |
682 | | - | |
683 | | - | |
| 683 | + | |
| 684 | + | |
684 | 685 | | |
685 | 686 | | |
686 | 687 | | |
| |||
0 commit comments