[cfe-commits] r86150 - /cfe/trunk/include/clang/AST/Expr.h

Fariborz Jahanian fjahanian at apple.com
Thu Nov 5 10:47:38 PST 2009


Author: fjahanian
Date: Thu Nov  5 12:47:38 2009
New Revision: 86150

URL: http://llvm.org/viewvc/llvm-project?rev=86150&view=rev
Log:
Adds doxygen comment for HasSideEffects method.


Modified:
    cfe/trunk/include/clang/AST/Expr.h

Modified: cfe/trunk/include/clang/AST/Expr.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/Expr.h?rev=86150&r1=86149&r2=86150&view=diff

==============================================================================
--- cfe/trunk/include/clang/AST/Expr.h (original)
+++ cfe/trunk/include/clang/AST/Expr.h Thu Nov  5 12:47:38 2009
@@ -250,6 +250,10 @@
   /// 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





More information about the cfe-commits mailing list