[SyntaxTree][List] Fix: `ParameterDeclarationList` is the `List` inside `ParametersAn...
authorEduardo Caldas <ecaldas@google.com>
Mon, 14 Sep 2020 07:56:39 +0000 (07:56 +0000)
committerEduardo Caldas <ecaldas@google.com>
Mon, 14 Sep 2020 10:35:41 +0000 (10:35 +0000)
Differential Revision: https://reviews.llvm.org/D87598

clang/lib/Tooling/Syntax/Tree.cpp

index ca1e288..2bff159 100644 (file)
@@ -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() "