summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/integer-overflow.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [Sema] Emit -Winteger-overflow for arguments in function calls, ObjC messages.Volodymyr Sapsai2018-03-271-0/+15
| | | | | | | | | | | | | | rdar://problem/35539384 Reviewers: ahatanak, nicholas, rsmith, jkorous-apple Reviewed By: jkorous-apple Subscribers: cfe-commits, jkorous-apple Differential Revision: https://reviews.llvm.org/D42938 llvm-svn: 328671
* Sema: disable implicit conversion from _Complex to real types in C++.Tim Northover2017-08-081-1/+1
| | | | | | | | | | | Converting a _Complex type to a real one simply discards the imaginary part. This can easily lead to loss of information so for safety (and GCC compatibility) this patch disallows that when the conversion would be implicit. The one exception is bool, which actually compares both real and imaginary parts and so is safe. llvm-svn: 310427
* Adjust tests to have consistent integer sizes.Richard Trieu2016-04-111-2/+7
| | | | | | | Add a triple to the run lines so that integers will the same sizes across runs. Also add a compile time check to ensure the assumptions about sizes are met. llvm-svn: 265991
* Catch more cases when diagnosing integer-constant-expression overflows.Josh Magee2015-02-041-0/+166
When visiting AssignmentOps, keep evaluating after a failure (when possible) in order to identify overflow in subexpressions. Differential Revision: http://reviews.llvm.org/D1238 llvm-svn: 228202
OpenPOWER on IntegriCloud