[cfe-commits] r38941 - /cfe/cfe/trunk/include/clang/Parse/Action.h

sabre at cs.uiuc.edu sabre at cs.uiuc.edu
Wed Jul 11 09:26:03 PDT 2007


Author: sabre
Date: Wed Jul 11 11:26:03 2007
New Revision: 38941

URL: http://llvm.org/viewvc/llvm-project?rev=38941&view=rev
Log:
Add actions for postfix exprs

Modified:
    cfe/cfe/trunk/include/clang/Parse/Action.h

Modified: cfe/cfe/trunk/include/clang/Parse/Action.h
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/include/clang/Parse/Action.h?rev=38941&r1=38940&r2=38941&view=diff

==============================================================================
--- cfe/cfe/trunk/include/clang/Parse/Action.h (original)
+++ cfe/cfe/trunk/include/clang/Parse/Action.h Wed Jul 11 11:26:03 2007
@@ -15,6 +15,7 @@
 #define LLVM_CLANG_PARSE_ACTION_H
 
 #include "clang/Basic/SourceLocation.h"
+#include "clang/Basic/TokenKinds.h"
 
 namespace llvm {
 namespace clang {
@@ -86,6 +87,27 @@
   virtual ExprTy *ParsePostfixUnaryOp(const LexerToken &Tok, ExprTy *Input) {
     return 0;
   }
+  virtual ExprTy *ParseArraySubscriptExpr(ExprTy *Base, SourceLocation LLoc,
+                                          ExprTy *Idx, SourceLocation RLoc) {
+    return 0;
+  }
+  virtual ExprTy *ParseMemberReferenceExpr(ExprTy *Base, SourceLocation OpLoc,
+                                           tok::TokenKind OpKind,
+                                           SourceLocation MemberLoc,
+                                           IdentifierInfo &Member) {
+    return 0;
+  }
+  
+  /// ParseCallExpr - Handle a call to Fn with the specified array of arguments.
+  /// This provides the location of the left/right parens and a list of comma
+  /// locations.
+  virtual ExprTy *ParseCallExpr(ExprTy *Fn, SourceLocation LParenLoc,
+                                ExprTy **Args, unsigned NumArgs,
+                                SourceLocation *CommaLocs, unsigned NumCommas,
+                                SourceLocation RParenLoc) {
+    return 0;
+  }
+
   virtual ExprTy *ParseBinOp(const LexerToken &Tok, ExprTy *LHS, ExprTy *RHS) {
     return 0;
   }





More information about the cfe-commits mailing list