aboutsummaryrefslogtreecommitdiff
path: root/Parse/ParseStmt.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2008-01-29 18:21:32 +0000
committerFariborz Jahanian <fjahanian@apple.com>2008-01-29 18:21:32 +0000
commitc385c90c68dfa376650e2facfbb444b2ec9bd110 (patch)
tree89fa1d81158c9b6fdbf30faf1b645629ff238e32 /Parse/ParseStmt.cpp
parent356916ec84826a793b0353e5db0e9a7589b9ec5c (diff)
Bunch of type defs, etc. for @synchronized.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46520 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Parse/ParseStmt.cpp')
-rw-r--r--Parse/ParseStmt.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/Parse/ParseStmt.cpp b/Parse/ParseStmt.cpp
index 688cfe792e..1eac2549d7 100644
--- a/Parse/ParseStmt.cpp
+++ b/Parse/ParseStmt.cpp
@@ -36,7 +36,7 @@ using namespace clang;
/// jump-statement
/// [OBC] objc-throw-statement
/// [OBC] objc-try-catch-statement
-/// [OBC] objc-synchronized-statement [TODO]
+/// [OBC] objc-synchronized-statement
/// [GNU] asm-statement
/// [OMP] openmp-construct [TODO]
///
@@ -91,6 +91,8 @@ Parser::StmtResult Parser::ParseStatementOrDeclaration(bool OnlyStatement) {
return ParseObjCTryStmt(AtLoc);
else if (Tok.isObjCAtKeyword(tok::objc_throw))
return ParseObjCThrowStmt(AtLoc);
+ else if (Tok.isObjCAtKeyword(tok::objc_synchronized))
+ return ParseObjCSynchronizedStmt(AtLoc);
ExprResult Res = ParseExpressionWithLeadingAt(AtLoc);
if (Res.isInvalid) {
// If the expression is invalid, skip ahead to the next semicolon. Not