[cfe-commits] r67920 - /cfe/trunk/lib/Parse/ParseDecl.cpp
Chris Lattner
sabre at nondot.org
Fri Mar 27 23:13:37 PDT 2009
Author: lattner
Date: Sat Mar 28 01:13:37 2009
New Revision: 67920
URL: http://llvm.org/viewvc/llvm-project?rev=67920&view=rev
Log:
tidy whitespace.
Modified:
cfe/trunk/lib/Parse/ParseDecl.cpp
Modified: cfe/trunk/lib/Parse/ParseDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Parse/ParseDecl.cpp?rev=67920&r1=67919&r2=67920&view=diff
==============================================================================
--- cfe/trunk/lib/Parse/ParseDecl.cpp (original)
+++ cfe/trunk/lib/Parse/ParseDecl.cpp Sat Mar 28 01:13:37 2009
@@ -393,18 +393,19 @@
if (Tok.is(tok::semi)) {
ConsumeToken();
// for(is key; in keys) is error.
- if (D.getContext() == Declarator::ForContext && isTokIdentifier_in()) {
+ if (D.getContext() == Declarator::ForContext && isTokIdentifier_in()) {
Diag(Tok, diag::err_parse_error);
return 0;
}
return Actions.FinalizeDeclaratorGroup(CurScope, LastDeclInGroup);
}
+
// If this is an ObjC2 for-each loop, this is a successful declarator
// parse. The syntax for these looks like:
// 'for' '(' declaration 'in' expr ')' statement
- if (D.getContext() == Declarator::ForContext && isTokIdentifier_in()) {
+ if (D.getContext() == Declarator::ForContext && isTokIdentifier_in())
return Actions.FinalizeDeclaratorGroup(CurScope, LastDeclInGroup);
- }
+
Diag(Tok, diag::err_parse_error);
// Skip to end of block or statement
SkipUntil(tok::r_brace, true, true);
More information about the cfe-commits
mailing list