diff options
-rw-r--r-- | include/clang/AST/Expr.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/clang/AST/Expr.h b/include/clang/AST/Expr.h index 665639128e..67f04b6a0c 100644 --- a/include/clang/AST/Expr.h +++ b/include/clang/AST/Expr.h @@ -250,6 +250,10 @@ public: /// folded, but discard the result. bool isEvaluatable(ASTContext &Ctx) const; + /// HasSideEffects - This routine returns true for all those expressions + /// which must be evaluated each time and must not be optimization away + /// or evaluated at compile time. Example is a function call, volatile + /// variable read. bool HasSideEffects(ASTContext &Ctx) const; /// EvaluateAsInt - Call Evaluate and return the folded integer. This |