]> granicus.if.org Git - clang/commitdiff
Revert the change to the [[nodiscard]] feature test macro value.
authorAaron Ballman <aaron@aaronballman.com>
Mon, 22 Jul 2019 12:49:28 +0000 (12:49 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Mon, 22 Jul 2019 12:49:28 +0000 (12:49 +0000)
This value only gets bumped once both P1301 and P1771 are implemented.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@366682 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/Attr.td
test/Preprocessor/has_attribute.cpp

index 7d8dbb196e537c429bef432ccc9394b15ed724ce..2d95c230d83fbf524d5987a9555ae1e2b955c742 100644 (file)
@@ -2335,7 +2335,7 @@ def WarnUnused : InheritableAttr {
 }
 
 def WarnUnusedResult : InheritableAttr {
-  let Spellings = [CXX11<"", "nodiscard", 201907>, C2x<"", "nodiscard">,
+  let Spellings = [CXX11<"", "nodiscard", 201603>, C2x<"", "nodiscard">,
                    CXX11<"clang", "warn_unused_result">,
                    GCC<"warn_unused_result">];
   let Subjects = SubjectList<[ObjCMethod, Enum, Record, FunctionLike]>;
index 83ee0e3c6cfae708fbfff11f0ba0fc256624dc23..d35b673e68bfb5fbc5637ad4bd9ba7da932c5363 100644 (file)
@@ -63,7 +63,7 @@ CXX11(unlikely)
 // CHECK: maybe_unused: 201603L
 // ITANIUM: no_unique_address: 201803L
 // WINDOWS: no_unique_address: 0
-// CHECK: nodiscard: 201907L
+// CHECK: nodiscard: 201603L
 // CHECK: noreturn: 200809L
 // FIXME(201803L) CHECK: unlikely: 0