summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/warn-unused-comparison.cpp
Commit message (Collapse)AuthorAgeFilesLines
* No longer emit diagnostics about unused results (comparisons, etc) from ↵Aaron Ballman2014-10-161-0/+2
| | | | | | unevaluated contexts. Fixes PR18571. llvm-svn: 219954
* Ignore void returning overloaded functions fom -Wunused-comparison. PR19791.Richard Trieu2014-05-201-0/+14
| | | | llvm-svn: 209186
* Fix typosAlp Toker2014-05-151-1/+1
| | | | llvm-svn: 208838
* When an overloaded comparison operator returns a reference, do not considerRichard Trieu2014-05-141-0/+13
| | | | | | it for -Wunused-comparion warnings. This fixes PR19724. llvm-svn: 208824
* Move the warning about unused relational comparison from -Wunused-value toRichard Trieu2014-03-111-0/+14
| | | | | | | -Wunused-comparison. Also, newly warn on unused result from overloaded relational comparisons, now also in -Wunused-comparison. llvm-svn: 203535
* Don't analyze comparisons in type- or value-dependentDouglas Gregor2011-10-101-1/+23
| | | | | | subexpressions. Fixes PR10291. llvm-svn: 141552
* Remove the last FIXMEs on -Wunused-comparison since it got moved toChandler Carruth2011-08-181-6/+6
| | | | | | | entirely use the existing -Wunused-value infrastructure. This also fixes a few missed cases for -Wunused in general. llvm-svn: 137916
* Whitelist operator== and operator!= as valid for unused value warnings,Chandler Carruth2011-08-171-7/+7
| | | | | | | | even when overloaded and user-defined. These operators are both more valuable to warn on (due to likely typos) and extremely unlikely to be reasonable for use to trigger side-effects. llvm-svn: 137823
* Treating the unused equality comparisons as something other than part ofChandler Carruth2011-08-171-0/+72
-Wunused was a mistake. It resulted in duplicate warnings and lots of other hacks. Instead, this should be a special sub-category to -Wunused-value, much like -Wunused-result is. Moved to -Wunused-comparison, moved the implementation to piggy back on the -Wunused-value implementation instead of rolling its own, different mechanism for catching all of the "interesting" statements. I like the unused-value mechanism for this better, but its currently missing several top-level statements. For now, I've FIXME-ed out those test cases. I'll enhance the generic infrastructure to catch these statements in a subsequent patch. This patch also removes the cast-to-void fixit hint. This hint isn't available on any of the other -Wunused-value diagnostics, and if we want it to be, we should add it generically rather than in one specific case. llvm-svn: 137822
OpenPOWER on IntegriCloud