diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2009-11-05 18:03:03 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2009-11-05 18:03:03 +0000 |
commit | 393c247fe025ccb5f914e37e948192ea86faef8c (patch) | |
tree | ccd2ca710411f416b3dd51bd6e4765245133aa2c /include | |
parent | 9c4b838782132ec670fd7e48d1a7a7fd433fed06 (diff) |
Added support for static variables which require
initialization before main. Fixes pr5396.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86145 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/clang/AST/Expr.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/clang/AST/Expr.h b/include/clang/AST/Expr.h index 2a87f58835..665639128e 100644 --- a/include/clang/AST/Expr.h +++ b/include/clang/AST/Expr.h @@ -250,6 +250,8 @@ public: /// folded, but discard the result. bool isEvaluatable(ASTContext &Ctx) const; + bool HasSideEffects(ASTContext &Ctx) const; + /// EvaluateAsInt - Call Evaluate and return the folded integer. This /// must be called on an expression that constant folds to an integer. llvm::APSInt EvaluateAsInt(ASTContext &Ctx) const; |