forked from OSchip/llvm-project
[Attr] Don't print fake MSInheritance argument
This was discovered at: http://lists.llvm.org/pipermail/cfe-commits/Week-of-Mon-20180514/228390.html Reviewed by: aaron.ballman https://reviews.llvm.org/D46905 llvm-svn: 332474
This commit is contained in:
parent
cda77b30e5
commit
dcbf2e8e65
|
@ -184,7 +184,8 @@ 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> : BoolArgument<name, 1> {
|
||||
class DefaultBoolArgument<string name, bit default, bit fake = 0>
|
||||
: BoolArgument<name, 1, fake> {
|
||||
bit Default = default;
|
||||
}
|
||||
|
||||
|
@ -2624,7 +2625,7 @@ def UPtr : TypeAttr {
|
|||
|
||||
def MSInheritance : InheritableAttr {
|
||||
let LangOpts = [MicrosoftExt];
|
||||
let Args = [DefaultBoolArgument<"BestCase", 1>];
|
||||
let Args = [DefaultBoolArgument<"BestCase", /*default*/1, /*fake*/1>];
|
||||
let Spellings = [Keyword<"__single_inheritance">,
|
||||
Keyword<"__multiple_inheritance">,
|
||||
Keyword<"__virtual_inheritance">,
|
||||
|
|
|
@ -34,3 +34,12 @@ 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;
|
||||
|
|
Loading…
Reference in New Issue