diff options
| author | Anders Carlsson <andersca@mac.com> | 2008-12-01 02:17:22 +0000 |
|---|---|---|
| committer | Anders Carlsson <andersca@mac.com> | 2008-12-01 02:17:22 +0000 |
| commit | 1dbffc6e3661938392895c33a28feab5b01ea99e (patch) | |
| tree | fe8ddeda26db7c2cdb8267812cf2f182a749fedc /clang/lib/Sema/Sema.h | |
| parent | 4bb9113da462c857fc962b483a41e3df5dfe74e1 (diff) | |
| download | bcm5719-llvm-1dbffc6e3661938392895c33a28feab5b01ea99e.tar.gz bcm5719-llvm-1dbffc6e3661938392895c33a28feab5b01ea99e.zip | |
Add Sema::isNullPointerConstant which extwarns if necessary. Use it in Sema::CheckConditionalOperands.
llvm-svn: 60319
Diffstat (limited to 'clang/lib/Sema/Sema.h')
| -rw-r--r-- | clang/lib/Sema/Sema.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/Sema/Sema.h b/clang/lib/Sema/Sema.h index 7b69de5cc24..17af72ad9d8 100644 --- a/clang/lib/Sema/Sema.h +++ b/clang/lib/Sema/Sema.h @@ -1350,7 +1350,9 @@ public: /// 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); + bool VerifyIntegerConstantExpression(const Expr*E, llvm::APSInt *Result = 0); + + bool isNullPointerConstant(const Expr *E); //===--------------------------------------------------------------------===// // Extra semantic analysis beyond the C type system |

