forked from OSchip/llvm-project
[pseudo] Fix the type-parameter rule.
The IDENTIFIER should be optional. Differential Revision: https://reviews.llvm.org/D126998
This commit is contained in:
parent
90dab0473e
commit
ecd7ff53b5
|
@ -645,7 +645,7 @@ constraint-logical-and-expression := primary-expression
|
|||
constraint-logical-and-expression := constraint-logical-and-expression && primary-expression
|
||||
template-parameter := type-parameter
|
||||
template-parameter := parameter-declaration
|
||||
type-parameter := type-parameter-key ..._opt IDENTIFIER
|
||||
type-parameter := type-parameter-key ..._opt IDENTIFIER_opt
|
||||
type-parameter := type-parameter-key IDENTIFIER_opt = type-id
|
||||
type-parameter := type-constraint ..._opt IDENTIFIER_opt
|
||||
type-parameter := type-constraint IDENTIFIER_opt = type-id
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
// RUN: clang-pseudo -grammar=%cxx-bnf-file -source=%s --print-forest | FileCheck %s
|
||||
template <typename> struct MatchParents;
|
||||
// CHECK: template-parameter-list~TYPENAME := tok[2]
|
Loading…
Reference in New Issue