From e3a16be52eab5b5b5f40997fc90a0b879a95174b Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Thu, 16 Jan 2014 19:00:04 +0000 Subject: [PATCH] Giving a spelling to the Override attribute, and commenting on the absence of a spelling for a few implicitly-only attributes. No functional change intended. llvm-svn: 199410 --- clang/include/clang/Basic/Attr.td | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/clang/include/clang/Basic/Attr.td b/clang/include/clang/Basic/Attr.td index 78fdedc20f74..caee244d632c 100644 --- a/clang/include/clang/Basic/Attr.td +++ b/clang/include/clang/Basic/Attr.td @@ -275,6 +275,7 @@ def Aligned : InheritableAttr { } def AlignMac68k : InheritableAttr { + // This attribute has no spellings as it is only ever created implicitly. let Spellings = []; let SemaHandler = 0; } @@ -602,6 +603,7 @@ def Malloc : InheritableAttr { } def MaxFieldAlignment : InheritableAttr { + // This attribute has no spellings as it is only ever created implicitly. let Spellings = []; let Args = [UnsignedArgument<"Alignment">]; let SemaHandler = 0; @@ -808,7 +810,7 @@ def Overloadable : Attr { } def Override : InheritableAttr { - let Spellings = []; + let Spellings = [Keyword<"override">]; let SemaHandler = 0; }