From: Eduardo Caldas Date: Mon, 14 Sep 2020 07:56:39 +0000 (+0000) Subject: [SyntaxTree][List] Fix: `ParameterDeclarationList` is the `List` inside `ParametersAn... X-Git-Tag: llvmorg-13-init~12200 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=12232dc181cbe78fbd40a6ed1a89795a2c9a1154;p=platform%2Fupstream%2Fllvm.git [SyntaxTree][List] Fix: `ParameterDeclarationList` is the `List` inside `ParametersAndQualifiers` Differential Revision: https://reviews.llvm.org/D87598 --- diff --git a/clang/lib/Tooling/Syntax/Tree.cpp b/clang/lib/Tooling/Syntax/Tree.cpp index ca1e288..2bff159 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() "