Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Sema: disable implicit conversion from _Complex to real types in C++. | Tim Northover | 2017-08-08 | 1 | -155/+0 |
| | | | | | | | | | | | 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 | ||||
* | Make -Wabsolute-value C++-aware. | Richard Trieu | 2014-04-15 | 1 | -0/+823 |
Warn on std::abs() with unsigned argument. Suggest std::abs as replacement for the C absolute value functions. Suggest C++ headers if the specific std::abs overload is not found. llvm-svn: 206340 |