[PATCH] D126061: [clang] Reject non-declaration C++11 attributes on declarations
Mikhail Maltsev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 23 08:10:01 PDT 2022
miyuki added a comment.
Hi Martin,
I think this patch caused a regression. Clang used to warn about the following code:
struct X {
[[deprecated]] struct Y {};
};
$ clang -std=c++17 -Wall test.cpp
<source>:2:7: warning: attribute 'deprecated' is ignored, place it after "struct" to apply attribute to type declaration [-Wignored-attributes]
[[deprecated]] struct Y {};
^
And now it doesn't. Could you please have a look into it?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D126061/new/
https://reviews.llvm.org/D126061
More information about the cfe-commits
mailing list