summaryrefslogtreecommitdiffstats
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
commit2f14ce0a74f8311a21182bc1c667a303210cbbbb (patch)
tree8ce6f18ac178b9e46e22fc35b269d9343a450fc7
parentfcd33a68e43ae8683abc49bfe6a01fb0e016b704 (diff)
downloadbcm5719-llvm-2f14ce0a74f8311a21182bc1c667a303210cbbbb.tar.gz
bcm5719-llvm-2f14ce0a74f8311a21182bc1c667a303210cbbbb.zip
tidy whitespace.
llvm-svn: 67920
-rw-r--r--clang/lib/Parse/ParseDecl.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/clang/lib/Parse/ParseDecl.cpp b/clang/lib/Parse/ParseDecl.cpp
index b1cbc3cceb6..0ab7042f5eb 100644
--- a/clang/lib/Parse/ParseDecl.cpp
+++ b/clang/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);
OpenPOWER on IntegriCloud