@@ -305,6 +305,7 @@ bool syntax::List::classof(const syntax::Node *N) {
305
305
case syntax::NodeKind::NestedNameSpecifier:
306
306
case syntax::NodeKind::CallArguments:
307
307
case syntax::NodeKind::ParameterDeclarationList:
308
+ case syntax::NodeKind::DeclaratorList:
308
309
return true ;
309
310
default :
310
311
return false ;
@@ -405,6 +406,7 @@ clang::tok::TokenKind syntax::List::getDelimiterTokenKind() const {
405
406
return clang::tok::coloncolon;
406
407
case NodeKind::CallArguments:
407
408
case NodeKind::ParameterDeclarationList:
409
+ case NodeKind::DeclaratorList:
408
410
return clang::tok::comma;
409
411
default :
410
412
llvm_unreachable (" This is not a subclass of List, thus "
@@ -418,6 +420,7 @@ syntax::List::TerminationKind syntax::List::getTerminationKind() const {
418
420
return TerminationKind::Terminated;
419
421
case NodeKind::CallArguments:
420
422
case NodeKind::ParameterDeclarationList:
423
+ case NodeKind::DeclaratorList:
421
424
return TerminationKind::Separated;
422
425
default :
423
426
llvm_unreachable (" This is not a subclass of List, thus "
@@ -433,6 +436,8 @@ bool syntax::List::canBeEmpty() const {
433
436
return true ;
434
437
case NodeKind::ParameterDeclarationList:
435
438
return true ;
439
+ case NodeKind::DeclaratorList:
440
+ return true ;
436
441
default :
437
442
llvm_unreachable (" This is not a subclass of List, thus canBeEmpty() "
438
443
" cannot be called" );
0 commit comments