aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-03-28 06:13:37 +0000
committerChris Lattner <sabre@nondot.org>2009-03-28 06:13:37 +0000
commit239a53edc946f3756635b2d230f62ed43dbbbef7 (patch)
tree694349c3080e16c5fb008c0d9ea5d31237fd2965
parent244a67d911d08c3757a18ad666e4a268cf3ee285 (diff)
tidy whitespace.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67920 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Parse/ParseDecl.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/Parse/ParseDecl.cpp b/lib/Parse/ParseDecl.cpp
index b1cbc3cceb..0ab7042f5e 100644
--- a/lib/Parse/ParseDecl.cpp
+++ b/lib/Parse/ParseDecl.cpp
@@ -393,18 +393,19 @@ ParseInitDeclaratorListAfterFirstDeclarator(Declarator &D) {
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);