Revert r332474: [Attr] Don't print fake MSInheritance argument
authorJoel E. Denny <jdenny.ornl@gmail.com>
Wed, 16 May 2018 15:18:27 +0000 (15:18 +0000)
committerJoel E. Denny <jdenny.ornl@gmail.com>
Wed, 16 May 2018 15:18:27 +0000 (15:18 +0000)
I botched the commit log attributes.

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

include/clang/Basic/Attr.td
test/SemaCXX/attr-print.cpp

index d72544f6556ecd629e28d06d97df2b1218b64dfc..afd1e019754833efca5652088083aeb8a7a47507 100644 (file)
@@ -184,8 +184,7 @@ class VersionArgument<string name, bit opt = 0> : Argument<name, opt>;
 class AlignedArgument<string name, bit opt = 0> : Argument<name, opt>;
 
 // A bool argument with a default value
-class DefaultBoolArgument<string name, bit default, bit fake = 0>
-    : BoolArgument<name, 1, fake> {
+class DefaultBoolArgument<string name, bit default> : BoolArgument<name, 1> {
   bit Default = default;
 }
 
@@ -2625,7 +2624,7 @@ def UPtr : TypeAttr {
 
 def MSInheritance : InheritableAttr {
   let LangOpts = [MicrosoftExt];
-  let Args = [DefaultBoolArgument<"BestCase", /*default*/1, /*fake*/1>];
+  let Args = [DefaultBoolArgument<"BestCase", 1>];
   let Spellings = [Keyword<"__single_inheritance">,
                    Keyword<"__multiple_inheritance">,
                    Keyword<"__virtual_inheritance">,
index 960050bc7106afcf213caa55b25aec20a5f50bfc..f40d803e94cbe6b50cfe587cc26a350df23a822d 100644 (file)
@@ -34,12 +34,3 @@ class __attribute__((consumable(unknown))) AttrTester1 {
   // CHECK: void callableWhen() __attribute__((callable_when("unconsumed", "consumed")));
   void callableWhen()  __attribute__((callable_when("unconsumed", "consumed")));
 };
-
-// CHECK: class __single_inheritance SingleInheritance;
-class __single_inheritance SingleInheritance;
-
-// CHECK: class __multiple_inheritance MultipleInheritance;
-class __multiple_inheritance MultipleInheritance;
-
-// CHECK: class __virtual_inheritance VirtualInheritance;
-class __virtual_inheritance VirtualInheritance;