]> granicus.if.org Git - clang/commitdiff
Giving a spelling to the Override attribute, and commenting on the absence of a spell...
authorAaron Ballman <aaron@aaronballman.com>
Thu, 16 Jan 2014 19:00:04 +0000 (19:00 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Thu, 16 Jan 2014 19:00:04 +0000 (19:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@199410 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/Attr.td

index 78fdedc20f74eb7fa4b691d642277b14dd661902..caee244d632c8dbfe89d0fb20d468d94ede533cb 100644 (file)
@@ -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;
 }