[cfe-commits] r86291 - in /cfe/trunk: lib/Parse/ParseObjc.cpp test/Parser/objc-init.m
Fariborz Jahanian
fjahanian at apple.com
Fri Nov 6 13:48:47 PST 2009
Author: fjahanian
Date: Fri Nov 6 15:48:47 2009
New Revision: 86291
URL: http://llvm.org/viewvc/llvm-project?rev=86291&view=rev
Log:
Fix a bogus objective-c warning with -pedantic.
(radar 7370882).
Modified:
cfe/trunk/lib/Parse/ParseObjc.cpp
cfe/trunk/test/Parser/objc-init.m
Modified: cfe/trunk/lib/Parse/ParseObjc.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Parse/ParseObjc.cpp?rev=86291&r1=86290&r2=86291&view=diff
==============================================================================
--- cfe/trunk/lib/Parse/ParseObjc.cpp (original)
+++ cfe/trunk/lib/Parse/ParseObjc.cpp Fri Nov 6 15:48:47 2009
@@ -1202,6 +1202,8 @@
}
if (Tok.isNot(tok::semi))
Diag(Tok, diag::err_expected_semi_after) << "@synthesize";
+ else
+ ConsumeToken(); // consume ';'
return DeclPtrTy();
}
Modified: cfe/trunk/test/Parser/objc-init.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Parser/objc-init.m?rev=86291&r1=86290&r2=86291&view=diff
==============================================================================
--- cfe/trunk/test/Parser/objc-init.m (original)
+++ cfe/trunk/test/Parser/objc-init.m Fri Nov 6 15:48:47 2009
@@ -39,3 +39,21 @@
.x [x METH2] // expected-error {{expected '=' or another designator}}
};
}
+
+// rdar://7370882
+ at interface SemicolonsAppDelegate
+{
+ id i;
+}
+ at property (assign) id window;
+ at end
+
+ at implementation SemicolonsAppDelegate
+{
+ id i;
+}
+ @synthesize window;
+ at end
+
+
+
More information about the cfe-commits
mailing list