diff options
| author | Anders Carlsson <andersca@mac.com> | 2008-11-30 19:50:32 +0000 |
|---|---|---|
| committer | Anders Carlsson <andersca@mac.com> | 2008-11-30 19:50:32 +0000 |
| commit | e54e8a11822b34f36594d159e4722b3b91391a50 (patch) | |
| tree | 8c79f8cc8fb484350a018dddd0149d92f45bcb3c /clang/lib/Sema/Sema.h | |
| parent | 13cae612b9d0f38f123627991f3ff911aa1dc323 (diff) | |
| download | bcm5719-llvm-e54e8a11822b34f36594d159e4722b3b91391a50.tar.gz bcm5719-llvm-e54e8a11822b34f36594d159e4722b3b91391a50.zip | |
Add Sema::VerifyIntegerConstantExpression
llvm-svn: 60305
Diffstat (limited to 'clang/lib/Sema/Sema.h')
| -rw-r--r-- | clang/lib/Sema/Sema.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/Sema/Sema.h b/clang/lib/Sema/Sema.h index 044bfbd73be..7b69de5cc24 100644 --- a/clang/lib/Sema/Sema.h +++ b/clang/lib/Sema/Sema.h @@ -1347,6 +1347,11 @@ public: void InitBuiltinVaListType(); + /// VerifyIntegerConstantExpression - verifies that an expression is an ICE, + /// and reports the appropriate diagnostics. Returns false on success. + /// Can optionally return the value of the expression. + bool VerifyIntegerConstantExpression(const Expr* E, llvm::APSInt *Result = 0); + //===--------------------------------------------------------------------===// // Extra semantic analysis beyond the C type system private: |

