From: Fariborz Jahanian Date: Thu, 5 Nov 2009 18:47:38 +0000 (+0000) Subject: Adds doxygen comment for HasSideEffects method. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6ddf4784a22b994b954ed74c6061d4603d474639;p=clang Adds doxygen comment for HasSideEffects method. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86150 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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