forked from OSchip/llvm-project
[SyntaxTree][List] Fix: `ParameterDeclarationList` is the `List` inside `ParametersAndQualifiers`
Differential Revision: https://reviews.llvm.org/D87598
This commit is contained in:
parent
676febc044
commit
12232dc181
|
@ -366,7 +366,7 @@ clang::tok::TokenKind syntax::List::getDelimiterTokenKind() {
|
|||
case NodeKind::NestedNameSpecifier:
|
||||
return clang::tok::coloncolon;
|
||||
case NodeKind::CallArguments:
|
||||
case NodeKind::ParametersAndQualifiers:
|
||||
case NodeKind::ParameterDeclarationList:
|
||||
return clang::tok::comma;
|
||||
default:
|
||||
llvm_unreachable("This is not a subclass of List, thus "
|
||||
|
@ -379,7 +379,7 @@ syntax::List::TerminationKind syntax::List::getTerminationKind() {
|
|||
case NodeKind::NestedNameSpecifier:
|
||||
return TerminationKind::Terminated;
|
||||
case NodeKind::CallArguments:
|
||||
case NodeKind::ParametersAndQualifiers:
|
||||
case NodeKind::ParameterDeclarationList:
|
||||
return TerminationKind::Separated;
|
||||
default:
|
||||
llvm_unreachable("This is not a subclass of List, thus "
|
||||
|
@ -393,7 +393,7 @@ bool syntax::List::canBeEmpty() {
|
|||
return false;
|
||||
case NodeKind::CallArguments:
|
||||
return true;
|
||||
case NodeKind::ParametersAndQualifiers:
|
||||
case NodeKind::ParameterDeclarationList:
|
||||
return true;
|
||||
default:
|
||||
llvm_unreachable("This is not a subclass of List, thus canBeEmpty() "
|
||||
|
|
Loading…
Reference in New Issue