[cfe-commits] r38921 - /cfe/cfe/trunk/Parse/ParseDecl.cpp
sabre at cs.uiuc.edu
sabre at cs.uiuc.edu
Wed Jul 11 09:25:47 PDT 2007
Author: sabre
Date: Wed Jul 11 11:25:47 2007
New Revision: 38921
URL: http://llvm.org/viewvc/llvm-project?rev=38921&view=rev
Log:
Correctly implement the check for a typedef name
Modified:
cfe/cfe/trunk/Parse/ParseDecl.cpp
Modified: cfe/cfe/trunk/Parse/ParseDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/Parse/ParseDecl.cpp?rev=38921&r1=38920&r2=38921&view=diff
==============================================================================
--- cfe/cfe/trunk/Parse/ParseDecl.cpp (original)
+++ cfe/cfe/trunk/Parse/ParseDecl.cpp Wed Jul 11 11:25:47 2007
@@ -830,7 +830,7 @@
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!");
More information about the cfe-commits
mailing list