summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/no-warn-unused-const-variables.c
Commit message (Collapse)AuthorAgeFilesLines
* Sema: do not warn about unused const vars if main file is a headerErik Verbruggen2016-10-281-0/+4
If we pass a header to libclang, e.g. because it's open in an editor in an IDE, warnings about unused const vars are not useful: other files that include the header might use those constants. So when -x *-header is passed as command-line option, suppress this warning. llvm-svn: 285386
OpenPOWER on IntegriCloud