summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitri Gribenko <gribozavr@gmail.com>2013-04-15 02:31:50 +0000
committerDmitri Gribenko <gribozavr@gmail.com>2013-04-15 02:31:50 +0000
commit6e06e04ec1cc3276b43134beba0c5800be34fac9 (patch)
tree86acb3fef2dc5aae860df851654f8abc5b7a40aa
parent6736988ae23241b7056aec21164c0734f6ec362a (diff)
downloadbcm5719-llvm-6e06e04ec1cc3276b43134beba0c5800be34fac9.tar.gz
bcm5719-llvm-6e06e04ec1cc3276b43134beba0c5800be34fac9.zip
Comment command table: use inheritance instead of duplicating code
llvm-svn: 179501
-rw-r--r--clang/include/clang/AST/CommentCommands.td6
1 files changed, 2 insertions, 4 deletions
diff --git a/clang/include/clang/AST/CommentCommands.td b/clang/include/clang/AST/CommentCommands.td
index 6712e764713..2ba6f2fb875 100644
--- a/clang/include/clang/AST/CommentCommands.td
+++ b/clang/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;
}
OpenPOWER on IntegriCloud