From d09615fcc03d177a59478d7d6e90a034a4d2a879 Mon Sep 17 00:00:00 2001 From: Dmitri Gribenko <gribozavr@gmail.com> Date: Mon, 15 Apr 2013 02:31:50 +0000 Subject: [PATCH] Comment command table: use inheritance instead of duplicating code git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@179501 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/AST/CommentCommands.td | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/include/clang/AST/CommentCommands.td b/include/clang/AST/CommentCommands.td index 6712e764713..2ba6f2fb875 100644 --- a/include/clang/AST/CommentCommands.td +++ b/include/clang/AST/CommentCommands.td @@ -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; } -- GitLab