summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/Inputs/warn-unused-variables.h
Commit message (Collapse)AuthorAgeFilesLines
* Make -Wunused warning rules more consistent.Eli Friedman2013-09-101-0/+2
| | | | | | | | | | | | | | | This patch does a few different things. This patch improves unused var diags for const vars: we no longer unconditionally suppress diagnostics for const vars, instead only suppressing the diagnostic when the declaration appears to be useful. This patch also makes us more consistently use whether a variable/function is declared in the main file to suppress diagnostics where appropriate. Fixes <rdar://problem/14907887>. llvm-svn: 190382
* Suppress -Wunused-variable for variables declared in headers, which may inMatt Beaumont-Gay2013-04-101-0/+11
fact be defined and used in another TU. Reshuffle some test cases because we suppress -Wunused-variable after we've emitted an error. This fixes PR15558. llvm-svn: 179138
OpenPOWER on IntegriCloud