Rafael Espindola
6cfa82bc5f
Fix the signature of the getcontext builtin. Patch by Dimitry Andric.
...
llvm-svn: 144505
2011-11-13 21:51:09 +00:00
Ted Kremenek
e8ffd1d48d
Place 'argument unused during compilation' under a -W flag. Fixes <rdar://problem/10403653>.
...
llvm-svn: 144365
2011-11-11 03:58:21 +00:00
Douglas Gregor
dbb9ea51fa
Put ext_offsetof_extended_field_designator under the warning flag
...
-Wextended-offsetof, from Jeff Walden!
llvm-svn: 144160
2011-11-09 03:01:42 +00:00
Ted Kremenek
a08713ce86
Move about 20 random diagnostics under -W flags. Patch by Ahmed Charles!
...
llvm-svn: 142284
2011-10-17 21:47:53 +00:00
Joerg Sonnenberger
0533869aed
Add flags for the remaining shift related warnings
...
(-Wshift-count-negative, -Wshift-count-overflow).
llvm-svn: 141962
2011-10-14 17:34:53 +00:00
Ted Kremenek
03eec60483
Place diagnostic group ext_typecheck_decl_incomplete_type under a -W flag.
...
llvm-svn: 141620
2011-10-11 01:02:24 +00:00
Ivan Krasin
31f7411bfc
Add -Wlanguage-extension-token option for ext_token_used warning.
...
llvm-svn: 141268
2011-10-06 02:46:34 +00:00
Ted Kremenek
f58dbb038c
Place diagnostic warn_atomic_property_rule under a -W flag. Fixes <rdar://problem/10230631>.
...
llvm-svn: 141089
2011-10-04 15:53:53 +00:00
Ted Kremenek
edadecdb36
Place diagnostic warn_ownin_getter_rule under a -W flag. Fixes <rdar://problem/10230626>.
...
llvm-svn: 141088
2011-10-04 15:50:00 +00:00
Ted Kremenek
472a3c1237
Place diagnostic ext_predef_outside_function under a -W flag. Fixes <rdar://problem/10226192>.
...
llvm-svn: 141087
2011-10-04 15:41:53 +00:00
Ted Kremenek
8c748fb7f8
Revert r141060. We should NEVER add new warnings that aren't guarded by flag.
...
This reverts commit 5383d065241b18e84232bc50d81523f2058ea62b.
llvm-svn: 141077
2011-10-04 14:48:38 +00:00
Chad Rosier
b047fed5cd
Update testcase for r141053+r141055.
...
llvm-svn: 141060
2011-10-04 04:42:31 +00:00
Peter Collingbourne
4ce4de8ead
Add a warning group for warnings about using C1X features as extensions
...
llvm-svn: 140795
2011-09-29 18:04:12 +00:00
Matt Beaumont-Gay
c9229a71ac
Add DiagGroups to a couple of warnings.
...
llvm-svn: 140411
2011-09-23 20:56:58 +00:00
Ted Kremenek
34a1d37ba3
Place diagnostic warn_ivar_use_hidden under the flag -Wshadow-ivar.
...
llvm-svn: 140329
2011-09-22 19:24:22 +00:00
Richard Smith
58c7433709
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.
...
llvm-svn: 139102
2011-09-04 19:54:14 +00:00
Douglas Gregor
dd8a2fe0be
Switch the "no module found" default-fatal warning to a default-fatal error.
...
llvm-svn: 138909
2011-08-31 21:52:21 +00:00
Eli Friedman
3781a36238
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 :)
llvm-svn: 138842
2011-08-30 23:07:51 +00:00
Douglas Gregor
081425343b
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.
llvm-svn: 138679
2011-08-26 23:56:07 +00:00
Chandler Carruth
29027b9352
Fix this test which had encoded the typo fixed in r137814.
...
llvm-svn: 137821
2011-08-17 08:56:14 +00:00
Ted Kremenek
26794fe096
Place err_cfstring_literal_not_string_constant and warn_cfstring_truncated under "-WCFString" flag.
...
llvm-svn: 137508
2011-08-12 20:46:54 +00:00
Ted Kremenek
95c3b73f3a
Place diagnostic warn_stringcompare under the "-Wstring-compare" flag.
...
llvm-svn: 137507
2011-08-12 20:46:52 +00:00
Ted Kremenek
d713fec9cc
Place warnings related to incorrect "main()" declaration under "-Wmain".
...
llvm-svn: 137506
2011-08-12 20:46:49 +00:00
Ted Kremenek
8facefab10
Add -Wtypename-missing flag for diagnostic warn_typename_missing.
...
llvm-svn: 137505
2011-08-12 20:46:45 +00:00
Ted Kremenek
228b5fefbb
Add diagtool-based test where we enforce that no additional warnings can be added to Clang without a -W flag.
...
llvm-svn: 137369
2011-08-11 22:06:55 +00:00