[cfe-commits] r40264 - /cfe/trunk/include/clang/AST/Expr.h

Chris Lattner sabre at nondot.org
Fri Jul 20 23:32:11 PDT 2007


Author: lattner
Date: Sat Jul 21 01:32:11 2007
New Revision: 40264

URL: http://llvm.org/viewvc/llvm-project?rev=40264&view=rev
Log:
implement getSourceRange for ImplicitCast

Modified:
    cfe/trunk/include/clang/AST/Expr.h

Modified: cfe/trunk/include/clang/AST/Expr.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/Expr.h?rev=40264&r1=40263&r2=40264&view=diff

==============================================================================
--- cfe/trunk/include/clang/AST/Expr.h (original)
+++ cfe/trunk/include/clang/AST/Expr.h Sat Jul 21 01:32:11 2007
@@ -493,7 +493,7 @@
   Expr *getSubExpr() { return Op; }
   const Expr *getSubExpr() const { return Op; }
 
-  virtual SourceRange getSourceRange() const { return SourceRange(); } // FIXME
+  virtual SourceRange getSourceRange() const { return Op->getSourceRange(); }
 
   virtual void visit(StmtVisitor &Visitor);
   static bool classof(const Stmt *T) { 





More information about the cfe-commits mailing list