summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/warn-unused-value.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Add a warning to diagnose statements in C++ like "*(volatile int*)x;". ↵Eli Friedman2012-05-241-1/+1
| | | | | | Conceptually, this is part of -Wunused-value, but I added a separate flag -Wunused-volatile-lvalue so it doesn't get turned off by accident with -Wno-unused-value. I also made a few minor improvements to existing unused value warnings in the process. <rdar://problem/11516811>. llvm-svn: 157362
* When emitting a diagnostic about two-phase name lookup, don't do uselessNick Lewycky2012-03-141-0/+19
| | | | | | qualified name lookups into transparent contexts. llvm-svn: 152739
* Fix a QoI bug with overloaded operators inside macros.Matt Beaumont-Gay2011-09-191-0/+15
| | | | | | | | We were failing to set source locations and ranges in isUnusedResultAWarning for CXXOperatorCallExprs, leading to an "expression result unused" warning with absolutely no context if the expression was inside a macro. llvm-svn: 140036
* Improve the unused-value check to look into comma expressions and filter outJohn McCall2010-03-121-0/+17
voids in sub-expressions. Patch by Mike M! Fixes PR4806. llvm-svn: 98335
OpenPOWER on IntegriCloud