summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/unused.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix -Wunused-private-field to fire regardless of which implicit special ↵Richard Smith2017-11-011-1/+1
| | | | | | members have been implicitly declared. llvm-svn: 317076
* PR33839: Fix -Wunused handling for structured binding declarations.Richard Smith2017-10-021-4/+46
| | | | | | | We warn about a structured binding declaration being unused only if none of its bindings are used. llvm-svn: 314733
* Lit C++11 Compatibility Patch #8Charles Li2016-04-141-2/+10
| | | | | | 24 tests have been updated for C++11 compatibility. llvm-svn: 266387
* Fix -Wunused-value to not warn on expressions that have unresolved lookups dueMatt Beaumont-Gay2012-10-231-0/+15
| | | | | | to dependent arguments. llvm-svn: 166468
* Handle C++ functional casts in a similar way to C-style casts inEli Friedman2012-09-241-0/+12
| | | | | | unused expression warnings. <rdar://problem/12359208>. llvm-svn: 164569
* A minor tweak to the new volatile lvalue warning: don't warn on "(void)x", ↵Eli Friedman2012-05-241-0/+2
| | | | | | where "x" refers to a local variable. This should silence a useless warning in compiler-rt and other places. llvm-svn: 157414
* Add a warning to diagnose statements in C++ like "*(volatile int*)x;". ↵Eli Friedman2012-05-241-18/+28
| | | | | | 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
* Improve the test for unused-expression warnings slightlyDouglas Gregor2010-01-161-0/+9
| | | | llvm-svn: 93644
* Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'.Daniel Dunbar2009-12-151-1/+1
| | | | | | | | | - This is designed to make it obvious that %clang_cc1 is a "test variable" which is substituted. It is '%clang_cc1' instead of '%clang -cc1' because it can be useful to redefine what gets run as 'clang -cc1' (for example, to set a default target). llvm-svn: 91446
* PR4103: Silence bogus unused expression warning.Eli Friedman2009-04-291-0/+15
llvm-svn: 70384
OpenPOWER on IntegriCloud