From 35a1ba87b990e6c4541e3aff85b9837bc8b57e66 Mon Sep 17 00:00:00 2001 From: "Joel E. Denny" Date: Wed, 16 May 2018 15:18:27 +0000 Subject: Revert r332474: [Attr] Don't print fake MSInheritance argument I botched the commit log attributes. llvm-svn: 332480 --- clang/include/clang/Basic/Attr.td | 5 ++--- clang/test/SemaCXX/attr-print.cpp | 9 --------- 2 files changed, 2 insertions(+), 12 deletions(-) (limited to 'clang') diff --git a/clang/include/clang/Basic/Attr.td b/clang/include/clang/Basic/Attr.td index d72544f6556..afd1e019754 100644 --- a/clang/include/clang/Basic/Attr.td +++ b/clang/include/clang/Basic/Attr.td @@ -184,8 +184,7 @@ class VersionArgument : Argument; class AlignedArgument : Argument; // A bool argument with a default value -class DefaultBoolArgument - : BoolArgument { +class DefaultBoolArgument : BoolArgument { 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">, diff --git a/clang/test/SemaCXX/attr-print.cpp b/clang/test/SemaCXX/attr-print.cpp index 960050bc710..f40d803e94c 100644 --- a/clang/test/SemaCXX/attr-print.cpp +++ b/clang/test/SemaCXX/attr-print.cpp @@ -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; -- cgit v1.2.3