]> granicus.if.org Git - clang/commitdiff
Comment command table: use inheritance instead of duplicating code
authorDmitri Gribenko <gribozavr@gmail.com>
Mon, 15 Apr 2013 02:31:50 +0000 (02:31 +0000)
committerDmitri Gribenko <gribozavr@gmail.com>
Mon, 15 Apr 2013 02:31:50 +0000 (02:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@179501 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/CommentCommands.td

index 6712e76471358b2cf59365367fec89605f36225b..2ba6f2fb87526da661608ed239e5ac3a539c40ca 100644 (file)
@@ -67,14 +67,12 @@ class DeclarationVerbatimLineCommand<string name> :
 }
 
 class FunctionDeclarationVerbatimLineCommand<string name> :
-      VerbatimLineCommand<name> {
-  let IsDeclarationCommand = 1;
+      DeclarationVerbatimLineCommand<name> {
   let IsFunctionDeclarationCommand = 1;
 }
 
 class RecordLikeDeclarationVerbatimLineCommand<string name> :
-      VerbatimLineCommand<name> {
-  let IsDeclarationCommand = 1;
+      DeclarationVerbatimLineCommand<name> {
   let IsRecordLikeDeclarationCommand = 1;
 }