Mordante marked 3 inline comments as done.
Mordante added inline comments.
Comment at: clang/lib/AST/CommentSema.cpp:693
+StringRef AttributeSpelling =
+CPlusPlus14 ? "[[deprecated]]" : "__attribute__((deprecated))";
if (PP) {
Mordante wrote:
> a
Mordante marked an inline comment as done.
Mordante added inline comments.
Comment at: clang/lib/AST/CommentSema.cpp:693
+StringRef AttributeSpelling =
+CPlusPlus14 ? "[[deprecated]]" : "__attribute__((deprecated))";
if (PP) {
aaron.ballman wrote
aaron.ballman added inline comments.
Comment at: clang/lib/AST/CommentSema.cpp:693
+StringRef AttributeSpelling =
+CPlusPlus14 ? "[[deprecated]]" : "__attribute__((deprecated))";
if (PP) {
Mordante wrote:
> aaron.ballman wrote:
> > This attribute
Mordante marked an inline comment as done.
Mordante added inline comments.
Comment at: clang/lib/AST/CommentSema.cpp:693
+StringRef AttributeSpelling =
+CPlusPlus14 ? "[[deprecated]]" : "__attribute__((deprecated))";
if (PP) {
aaron.ballman wrote
aaron.ballman added inline comments.
Comment at: clang/lib/AST/CommentSema.cpp:693
+StringRef AttributeSpelling =
+CPlusPlus14 ? "[[deprecated]]" : "__attribute__((deprecated))";
if (PP) {
This attribute also exists with this spelling in C2x, FWI
Mordante created this revision.
Mordante added a reviewer: gribozavr2.
Mordante added a project: clang.
This replaces the non-standard `__attribute__((deprecated))` with the standard
`[[deprecated]]` when compiling in C++14 mode.
Discovered while looking at https://bugs.llvm.org/show_bug.cgi?id=