[cfe-commits] r39698 - /cfe/cfe/trunk/include/clang/AST/ExprCXX.h
bwendlin at cs.uiuc.edu
bwendlin at cs.uiuc.edu
Wed Jul 11 09:47:16 PDT 2007
Author: bwendlin
Date: Wed Jul 11 11:47:16 2007
New Revision: 39698
URL: http://llvm.org/viewvc/llvm-project?rev=39698&view=rev
Log:
Submitted by: Bill Wendling
Missing support for LLVM casting operators.
Modified:
cfe/cfe/trunk/include/clang/AST/ExprCXX.h
Modified: cfe/cfe/trunk/include/clang/AST/ExprCXX.h
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/include/clang/AST/ExprCXX.h?rev=39698&r1=39697&r2=39698&view=diff
==============================================================================
--- cfe/cfe/trunk/include/clang/AST/ExprCXX.h (original)
+++ cfe/cfe/trunk/include/clang/AST/ExprCXX.h Wed Jul 11 11:47:16 2007
@@ -38,6 +38,10 @@
Opcode getOpcode() const { return Op; }
virtual void visit(StmtVisitor &Visitor);
+ static bool classof(const Stmt *T) {
+ return T->getStmtClass() == CXXCastExprClass;
+ }
+ static bool classof(const CXXCastExpr *) { return true; }
private:
Opcode Op;
};
@@ -56,6 +60,10 @@
virtual SourceRange getSourceRange() const { return SourceRange(Loc); }
virtual void visit(StmtVisitor &Visitor);
+ static bool classof(const Stmt *T) {
+ return T->getStmtClass() == CXXBoolLiteralExprClass;
+ }
+ static bool classof(const CXXBoolLiteralExpr *) { return true; }
};
} // end namespace clang
More information about the cfe-commits
mailing list