[PATCH] D87598: [SyntaxTree][List] Fix: `ParameterDeclarationList` is the `List` inside `ParametersAndQualifiers`
Eduardo Caldas via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 14 03:35:55 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rG12232dc181cb: [SyntaxTree][List] Fix: `ParameterDeclarationList` is the `List` insideā¦ (authored by eduucaldas).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D87598/new/
https://reviews.llvm.org/D87598
Files:
clang/lib/Tooling/Syntax/Tree.cpp
Index: clang/lib/Tooling/Syntax/Tree.cpp
===================================================================
--- clang/lib/Tooling/Syntax/Tree.cpp
+++ clang/lib/Tooling/Syntax/Tree.cpp
@@ -366,7 +366,7 @@
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 @@
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 @@
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() "
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D87598.291530.patch
Type: text/x-patch
Size: 1121 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200914/c881d3aa/attachment.bin>
More information about the cfe-commits
mailing list