[cfe-commits] r39123 - /cfe/cfe/trunk/Parse/Parser.cpp

sabre at cs.uiuc.edu sabre at cs.uiuc.edu
Wed Jul 11 09:27:46 PDT 2007


Author: sabre
Date: Wed Jul 11 11:27:45 2007
New Revision: 39123

URL: http://llvm.org/viewvc/llvm-project?rev=39123&view=rev
Log:
improve objc comments

Modified:
    cfe/cfe/trunk/Parse/Parser.cpp

Modified: cfe/cfe/trunk/Parse/Parser.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/Parse/Parser.cpp?rev=39123&r1=39122&r2=39123&view=diff

==============================================================================
--- cfe/cfe/trunk/Parse/Parser.cpp (original)
+++ cfe/cfe/trunk/Parse/Parser.cpp Wed Jul 11 11:27:45 2007
@@ -266,12 +266,12 @@
 /// [EXT]   ';'
 /// [GNU]   asm-definition
 /// [GNU]   __extension__ external-declaration     [TODO]
-/// [OBJC]  objc-class-definition      [TODO]
-/// [OBJC]  objc-class-declaration     [TODO]
-/// [OBJC]  objc-alias-declaration     [TODO]
-/// [OBJC]  objc-protocol-definition   [TODO]
-/// [OBJC]  objc-method-definition     [TODO]
-/// [OBJC]  @end                       [TODO]
+/// [OBJC]  objc-class-definition
+/// [OBJC]  objc-class-declaration
+/// [OBJC]  objc-alias-declaration
+/// [OBJC]  objc-protocol-definition
+/// [OBJC]  objc-method-definition
+/// [OBJC]  @end
 ///
 /// [GNU] asm-definition:
 ///         simple-asm-expr ';'
@@ -455,6 +455,14 @@
   MatchRHSPunctuation(tok::r_paren, Loc);
 }
 
+/// ParseExternalDeclaration:
+///       external-declaration: [C99 6.9]
+/// [OBJC]  objc-class-definition
+/// [OBJC]  objc-class-declaration     [TODO]
+/// [OBJC]  objc-alias-declaration     [TODO]
+/// [OBJC]  objc-protocol-definition   [TODO]
+/// [OBJC]  objc-method-definition     [TODO]
+/// [OBJC]  '@' 'end'                  [TODO]
 void Parser::ObjCParseAtDirectives() {
   SourceLocation AtLoc = ConsumeToken(); // the "@"
 
@@ -480,7 +488,7 @@
 
 ///
 /// objc-class-declaration: 
-///    @class identifier-list ;
+///    '@' 'class' identifier-list ';'
 ///  
 void Parser::ObjCParseAtClassDeclaration(SourceLocation atLoc) {
   ConsumeToken(); // the identifier "class"





More information about the cfe-commits mailing list