[all-commits] [llvm/llvm-project] 1f6ea2: Expand definition deprecation warning to include c...
Luke Nihlen via All-commits
all-commits at lists.llvm.org
Wed Jun 1 08:31:25 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 1f6ea2a37c4393a2147cb82c8fe7966a2f690e24
https://github.com/llvm/llvm-project/commit/1f6ea2a37c4393a2147cb82c8fe7966a2f690e24
Author: Luke Nihlen <luken at google.com>
Date: 2022-06-01 (Wed, 01 Jun 2022)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/lib/Sema/SemaDecl.cpp
M clang/test/CXX/basic/basic.def/p2.cpp
Log Message:
-----------
Expand definition deprecation warning to include constexpr statements.
Clang currently warns on definitions downgraded to declarations
with a const modifier, but not for a constexpr modifier. This patch
updates the warning logic to warn on both inputs, and adds a test to
check the additional case as well.
See also: https://bugs.chromium.org/p/chromium/issues/detail?id=1284718
Differential Revision: https://reviews.llvm.org/D126664
More information about the All-commits
mailing list