forked from OSchip/llvm-project
Correctly implement the check for a typedef name
llvm-svn: 38921
This commit is contained in:
parent
0fb8b36808
commit
8a3e918e33
|
@ -830,7 +830,7 @@ void Parser::ParseParenDeclarator(Declarator &D) {
|
|||
HasPrototype = false;
|
||||
IsEmpty = true;
|
||||
} else if (Tok.getKind() == tok::identifier &&
|
||||
1/*TODO: !isatypedefname(Tok.getIdentifierInfo())*/) {
|
||||
!Actions.isTypedefName(*Tok.getIdentifierInfo(), CurScope)) {
|
||||
// Identifier list. Note that '(' identifier-list ')' is only allowed for
|
||||
// normal declarators, not for abstract-declarators.
|
||||
assert(D.isPastIdentifier() && "Identifier (if present) must be passed!");
|
||||
|
|
Loading…
Reference in New Issue