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
This commit is contained in:
Dmitri Gribenko 2013-04-15 02:31:50 +00:00
Родитель 04e5176505
Коммит d09615fcc0
1 изменённых файлов: 2 добавлений и 4 удалений

Просмотреть файл

@ -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;
}