From 6ddf4784a22b994b954ed74c6061d4603d474639 Mon Sep 17 00:00:00 2001 From: Fariborz Jahanian Date: Thu, 5 Nov 2009 18:47:38 +0000 Subject: [PATCH] Adds doxygen comment for HasSideEffects method. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86150 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/AST/Expr.h | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.50.1