From 12232dc181cbe78fbd40a6ed1a89795a2c9a1154 Mon Sep 17 00:00:00 2001 From: Eduardo Caldas Date: Mon, 14 Sep 2020 07:56:39 +0000 Subject: [PATCH] [SyntaxTree][List] Fix: `ParameterDeclarationList` is the `List` inside `ParametersAndQualifiers` Differential Revision: https://reviews.llvm.org/D87598 --- clang/lib/Tooling/Syntax/Tree.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/clang/lib/Tooling/Syntax/Tree.cpp b/clang/lib/Tooling/Syntax/Tree.cpp index ca1e2880af9..2bff159696c 100644 --- a/clang/lib/Tooling/Syntax/Tree.cpp +++ b/clang/lib/Tooling/Syntax/Tree.cpp @@ -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() " -- 2.11.0