[cfe-commits] r41459 - /cfe/trunk/include/clang/AST/StmtVisitor.h
Chris Lattner
sabre at nondot.org
Sun Aug 26 14:40:28 PDT 2007
Author: lattner
Date: Sun Aug 26 16:40:28 2007
New Revision: 41459
URL: http://llvm.org/viewvc/llvm-project?rev=41459&view=rev
Log:
dispatch to functions like VisitBinRemAssign with knowledge that
the operand is of type CompoundAssignOperator, not just BinaryOperator.
Modified:
cfe/trunk/include/clang/AST/StmtVisitor.h
Modified: cfe/trunk/include/clang/AST/StmtVisitor.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/StmtVisitor.h?rev=41459&r1=41458&r2=41459&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/StmtVisitor.h (original)
+++ cfe/trunk/include/clang/AST/StmtVisitor.h Sun Aug 26 16:40:28 2007
@@ -55,16 +55,26 @@
case BinaryOperator::LAnd: DISPATCH(BinLAnd, BinaryOperator);
case BinaryOperator::LOr : DISPATCH(BinLOr, BinaryOperator);
case BinaryOperator::Assign: DISPATCH(BinAssign, BinaryOperator);
- case BinaryOperator::MulAssign: DISPATCH(BinMulAssign, BinaryOperator);
- case BinaryOperator::DivAssign: DISPATCH(BinDivAssign, BinaryOperator);
- case BinaryOperator::RemAssign: DISPATCH(BinRemAssign, BinaryOperator);
- case BinaryOperator::AddAssign: DISPATCH(BinAddAssign, BinaryOperator);
- case BinaryOperator::SubAssign: DISPATCH(BinSubAssign, BinaryOperator);
- case BinaryOperator::ShlAssign: DISPATCH(BinShlAssign, BinaryOperator);
- case BinaryOperator::ShrAssign: DISPATCH(BinShrAssign, BinaryOperator);
- case BinaryOperator::AndAssign: DISPATCH(BinAndAssign, BinaryOperator);
- case BinaryOperator::OrAssign: DISPATCH(BinOrAssign, BinaryOperator);
- case BinaryOperator::XorAssign: DISPATCH(BinXorAssign, BinaryOperator);
+ case BinaryOperator::MulAssign:
+ DISPATCH(BinMulAssign, CompoundAssignOperator);
+ case BinaryOperator::DivAssign:
+ DISPATCH(BinDivAssign, CompoundAssignOperator);
+ case BinaryOperator::RemAssign:
+ DISPATCH(BinRemAssign, CompoundAssignOperator);
+ case BinaryOperator::AddAssign:
+ DISPATCH(BinAddAssign, CompoundAssignOperator);
+ case BinaryOperator::SubAssign:
+ DISPATCH(BinSubAssign, CompoundAssignOperator);
+ case BinaryOperator::ShlAssign:
+ DISPATCH(BinShlAssign, CompoundAssignOperator);
+ case BinaryOperator::ShrAssign:
+ DISPATCH(BinShrAssign, CompoundAssignOperator);
+ case BinaryOperator::AndAssign:
+ DISPATCH(BinAndAssign, CompoundAssignOperator);
+ case BinaryOperator::OrAssign:
+ DISPATCH(BinOrAssign, CompoundAssignOperator);
+ case BinaryOperator::XorAssign:
+ DISPATCH(BinXorAssign, CompoundAssignOperator);
case BinaryOperator::Comma: DISPATCH(BinComma, BinaryOperator);
}
} else if (UnaryOperator *UnOp = dyn_cast<UnaryOperator>(S)) {
More information about the cfe-commits
mailing list