]> granicus.if.org Git - clang/commitdiff
Add a FIXME to clarify previous commit/experiment.
authorSteve Naroff <snaroff@apple.com>
Tue, 5 Feb 2008 23:59:27 +0000 (23:59 +0000)
committerSteve Naroff <snaroff@apple.com>
Tue, 5 Feb 2008 23:59:27 +0000 (23:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46782 91177308-0d34-0410-b5e6-96231b3b80d8

Parse/ParseObjc.cpp

index 890b9bcaf9a4aea36ac70235ffbb96ebf50067af..01b2abffb081c018f85b7e7117f9fe2637226a43 100644 (file)
@@ -1267,6 +1267,12 @@ Parser::StmtResult Parser::ParseObjCAtStatement(SourceLocation AtLoc) {
     bool parsedAtSign;
     
     StmtResult Res = ParseObjCTryStmt(AtLoc, parsedAtSign);
+    // FIXME: This hack results in a dropped AST node. To correctly implement 
+    // the hack, parseAtSign would need to bubble up to 
+    // ParseCompoundStatement(). This would involve adding an argument to this 
+    // routine and ParseStatementOrDeclaration(). Changing the parser in this
+    // fashion to solve such a conceptually simple problem is undesirable.
+    // Rework this clause once 2-token lookahead is implemented.
     if (!Res.isInvalid && parsedAtSign)
       return ParseObjCAtStatement(AtLoc);
     return Res;