Added "mode" to StmtIterator to record if the expression being iterated
over is the subexpression of a sizeof(expression). Different clients
will wish to handle iteration over such subexpressions differently, and can
now easily query if they are iterating over such statements using the
StmtIterator's inSizeOfExpr().
llvm-svn: 45047
diff --git a/clang/AST/StmtIterator.cpp b/clang/AST/StmtIterator.cpp
index 94a5397..b72e916 100644
--- a/clang/AST/StmtIterator.cpp
+++ b/clang/AST/StmtIterator.cpp
@@ -49,7 +49,7 @@
}
void StmtIteratorBase::NextDecl(bool ImmediateAdvance) {
- assert (inDeclMode());
+ assert (inDecl());
assert (getVAPtr() == NULL);
assert (decl);
@@ -97,7 +97,7 @@
}
StmtIteratorBase::StmtIteratorBase(VariableArrayType* t)
-: decl(NULL), RawVAPtr(VASizeMode) {
+: decl(NULL), RawVAPtr(SizeOfTypeVAMode) {
RawVAPtr |= reinterpret_cast<uintptr_t>(t);
}