[all-commits] [llvm/llvm-project] fdefe8: [Clang] Improve support for expression messages in...
cor3ntin via All-commits
all-commits at lists.llvm.org
Mon Nov 27 19:29:10 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: fdefe88bfff17075e6f35979318bff40a338c836
https://github.com/llvm/llvm-project/commit/fdefe88bfff17075e6f35979318bff40a338c836
Author: cor3ntin <corentinjabot at gmail.com>
Date: 2023-11-28 (Tue, 28 Nov 2023)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/lib/Parse/ParseDeclCXX.cpp
M clang/lib/Sema/SemaDeclCXX.cpp
A clang/test/CXX/drs/dr27xx.cpp
M clang/test/SemaCXX/static-assert-cxx26.cpp
M clang/www/cxx_dr_status.html
Log Message:
-----------
[Clang] Improve support for expression messages in `static_assert` (#73234)
- Support non-member functions and callable objects for size and data().
We previously tried to (badly) pick the best overload ourselves, in a
way that would only support member functions. We now leave clang
construct an unresolved member expression and call that, properly
performing overload resolution with callable objects and static
functions, consistent with the logic for `get` calls for structured
bindings.
- Support UDLs as message expression.
- Add tests and mark CWG2798 as resolved
More information about the All-commits
mailing list