[all-commits] [llvm/llvm-project] 64cfcd: [Clang] Fix the location of default init expressions
cor3ntin via All-commits
all-commits at lists.llvm.org
Tue Jul 18 23:54:17 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 64cfcde31a48962c3bbc703753a4ea41200da7a8
https://github.com/llvm/llvm-project/commit/64cfcde31a48962c3bbc703753a4ea41200da7a8
Author: Corentin Jabot <corentinjabot at gmail.com>
Date: 2023-07-19 (Wed, 19 Jul 2023)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/lib/Sema/SemaInit.cpp
M clang/test/SemaCXX/paren-list-agg-init.cpp
M clang/test/SemaCXX/source_location.cpp
Log Message:
-----------
[Clang] Fix the location of default init expressions
Default member initializations constructed from
a parenthesized aggregate initialization should be constructed
at the location of the left paren, to be consistent with
brace initialization.
Otherwise we get diagmostics and source_location in the wrong places.
Fixes #63903
Reviewed By: aaron.ballman, #clang-language-wg
Differential Revision: https://reviews.llvm.org/D155573
More information about the All-commits
mailing list