ef8225444452a1486bd721f3285301fe84643b00 |
|
21-Jul-2014 |
Stephen Hines <srhines@google.com> |
Update Clang for rebase to r212749. This also fixes a small issue with arm_neon.h not being generated always. Includes a cherry-pick of: r213450 - fixes mac-specific header issue r213126 - removes a default -Bsymbolic on Android Change-Id: I2a790a0f5d3b2aab11de596fc3a74e7cbc99081d
/external/clang/test/Misc/warning-flags.c
|
6bcf27bb9a4b5c3f79cb44c0e4654a6d7619ad89 |
|
29-May-2014 |
Stephen Hines <srhines@google.com> |
Update Clang for 3.5 rebase (r209713). Change-Id: I8c9133b0f8f776dc915f270b60f94962e771bc83
/external/clang/test/Misc/warning-flags.c
|
651f13cea278ec967336033dd032faef0e9fc2ec |
|
24-Apr-2014 |
Stephen Hines <srhines@google.com> |
Updated to Clang 3.5a. Change-Id: I8127eb568f674c2e72635b639a3295381fe8af82
/external/clang/test/Misc/warning-flags.c
|
1691dc4a7aa6835d28e6c2217505e778b606c733 |
|
12-Nov-2013 |
Sylvestre Ledru <sylvestre@debian.org> |
Remove trailing spaces git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194498 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
5f33c37f8fe476602d9a1cc968060f6113ec8aaa |
|
19-Sep-2013 |
Eli Friedman <eli.friedman@gmail.com> |
Add specific warning flags for GNU ext in Sema. This patch adds the following, more specific warning flags: gnu-anonymous-struct gnu-compound-literal-initializer gnu-empty-struct gnu-flexible-array-initializer gnu-flexible-array-union-member gnu-folding-constant redeclared-class-member gnu-redeclared-enum gnu-union-cast gnu-variable-sized-type-not-at-end Patch by Peter Lewis. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190972 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
d068607c136298bec0891d750389a55bac9f5c98 |
|
11-Sep-2013 |
Aaron Ballman <aaron@aaronballman.com> |
Tablegen now generates a StringSwitch for attributes containing enumeration arguments to map strings to the proper enumeration value. This makes error checking more consistent and reduces the amount of hand-written code required. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190545 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
bdf33419ec394e7f0dee638433ca06e3a0c7f4d4 |
|
04-Sep-2013 |
Peter Collingbourne <peter@pcc.me.uk> |
Add a diagnostic group for the "ignoring (static|inline) keyword on explicit template instantiation" warning. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@189893 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
34f3bcf7f2907f618f7a10d919bda47e53db60dd |
|
26-Jul-2013 |
Eli Friedman <eli.friedman@gmail.com> |
Partially revert r186903. It turns out that Plum Hall depends on us not emitting an error on integer literals which fit into long long, but fit into unsigned long long. So C99 conformance requires not conforming to C99. :) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@187172 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
6931b4da1f586d72d26773b57c55fb18da641566 |
|
26-Jul-2013 |
Eli Friedman <eli.friedman@gmail.com> |
Move friend warning into CXX11 warning group. Also, fix the wording to reflect this. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@187171 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
b3da613977f6b77dee2b382eeff5713168a4ca18 |
|
23-Jul-2013 |
Eli Friedman <eli.friedman@gmail.com> |
Integers which are too large should be an error. Switch some warnings over to errors which should never have been warnings in the first place. (Also, a minor fix to the preprocessor rules for integer literals while I'm here.) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@186903 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
104f96ba1a59026d6a71b4ef39ca127b56324e4a |
|
21-Jun-2013 |
Eli Friedman <eli.friedman@gmail.com> |
Delete dead code. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@184517 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
b07d448a625d7399d871079d55491c6b10316e6f |
|
25-May-2013 |
Nico Weber <nicolasweber@gmx.de> |
Warn on va_start() when called with a reference parameter. http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1905.pdf 18.7p3 explicitly calls this (and some other things) out as undefined. Also move 2 other existing warnings behind the new -Wvarargs flag. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@182694 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
c7f811638f8603fa373d2be724e8b1c8ba51ad75 |
|
18-Mar-2013 |
Richard Smith <richard-llvm@metafoo.co.uk> |
Add missing diagnostic for a nested-name-specifier on a free-standing type definition. Bump some related diagnostics from warning to extension in C++, since they're errors there. Add some missing checks for function specifiers on non-function declarations. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@177335 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
eed55e6061768c0faff62dda22c6edad9d286501 |
|
06-Mar-2013 |
Richard Smith <richard-llvm@metafoo.co.uk> |
After issuing a diagnostic for undefining or redefining a builtin macro, continue parsing the directive rather than silently discarding it. Allowing undef or redef of __TIME__ and __DATE__ is important to folks who want stable, reproducible builds. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@176540 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
de72f105938486da23b66a08d1e7a1eeeb0b9e2b |
|
25-Jan-2013 |
Nick Lewycky <nicholas@mxc.ca> |
Add missing InGroup for this warning. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173429 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
bcac91aafc226f6ea505b3117cc55f566ad48f2d |
|
24-Jan-2013 |
Nick Lewycky <nicholas@mxc.ca> |
Give warn_redecl_library_builtin a flag name: -Wincompatible-library-redeclaration. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173319 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
5b9268f26ac53a74d2c504279fe577d988d5615d |
|
20-Dec-2012 |
Richard Smith <richard-llvm@metafoo.co.uk> |
Fix code that attempted to produce a diagnostic with one DiagnosticEngine, then produce a note for that diagnostic either with a different DiagnosticEngine or after calling DiagnosticEngine::Reset(). That didn't make any sense, and did the wrong thing if the original diagnostic was suppressed. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@170636 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
8fcdea5cc450bee3d79f0749cf9b98cdbeae30e2 |
|
07-Nov-2012 |
Ted Kremenek <kremenek@apple.com> |
Add -Wmismatched-return-types flag for existing warning on conflicting return types. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@167518 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
eaa6b12031e55e7b039a8bf4b11e58df1f06cc5e |
|
07-Nov-2012 |
Ted Kremenek <kremenek@apple.com> |
Add -Wmismatched-parameter-types flag for existing warning on conflicting parameter types. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@167515 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
19ebeb70c4b79ebb2de7d87a415acd6b2dbbc15b |
|
02-Nov-2012 |
Eli Friedman <eli.friedman@gmail.com> |
Add missing diagnostic group to format string warning. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@167279 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
80a8eb76a0043271adcfee5cb1e643ce3927fcbf |
|
02-Nov-2012 |
Eli Friedman <eli.friedman@gmail.com> |
Tweak wording and add diagnostic groups to misc diagnostics. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@167274 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
e6c3458723d954d1ba9b73a2d93d2e2d67dd3510 |
|
31-Oct-2012 |
Rafael Espindola <rafael.espindola@gmail.com> |
Remove ccc-no-clang-cpp, which is also dead now. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@167062 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
d2d4d68a58898c5d13d66d45a5d9440fc1d790fe |
|
30-Oct-2012 |
Rafael Espindola <rafael.espindola@gmail.com> |
In the past "production" clang builds would not be used for c++, and we had the -ccc-clang-cxx and -ccc-no-clang-cxx options to force them on or off for testing. Clang c++ support is now production quality and these options are dead. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166986 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
986819acbc49bd819933993a19e376d32f31a77c |
|
25-Oct-2012 |
Douglas Gregor <dgregor@apple.com> |
Update warning-flag test git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166656 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
c6cd9afd15f0f83ee07844e592d2a698416f33ca |
|
25-Oct-2012 |
Bill Wendling <isanbard@gmail.com> |
Revert r166647 to rethink the patch... git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166655 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
a0b9ce03880b7dbab766ec80817eb17a20eba508 |
|
25-Oct-2012 |
Bill Wendling <isanbard@gmail.com> |
Add some support for diagnosing possibly mismatched constraint, type size and modifiers. (From an idea by Eric...) <rdar://problem/12284092> git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166647 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
bea52dac0c2e717990109cfd4812bc3422378b1a |
|
18-Oct-2012 |
Fariborz Jahanian <fjahanian@apple.com> |
Adds couple of missing warning flags so warnings can be turned off. // rdar://12501960 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166150 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
238b6a9d33bf87e23f86866885394cd453a06495 |
|
09-Oct-2012 |
Rafael Espindola <rafael.espindola@gmail.com> |
The clang driver has a fairly fancy support for executing gcc instead of clang itself. This dates back to clang's early days and while it looks like some of it is still used (for kext for example), other parts are probably dead. Remove the -ccc-clang-archs option and associated code. I don't think there is any remaining setup where clang doesn't support an architecture but it can expect an working gcc cross compiler to be available. A nice side effect is that tests no longer need to differentiate architectures that are included in production builds of clang and those that are not. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165545 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
9595c7e2533c836537dc300e75d059c29feb7094 |
|
04-Oct-2012 |
Eli Friedman <eli.friedman@gmail.com> |
Permanently end the whole "pragma got handled by the parser too early" mess by handling all pragmas which the parser touches uniformly. <rdar://problem/12248901>, etc. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165195 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
561e3c68864d11f39a07a6d1711ce08d2739a263 |
|
20-Sep-2012 |
Richard Smith <richard-llvm@metafoo.co.uk> |
PR13881: Add -Wzero-length-array for zero length array extension, and move it into -Wgnu. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164272 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
75379455fc88ca1f021e55ffe1cab3a9c2b2a37a |
|
13-Sep-2012 |
Douglas Gregor <dgregor@apple.com> |
Promote the warning about extra qualification on a declaration from a warning to an error. C++ bans it, and both GCC and EDG diagnose it as an error. Microsoft allows it, so we still warn in Microsoft mode. Fixes <rdar://problem/11135644>. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@163831 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
c828620a03b20835a376f6f456a72e44599f4f87 |
|
28-Aug-2012 |
Aaron Ballman <aaron@aaronballman.com> |
Splitting the duplicated decl spec extension warning into two: one is an ExtWarn and the other a vanilla warning. This addresses PR13705, where const char const * wouldn't warn unless -pedantic was specified under the right conditions. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162793 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
bb5185c0ca3de4e7d91d011a83c902d7b02a2a1a |
|
10-Aug-2012 |
Ted Kremenek <kremenek@apple.com> |
Fix horrible regression in control of warnings caused by introduction of -Wpedantic. While -Wpedantic was reasonable, -Wno-pedantic would turn off a bunch of warnings that are on by default. This counters the intention of this warning flag. To fix this, -Wpedantic now includes extentions that are not on by default. The remaining warnings will manifest anyway, and won't accidentally get turned off by -Wno-pedantic. Fixes <rdar://problem/12076105> git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@161695 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
04c3a25bd45ad8a6ad715783aee03df7284c5591 |
|
06-Aug-2012 |
Richard Smith <richard-llvm@metafoo.co.uk> |
PR13529: Don't crash if the driver sees an unused input file when running as 'clang-cpp'. For now, the test uses "REQUIRES: shell" to determine if the host system supports "ln -s", which it uses to create a 'clang-cpp' symlink. This is a bit hacky and should likely be directly supported by lit.cfg. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@161317 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
c0a43777ef48f6f07123b52d4e54b637d5e2d01c |
|
25-Jul-2012 |
Ted Kremenek <kremenek@apple.com> |
Promote warn_unknown_analyzer_checker to an error. Addresses <rdar://problem/10987863>. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160706 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
eab9d6f9065b042d39fbaf9842c9d8cc968dd6d0 |
|
23-Jul-2012 |
Richard Smith <richard-llvm@metafoo.co.uk> |
Add diagnostics for comma at end of enum and for extra semicolon at namespace scope to -Wc++11-extensions. Move extra semicolon after member function definition diagnostic out of -pedantic, since C++ allows a single semicolon there. Keep it in -Wextra-semi, though, since it's still questionable. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160618 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
916ea6522a200c4a3a4f5eecd29ee7bea315be5f |
|
13-Jul-2012 |
Tanya Lattner <tonic@nondot.org> |
Move a bunch of the attribute warnings under the IgnoreAttributes group. Cleaned up test case. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160190 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
002bb8f7ee500b20dc6862869d3abbba370949a7 |
|
10-Jul-2012 |
Tanya Lattner <tonic@nondot.org> |
TEMPORARY. I will fix this properly shortly. Silence buildbot so I can figure out the right flag to put this warning under. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159967 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
a437b84765d6b98d57f2789435ad641f1dd61474 |
|
07-Jul-2012 |
Ted Kremenek <kremenek@apple.com> |
Enhance 'diagtool list-warnings' to report number of diagnostics covered directly under -Wpedantic, and enhance warning-flags.c test to test that this set does not grow. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159893 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
e8cf7d143446c45568bb7c9a6fbd8f32ca6ae93e |
|
07-Jul-2012 |
Ted Kremenek <kremenek@apple.com> |
Re-apply r159875 with fixes. - Split pedantic driver flag test into separate test file, and XFAIL on cygwin,mingw32 - Fix bug in tablegen logic where a missing '{' caused errors to be included in -Wpedantic. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159892 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
3b4c53259603ba389373362f476648b2b1ab9eca |
|
07-Jul-2012 |
NAKAMURA Takumi <geek4civic@gmail.com> |
Revert rr159875, "Implement -Wpedantic and --no-pedantic to complement -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 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159886 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
25570a94ca6b706d19812b0f8df25a63ec3445c8 |
|
07-Jul-2012 |
Ted Kremenek <kremenek@apple.com> |
Implement -Wpedantic and --no-pedantic to complement -Weverything. 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159875 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
5fe9b296fa44a81c3e2528f102fa25b33ca2fa43 |
|
02-Jul-2012 |
Matt Beaumont-Gay <matthewbg@google.com> |
Add a warning flag for "'extern' variable has an initializer". git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159600 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
b6ebd4490235c9ea6016530d623c46d0b9ce565b |
|
28-Jun-2012 |
Richard Smith <richard-llvm@metafoo.co.uk> |
Add warning flag -Winvalid-pp-token for preprocessing-tokens which have undefined behaviour, and move the diagnostic for '' from an Error into an ExtWarn in this group. This is important for some users of the preprocessor, and is necessary for gcc compatibility. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159335 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
de376286f1276a694f465e797c5edb6222075137 |
|
26-Jun-2012 |
Fariborz Jahanian <fjahanian@apple.com> |
objc: adds diagnostic group to several old objc warnings. // rdar://11741435 pr13184 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159213 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
9f728cd37476c6588b06d241fa778d2df6e277da |
|
23-Jun-2012 |
Richard Smith <richard-llvm@metafoo.co.uk> |
Minor improvements to some C99 variadic-macro-related diagnostics. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159054 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
0764573a17b0796427f505c1cc7b53c33aeba25e |
|
22-Jun-2012 |
Jordan Rose <jordan_rose@apple.com> |
[diagtool] Write to llvm::outs() by default instead of llvm::errs() git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158954 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
d73ef135ba029db59c0b5649e6117845d9e39600 |
|
06-Jun-2012 |
Jordan Rose <jordan_rose@apple.com> |
Add pedantic warning -Wempty-translation-unit (C11 6.9p1). In standard C since C89, a 'translation-unit' is syntactically defined to have at least one "external-declaration", which is either a decl or a function definition. In Clang the latter gives us a declaration as well. The tricky bit about this warning is that our predefines can contain external declarations (__builtin_va_list and the 128-bit integer types). Therefore our AST parser now makes sure we have at least one declaration that doesn't come from the predefines buffer. Also, remove bogus warning about empty source files. This doesn't catch source files that only contain comments, and never fired anyway because of our predefines. PR12665 and <rdar://problem/9165548> git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158085 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
4b0e6f1da341510c1ad83eaf4c836f3134d0156a |
|
16-May-2012 |
Richard Trieu <rtrieu@google.com> |
Move the warnings for extra semi-colons under -Wextra-semi. Also, added a warning for an extra semi-colon after function definitions. Added logic so that a block of semi-colons on a line will only get one warning instead of a warning for each semi-colon. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156934 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
cab42cd24ff7335fa54fbec4520a5159a9326873 |
|
06-May-2012 |
Rafael Espindola <rafael.espindola@gmail.com> |
Put the availability warnings in a group. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156261 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
08c88db935adf005e42c1f513242eec960644b63 |
|
01-May-2012 |
Ted Kremenek <kremenek@apple.com> |
Place several uncovered warnings under warning flags, and tweak diagnostic output including the term "gc" (in lowercase). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@155892 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
b46d30f6c9409140348eefad1d2a60e3bae2e956 |
|
01-May-2012 |
Douglas Gregor <dgregor@apple.com> |
Move warn_cxx0x_right_shift_in_template_arg to CXX11Compat group, from Dmitri Gribenko! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@155872 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
9ace587fe52a955cf575d8662d8b86b3b084d44b |
|
16-Mar-2012 |
Ted Kremenek <kremenek@apple.com> |
Add warning flag for '#import is a language extension', -W#import-pedantic. Don't know if it is an anathema to include '#' in the warning name. I'm fine with changing it, but this was the most obvious name. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152886 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
7d613bf78325695b16aa82c139dcc1d598c0f7aa |
|
02-Mar-2012 |
Nico Weber <nicolasweber@gmx.de> |
Move int<->pointer conversion warnings behind -Wint-conversions. This is consistent with -Wbool-conversion. Let me know if you prefer a different flag name. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151934 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
16f1f717af196b1448258857b2e6dcfe144b39d0 |
|
29-Feb-2012 |
James Molloy <james.molloy@arm.com> |
Reapply r151638 and r151641. The bug that was caught by Apple's internal buildbots was valid and also showed another bug in my implementation. These are now fixed, with regression tests added to catch them both (not Darwin-specific). Original log: ==================== Revert r151638 because it causes assertion hit on PCH creation for Cocoa.h Original log: --------------------- Correctly track tags and enum members defined in the prototype of a function, and ensure they are properly scoped. This fixes code such as: enum e {x, y}; int f(enum {y, x} n) { return 0; } This finally fixes PR5464 and PR5477. --------------------- I also reverted r151641 which was enhancement on top of r151638. ==================== git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151712 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
32a9a7543f0296b0ae141899005f788bbe4262ca |
|
29-Feb-2012 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
Revert r151638 because it causes assertion hit on PCH creation for Cocoa.h Original log: --------------------- Correctly track tags and enum members defined in the prototype of a function, and ensure they are properly scoped. This fixes code such as: enum e {x, y}; int f(enum {y, x} n) { return 0; } This finally fixes PR5464 and PR5477. --------------------- I also reverted r151641 which was enhancement on top of r151638. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151667 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
fbcf0405b7da1c8606e4223b4f91835643ecd5b4 |
|
28-Feb-2012 |
James Molloy <james.molloy@arm.com> |
Correctly track tags and enum members defined in the prototype of a function, and ensure they are properly scoped. This fixes code such as: enum e {x, y}; int f(enum {y, x} n) { return 0; } This finally fixes PR5464 and PR5477. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151638 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
0f163e964289bc18e9bc1ec37a6a01018ba62640 |
|
15-Feb-2012 |
Richard Smith <richard-llvm@metafoo.co.uk> |
Support GCC's bug^Wextension allowing class array members to be initalized by a parenthesized braced-init-list in the base/member initialization list. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150625 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
684a8e471b4499c373f7660b319cfc167cb36a66 |
|
13-Feb-2012 |
Dmitri Gribenko <gribozavr@gmail.com> |
Remove unused diagnostics from include/clang/Basic/Diagnostic*.td files. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150409 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
244ee7b89a483fd3764637abdf95de2893b437d0 |
|
15-Jan-2012 |
Richard Smith <richard-llvm@metafoo.co.uk> |
Pedantic diagnostic correction: in C++, we have integral constant expressions, not integer constant expressions. In passing, fix the 'folding is an extension' diagnostic to not claim we're accepting the code, since that's not true in -pedantic-errors mode, and add this diagnostic to -Wgnu. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148209 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
cb7709c06027448c754dd03e2e521d82d04818bf |
|
05-Jan-2012 |
Richard Smith <richard-llvm@metafoo.co.uk> |
PR10828: Produce a warning when a no-arguments function is declared in block scope, when no other indication is provided that the user intended to declare a function rather than a variable. Remove some false positives from the existing 'parentheses disambiguated as a function' warning by suppressing it when the declaration is marked as 'typedef' or 'extern'. Add a new warning group -Wvexing-parse containing both of these warnings. The new warning is enabled by default; despite a number of false positives (and one bug) in clang's test-suite, I have only found genuine bugs with it when running it over a significant quantity of real C++ code. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147599 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
d7c56e1114bfe7d461786903bb720d2c6efc05a1 |
|
29-Dec-2011 |
Richard Smith <richard-llvm@metafoo.co.uk> |
Change the diagnostics which said 'accepted as an extension' to instead say 'is an extension'. The former is inappropriate and confusing when building with -Werror/-pedantic-errors. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147357 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
d7f02c6c051673ea1004b1830ad84e69ef712919 |
|
20-Dec-2011 |
Roman Divacky <rdivacky@freebsd.org> |
Let the KNR promotion warning be disabled. Patch by Dimitry Andric! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146982 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
80d39bf55f962278867f54696a033f1aa546d5a0 |
|
16-Dec-2011 |
Richard Smith <richard-llvm@metafoo.co.uk> |
Add a warning flag for ext_embedded_directive. gcc considers this undefined behaviour to be an error, so it's useful to be able to make it an error in clang too. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146755 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
122de3e131a6902d22c97471520ec9005cca6f03 |
|
06-Dec-2011 |
Hans Wennborg <hans@hanshq.net> |
Suggest typo corrections for implicit function declarations. A mistyped function call becomes an inmplicit function declaration in C. Suggest typo correction when one can be found. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145930 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
2cbe84dd36664b54bf056e4c69fe8d0fecd7346c |
|
29-Nov-2011 |
Ted Kremenek <kremenek@apple.com> |
Place "use @dynamic or provide a method implementation" warnings under a -W flag. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145418 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
0b69d132583217d4072421e3e83fa1f3942d854a |
|
15-Nov-2011 |
Fariborz Jahanian <fjahanian@apple.com> |
Remove one group'ed warning. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@144678 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
e2d4f4ed44a32f179c6d48cd1dba8346ab2129d9 |
|
13-Nov-2011 |
Rafael Espindola <rafael.espindola@gmail.com> |
Fix the signature of the getcontext builtin. Patch by Dimitry Andric. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@144505 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
cc1af78010031e7a629c5d0840834e7189768e04 |
|
11-Nov-2011 |
Ted Kremenek <kremenek@apple.com> |
Place 'argument unused during compilation' under a -W flag. Fixes <rdar://problem/10403653>. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@144365 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
b31dd8ff34903507cec1b057955f2a272ad2ee65 |
|
09-Nov-2011 |
Douglas Gregor <dgregor@apple.com> |
Put ext_offsetof_extended_field_designator under the warning flag -Wextended-offsetof, from Jeff Walden! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@144160 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
66d5ce11b9426f6a59f61a03cbd8dbf047cc9350 |
|
17-Oct-2011 |
Ted Kremenek <kremenek@apple.com> |
Move about 20 random diagnostics under -W flags. Patch by Ahmed Charles! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142284 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
d5951cbf4ef86c417609237e6815ac3ca638a09c |
|
14-Oct-2011 |
Joerg Sonnenberger <joerg@bec.de> |
Add flags for the remaining shift related warnings (-Wshift-count-negative, -Wshift-count-overflow). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141962 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
e1e7862586b6077a68dea05bcdbb67f63be3057d |
|
11-Oct-2011 |
Ted Kremenek <kremenek@apple.com> |
Place diagnostic group ext_typecheck_decl_incomplete_type under a -W flag. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141620 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
08f35a79f7506d6ac0349764aa4d6021a1e1c6e2 |
|
06-Oct-2011 |
Ivan Krasin <krasin@chromium.org> |
Add -Wlanguage-extension-token option for ext_token_used warning. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141268 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
06d92bf8a294412340b94e0f4c1b4b78b2651824 |
|
04-Oct-2011 |
Ted Kremenek <kremenek@apple.com> |
Place diagnostic warn_atomic_property_rule under a -W flag. Fixes <rdar://problem/10230631>. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141089 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
d649c57c264cd2e5114a445fcea96564bc80476f |
|
04-Oct-2011 |
Ted Kremenek <kremenek@apple.com> |
Place diagnostic warn_ownin_getter_rule under a -W flag. Fixes <rdar://problem/10230626>. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141088 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
3b8b00b1ec3d26d57157f9ed5004adad78e28535 |
|
04-Oct-2011 |
Ted Kremenek <kremenek@apple.com> |
Place diagnostic ext_predef_outside_function under a -W flag. Fixes <rdar://problem/10226192>. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141087 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
2a1a89e705c412a66b03e328f25e7e82d87f62aa |
|
04-Oct-2011 |
Ted Kremenek <kremenek@apple.com> |
Revert r141060. We should NEVER add new warnings that aren't guarded by flag. This reverts commit 5383d065241b18e84232bc50d81523f2058ea62b. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141077 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
55d78d2a41bed08f222a1eebf4feebec60ba1056 |
|
04-Oct-2011 |
Chad Rosier <mcrosier@apple.com> |
Update testcase for r141053+r141055. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141060 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
35f37cd6637f5cb4dbf18a542b501fd40522ba7b |
|
29-Sep-2011 |
Peter Collingbourne <peter@pcc.me.uk> |
Add a warning group for warnings about using C1X features as extensions git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140795 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
4f163424152259f5dafe6ccc696c97a80fc504fc |
|
23-Sep-2011 |
Matt Beaumont-Gay <matthewbg@google.com> |
Add DiagGroups to a couple of warnings. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140411 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
d0109823a08e19d6b27ee28ecfef1244611f09f9 |
|
22-Sep-2011 |
Ted Kremenek <kremenek@apple.com> |
Place diagnostic warn_ivar_use_hidden under the flag -Wshadow-ivar. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140329 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
8f4fb190852d3f86787c7e2c3dfc1b96143197ae |
|
04-Sep-2011 |
Richard Smith <richard-llvm@metafoo.co.uk> |
PR10458: Finesse behaviour of C++0x features when in pre-0x mode. Accept for-range and auto with an ExtWarn, and produce a -Wc++0x-compat warning in C++98 mode when auto is used as a storage class. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@139102 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
e082af17d4b425a49f7f8bccc2a99810f0072828 |
|
31-Aug-2011 |
Douglas Gregor <dgregor@apple.com> |
Switch the "no module found" default-fatal warning to a default-fatal error. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@138909 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
f84139a1331c63c998e8b7d54148c75ac0b48ccd |
|
31-Aug-2011 |
Eli Friedman <eli.friedman@gmail.com> |
Change err_pp_file_not_found back to an Error; when it's a Warning, we suppress it in system headers. And it is not a good idea to suppress it in system headers. (This was originally changed in r134996 to implement -MG.) Fixes <rdar://10041960>. And also brings down the number of warnings without a flag by one :) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@138842 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
6aa52ec6b969faabf3764baf79d89810b8249a7e |
|
27-Aug-2011 |
Douglas Gregor <dgregor@apple.com> |
Introduce support for a simple module import declaration, which loads the named module. The syntax itself is intentionally hideous and will be replaced at some later point with something more palatable. For now, we're focusing on the semantics: - Module imports are handled first by the preprocessor (to get macro definitions) and then the same tokens are also handled by the parser (to get declarations). If both happen (as in normal compilation), the second one is redundant, because we currently have no way to hide macros or declarations when loading a module. Chris gets credit for this mad-but-workable scheme. - The Preprocessor now holds on to a reference to a module loader, which is responsible for loading named modules. CompilerInstance is the only important module loader: it now knows how to create and wire up an AST reader on demand to actually perform the module load. - We search for modules in the include path, using the module name with the suffix ".pcm" (precompiled module) for the file name. This is a temporary hack; we hope to improve the situation in the future. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@138679 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
579a052f0f1734f5d6e2cc7daacafbcbad1e1ec1 |
|
17-Aug-2011 |
Chandler Carruth <chandlerc@gmail.com> |
Fix this test which had encoded the typo fixed in r137814. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137821 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
261f5b47323d5afd32da83e71284a6258791f72f |
|
12-Aug-2011 |
Ted Kremenek <kremenek@apple.com> |
Place err_cfstring_literal_not_string_constant and warn_cfstring_truncated under "-WCFString" flag. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137508 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
42cd50c4e76380c34866d246099da6d13b71fe9b |
|
12-Aug-2011 |
Ted Kremenek <kremenek@apple.com> |
Place diagnostic warn_stringcompare under the "-Wstring-compare" flag. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137507 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
9d9eef9c56aa14117a7f2c83beb2d674eef3d1fa |
|
12-Aug-2011 |
Ted Kremenek <kremenek@apple.com> |
Place warnings related to incorrect "main()" declaration under "-Wmain". git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137506 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
8ed72530ce7c3bd6bb1dceaf8108fbeddde80e4e |
|
12-Aug-2011 |
Ted Kremenek <kremenek@apple.com> |
Add -Wtypename-missing flag for diagnostic warn_typename_missing. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137505 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|
8425126b7b8b8ae9fac68ff3072f42a3bce7b487 |
|
12-Aug-2011 |
Ted Kremenek <kremenek@apple.com> |
Add diagtool-based test where we enforce that no additional warnings can be added to Clang without a -W flag. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137369 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Misc/warning-flags.c
|