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.

llvm-svn: 366682

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

index 7d8dbb1..2d95c23 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 83ee0e3..d35b673 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