summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/warn-absolute-value.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Sema: disable implicit conversion from _Complex to real types in C++.Tim Northover2017-08-081-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 Trieu2014-04-151-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
OpenPOWER on IntegriCloud