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)
llvm-svn: 179501

clang/include/clang/AST/CommentCommands.td

index 6712e76..2ba6f2f 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;
 }