summaryrefslogtreecommitdiffstats
path: root/clang/test/Driver/warning-options.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [clang] Get rid of "%T" expansionsKuba Mracek2017-08-151-1/+1
| | | | | | | | | | The %T lit expansion expands to a common directory shared between all the tests in the same directory, which is unexpected and unintuitive, and more importantly, it's been a source of subtle race conditions and flaky tests. In https://reviews.llvm.org/D35396, it was agreed that it would be best to simply ban %T and only keep %t, which is unique to each test. When a test needs a temporary directory, it can just create one using mkdir %t. This patch removes %T in clang. Differential Revision: https://reviews.llvm.org/D36437 llvm-svn: 310950
* Fix a regex error breaking tests.Zachary Turner2016-09-201-1/+1
| | | | llvm-svn: 282004
* Add some entropy to the folder name in Driver/warning-options.cpp.Zachary Turner2016-09-201-2/+2
| | | | | | | | | | It was trying to check that things behave correctly when a non-existant folder was specified for -isysroot. Incidentally, I have a folder named FOO in the root of my drive, so this test was failing. Make this impossible by using %T to refer to a definitely non-existant folder.: llvm-svn: 281998
* Re-apply "Revert r166370 and r166540 now that Xcode 4.6 has been available ↵Bob Wilson2014-12-021-5/+0
| | | | | | | | | | | for a while." This reverts commit r176892. I had reverted this a while back to give Chromium more time to update, and Nico says it should be OK now. llvm-svn: 223108
* Revert "Revert r166370 and r166540 now that Xcode 4.6 has been available for ↵Bob Wilson2013-03-121-0/+5
| | | | | | | | a while." This reverts commit 176887. Nico asked for more time to move to Xcode 4.6. llvm-svn: 176892
* Revert r166370 and r166540 now that Xcode 4.6 has been available for a while.Bob Wilson2013-03-121-5/+0
| | | | | | | | Those changes were added as a temporary workaround for Xcode 4.5 passing the -Wno-arc-abi option. Xcode 4.6 does not pass that option so this should no longer be necessary. llvm-svn: 176887
* [driver] Warnings for warning options are handled by the frontend. The ↵Chad Rosier2013-01-151-6/+0
| | | | | | | | | | driver needs to process the warning options to setup diagnostic state, but should not be emitting warnings as these would be rudndant with what the frontend emits. rdar://13001556 llvm-svn: 172497
* clang/test/Driver/warning-options.cpp: Appease MSYS bash.NAKAMURA Takumi2012-12-201-1/+1
| | | | llvm-svn: 170683
* Typo.Chad Rosier2012-12-191-1/+1
| | | | llvm-svn: 170613
* [driver] Have -isysroot warn on nonexistent paths.Chad Rosier2012-12-191-0/+4
| | | | | | rdar://12282267 llvm-svn: 170611
* Add a test for -Warc-abi as requested by Fariborz.Nico Weber2012-10-241-0/+5
| | | | llvm-svn: 166540
* Reduce temp file pollution in some test cases.Benjamin Kramer2012-08-031-1/+1
| | | | llvm-svn: 161237
* Revert rr159875, "Implement -Wpedantic and --no-pedantic to complement ↵NAKAMURA Takumi2012-07-071-8/+0
| | | | | | | | | | -Weverything." It broke several builds. I suspect FileCheck might match assertion failure, even if clang/test/Misc/warning-flags.c passed the test. > 0. Program arguments: bin/./clang -### -pedantic -Wpedantic clang/test/Driver/warning-options.cpp llvm-svn: 159886
* Implement -Wpedantic and --no-pedantic to complement -Weverything.Ted Kremenek2012-07-061-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch introduces some magic in tablegen to create a "Pedantic" diagnostic group which automagically includes all warnings that are extensions. This allows a user to suppress specific warnings traditionally under -pedantic used an ordinary warning flag. This also allows users to use #pragma to silence specific -pedantic warnings, or promote them to errors, within blocks of text (just like any other warning). -Wpedantic is NOT an alias for -pedantic. Instead, it provides another way to (a) activate -pedantic warnings and (b) disable them. Where they differ is that -pedantic changes the behavior of the preprocessor slightly, whereas -Wpedantic does not (it just turns on the warnings). The magic in the tablegen diagnostic emitter has to do with computing the minimal set of diagnostic groups and diagnostics that should go into -Wpedantic, as those diagnostics that already members of groups that themselves are (transitively) members of -Wpedantic do not need to be included in the Pedantic group directly. I went back and forth on whether or not to magically generate this group, and the invariant was that we always wanted extension warnings to be included in -Wpedantic "some how", but the bookkeeping would be very onerous to manage by hand. -no-pedantic (and --no-pedantic) is included for completeness, and matches many of the same kind of flags the compiler already supports. It does what it says: cancels out -pedantic. One discrepancy is that if one specifies --no-pedantic and -Weverything or -Wpedantic the pedantic warnings are still enabled (essentially the -W flags win). We can debate the correct behavior here. Along the way, this patch nukes some code in TextDiagnosticPrinter.cpp and CXStoredDiagnostic.cpp that determine whether to include the "-pedantic" flag in the warning output. This is no longer needed, as all extensions now have a -W flag. This patch also significantly reduces the number of warnings not under flags from 229 to 158 (all extension warnings). That's a 31% reduction. llvm-svn: 159875
* Revert r158423 corresponding to r158796, "test/Driver/warning-options.cpp: ↵NAKAMURA Takumi2012-06-211-4/+0
| | | | | | Mark as XFAIL:cygming. -pedantic is passed with gcc-as driver. PR12920" llvm-svn: 158915
* Revert "Provide a -no-pedantic to cancel out -pedantic." This needs to be ↵Ted Kremenek2012-06-201-5/+1
| | | | | | | | designed a bit further. We may wish to just have -Wno flags to silence warnings, and not have a -no-pedantic. llvm-svn: 158796
* test/Driver/warning-options.cpp: Mark as XFAIL:cygming. -pedantic is passed ↵NAKAMURA Takumi2012-06-131-0/+3
| | | | | | with gcc-as driver. PR12920 llvm-svn: 158423
* Provide a -no-pedantic to cancel out -pedantic.John McCall2012-06-131-0/+5
| | | | llvm-svn: 158416
* Tweek r156937 a bit so that the suggestions are correct.Chad Rosier2012-05-161-1/+1
| | | | llvm-svn: 156938
* Warn about -Wno-foo where foo is an unknown warning option. This is helpful Chad Rosier2012-05-161-0/+6
| | | | | | | | | | | for subtle misspellings such as -Wno-unused-command-line-arguments instead of -Wno-unused-command-line-argument. Also fix the diagnostic messages to properly handle -Wno- options. Previously, the positive version was always emitted (i.e., -Wfoo was emitted for -Wno-foo). rdar://11461500 llvm-svn: 156937
* Fix -Wlarge-by-value-copy option handling in the driver.Jean-Daniel Dupas2012-05-041-0/+4
CC1 supports only the joined format. llvm-svn: 156161
OpenPOWER on IntegriCloud