llvm-project/clang/test/Sema
Hans Wennborg 16250c7c18 -Wformat: better handling of qualifiers on pointer arguments
Warn about using pointers to const-qualified types as arguments to
scanf. Ignore the volatile qualifier when checking if types match.

llvm-svn: 161052
2012-07-31 16:37:47 +00:00
..
Inputs Add a test for r156092. 2012-05-03 23:38:51 +00:00
128bitint.c Add support for full-width 128-bit integer literals. 2012-05-03 22:49:43 +00:00
2007-10-01-BuildArrayRef.c Migrate 2007-10-01-BuildArrayRef.c from llvm/test/FrontendC. 2011-07-23 02:16:25 +00:00
2009-03-09-WeakDeclarations-1.c Migrate over 2009-04-22-UnknownSize.c, 2009-07-17-VoidParameter.c, 2011-07-26 00:47:54 +00:00
2009-04-22-UnknownSize.c Migrate over 2009-04-22-UnknownSize.c, 2009-07-17-VoidParameter.c, 2011-07-26 00:47:54 +00:00
2009-07-17-VoidParameter.c Migrate over 2009-04-22-UnknownSize.c, 2009-07-17-VoidParameter.c, 2011-07-26 00:47:54 +00:00
2010-05-31-palignr.c Migrate over 2009-04-22-UnknownSize.c, 2009-07-17-VoidParameter.c, 2011-07-26 00:47:54 +00:00
MicrosoftCompatibility.c Reapplying the changes from r158717 as they were rolled back to avoid merge conflicts from a separate problematic patch. 2012-06-19 22:09:27 +00:00
MicrosoftExtensions.c Reapplying the changes from r158717 as they were rolled back to avoid merge conflicts from a separate problematic patch. 2012-06-19 22:09:27 +00:00
PR2727.c
PR2728.c
PR2919-builtin-types-compat-strips-crv.c
PR2923.c
PR2963-enum-constant.c Pedantic diagnostic correction: in C++, we have integral constant expressions, 2012-01-15 03:51:30 +00:00
__try.c Treat the Microsoft/Borland keyword "__except" as a context-sensitive 2011-10-21 03:57:52 +00:00
address-constant.c
address_spaces.c Forbid address-space-qualified function types, per TR 18037 2011-07-27 20:30:05 +00:00
align-arm-apcs.c After further discussion it has been determined that alignof should report 2011-07-26 07:03:04 +00:00
align-x86-64.c Gcc pads the size of an array using the alignment of its elements. 2011-04-26 21:05:39 +00:00
align-x86.c Report the natural alignment of unsigned long long, not the preferred alignment. 2012-03-21 20:20:47 +00:00
alignas.c Add support for the C11 _Alignof keyword. 2012-06-30 21:33:57 +00:00
alloc_size.c fix PR13071 / rdar://problem/11634669 : 2012-06-18 16:39:04 +00:00
altivec-init.c supported: AltiVec vector initialization with a single literal according to PIM section 2.5.1 - after initialization all elements have the value specified by the literal 2011-03-27 09:32:40 +00:00
annotate.c Currently __builtin_annotation() only annotates an i32. 2012-04-28 17:39:16 +00:00
anonymous-struct-union-c11.c Don't warn about anonymous struct/union in C11. 2012-02-03 15:47:04 +00:00
anonymous-struct-union.c Fix a bug in semantic analysis involving anonymous structs and flexible arrays. 2012-02-07 05:00:47 +00:00
arg-duplicate.c
arg-scope-c99.c
arg-scope.c
arm-layout.c Fix tests to account for new warning "expected ';' at end of declaration list". Sorry, folks! 2011-03-07 22:57:45 +00:00
arm-neon-types.c Unpluralize -Wfoo-conversions warnings for consistency. 2012-03-15 05:09:31 +00:00
array-bounds-ptr-arith.c Teach IsTailPaddedMemberArray() (used by -Warray-bounds) that a FieldDecl may have a Typedef type, and not always a ConstantArrayType. 2012-05-09 05:35:08 +00:00
array-constraint.c Enhance the diagnostic for negative array sizes to include the 2011-01-04 04:44:35 +00:00
array-declared-as-incorrect-type.c
array-init.c Improve some of the conversion warnings to fire on conversion to bool. 2012-05-15 16:56:36 +00:00
array-size-64.c
array-size.c
asm.c Add support for AVX registers to clang inline asm. Add a small testcase 2011-12-02 02:12:16 +00:00
assign-null.c
assign.c
ast-print.c
atomic-ops.c Implement the missing pieces needed to support libstdc++4.7's <atomic>: 2012-04-13 00:45:38 +00:00
atomic-type.c Make sure to try instantiating a templated type which is used in an _Atomic 2012-02-11 18:03:45 +00:00
attr-alias.c Fix PR8720 by printing an error message with a substring that the gcc testsuite searches for. 2010-12-07 15:23:23 +00:00
attr-aligned.c Make sure that we recognize __attribute__((align)) as a synonym for 2012-05-11 23:01:43 +00:00
attr-args.c Fix line endings 2011-04-19 00:23:31 +00:00
attr-availability-ios.c with -Wdeprecated, include a note to its deprecated declaration 2012-04-23 20:30:52 +00:00
attr-availability-macosx.c with -Wdeprecated, include a note to its deprecated declaration 2012-04-23 20:30:52 +00:00
attr-availability.c Add __has_feature(attribute_availability_with_message). 2012-07-24 21:55:34 +00:00
attr-cleanup.c Pretty up the wrong-number-of-arguments-for-attribute diagnostic by 2011-03-02 12:15:05 +00:00
attr-coldhot.c Add support for __attribute__((hot)) and __attribute__((cold)). 2012-05-12 21:10:52 +00:00
attr-decl-after-definition.c Without this patch clang warns on 2012-07-15 01:33:40 +00:00
attr-declspec-ignored.c Remove some extraneous carriage returns from these files. One of the 2011-12-20 01:45:15 +00:00
attr-deprecated-message.c with -Wdeprecated, include a note to its deprecated declaration 2012-04-23 20:30:52 +00:00
attr-deprecated.c -Wdeprecated warning to include reference (as a note) 2012-05-27 16:59:48 +00:00
attr-format.c
attr-format_arg.c
attr-malloc.c This really seems like a boring set of fixes to our tests to make them more 2010-11-16 10:26:08 +00:00
attr-mode.c
attr-naked.c Don't complain about missing return statements for naked 2011-07-11 15:24:01 +00:00
attr-nodebug.c Emit debug info for dynamic initializers. Permit __attribute__((nodebug)) on 2012-07-24 01:40:49 +00:00
attr-noinline.c Pretty up the wrong-number-of-arguments-for-attribute diagnostic by 2011-03-02 12:15:05 +00:00
attr-noreturn.c Pretty up the wrong-number-of-arguments-for-attribute diagnostic by 2011-03-02 12:15:05 +00:00
attr-regparm.c Pretty up the wrong-number-of-arguments-for-attribute diagnostic by 2011-03-02 12:15:05 +00:00
attr-returns-twice.c Add returns_twice to functions that are known to return twice. This implements 2011-10-12 19:51:18 +00:00
attr-section.c Produce a warning for mismatched section attributes. Completest pr9356. 2012-05-13 02:42:42 +00:00
attr-sentinel.c PR11002: Make sure we emit sentinel warnings with a valid source location. (Ideally, we want to use the location returned by getLocForEndOfToken, but that is not always successful.) 2011-09-27 23:46:37 +00:00
attr-tls_model.c Add triple to test/Sema/attr-tls_model.c 2012-06-23 13:16:37 +00:00
attr-unavailable-message.c -Wdeprecated warning to include reference (as a note) 2012-05-27 16:59:48 +00:00
attr-unknown.c Rename -Wunknown-attributes to -Wattributes to match GCC. 2011-06-01 20:09:40 +00:00
attr-unused.c Pretty up the wrong-number-of-arguments-for-attribute diagnostic by 2011-03-02 12:15:05 +00:00
attr-used.c Change the wording of the bad-decl-for-attribute warning and error 2011-01-25 03:51:08 +00:00
attr-visibility.c Warn about visibility attributes in typedefs. 2012-05-10 03:01:34 +00:00
attr-weak.c Issue warning if weak_import attribute is added to an already 2011-06-22 22:08:50 +00:00
bitfield-layout.c
bitfield-promote.c
bitfield.c Silliness with commas, as reported at http://blog.regehr.org/archives/558 . As it turns out, this is my fault for not noticing this was an issue when I was looking at this a long time ago. :( 2011-07-13 02:05:57 +00:00
block-args.c Fix an error with the declaration of block parameters that depend 2011-03-22 23:15:50 +00:00
block-call.c Fix a block sema bug where result type of initializer 2011-02-11 18:46:17 +00:00
block-explicit-noreturn-type.c If block literal return type is not specified, return type of the block is 2011-12-03 17:47:53 +00:00
block-labels.c break testcase over multiple lines to make it easier to read. 2011-02-18 01:25:14 +00:00
block-literal.c
block-misc.c Modify how the -verify flag works. Currently, the verification string and 2011-12-15 00:38:15 +00:00
block-printf-attribute-1.c Add "multiple format attributes" support on block. 2012-01-25 00:55:11 +00:00
block-return-1.c
block-return-2.c
block-return-3.c
block-return.c fixes the diagnostic issued in // rdar://11069896 2012-03-21 20:28:39 +00:00
block-sentinel-attribute.c Minor refactoring of sentinel warning on blocks. Add a test for this warning. 2012-01-06 01:23:10 +00:00
block-storageclass.c
builtin-object-size.c
builtin-prefetch.c
builtin-stackaddress.c
builtin-unary-fp.c
builtin_objc_msgSend.c Test moved to its correct place. 2010-11-09 21:40:30 +00:00
builtins-arm.c __builtin_va_list is void* on ARM, not char*. 2011-05-09 02:19:37 +00:00
builtins-decl.c include/clang/Basic/BuiltinsX86.def: __builtin_ia32_crc32**() should be defined to take unsigned args and to return unsigned value. 2011-03-09 12:00:19 +00:00
builtins.c Add -Wstring-plus-int, which warns on "str" + int and int + "str". 2012-03-02 22:01:22 +00:00
c11-typedef-redef.c Extend test-case as requested by Eli 2012-01-11 22:43:46 +00:00
c89-2.c Add pedantic warning -Wempty-translation-unit (C11 6.9p1). 2012-06-06 17:25:21 +00:00
c89.c Implement C90 pedantic warning for duplicate declaration specifiers which are duplicated via a typedef. Patch by Tim Northover. 2012-04-05 22:47:34 +00:00
callingconv.c Pretty up the wrong-number-of-arguments-for-attribute diagnostic by 2011-03-02 12:15:05 +00:00
carbon.c Second try at fixing this test, this time without breaking 32-bit Darwin builders. 2011-06-06 22:25:48 +00:00
cast-incomplete.c
cast-to-union.c Fixed cast to union with anonymous bitfields. 2010-10-07 21:20:44 +00:00
cast.c Added scalar casts test. 2010-12-28 17:19:27 +00:00
check-increment.c
compare.c Turn the mixed-sign-comparison diagnostic into a runtime behavior 2012-05-01 01:53:49 +00:00
complex-imag.c Fix wrong-code bug: __imag on a scalar lvalue should produce a zero rvalue, 2012-02-18 20:53:32 +00:00
complex-init-list.c Implement the missing pieces of Evaluate for _Complex types. With that complete, remove some code from CGExprConstant which is no longer necessary. While I'm here, a couple minor tweaks to _Complex-in-C++. (Specifically, make _Complex types literal types, and don't warn for _Complex int.) 2012-01-10 04:58:17 +00:00
complex-int.c Improved complex constants evaluation. 2010-12-11 16:05:48 +00:00
complex-promotion.c
compound-literal.c Change the diagnostics which said 'accepted as an extension' to instead say 2011-12-29 21:57:33 +00:00
conditional-expr.c Fix a typo (the the => the) 2012-07-23 08:59:39 +00:00
conditional.c
const-eval-64.c Make constant evaluation for pointer comparisons work correctly for some uncommon cases. <rdar://problem/10962435>. 2012-04-16 04:30:08 +00:00
const-eval.c Don't treat overflow in floating-point conversions as a hard error in constant evaluation. <rdar://problem/11874571>. 2012-07-17 21:03:05 +00:00
const-ptr-int-ptr-cast.c
constant-builtins-2.c
constant-builtins.c
constant-conversion.c Change the check for constant-conversion with width-1 bitfields so it doesn't suppress quite as many cases. Based off a testcase in the gcc testsuite. 2012-02-02 00:40:20 +00:00
constructor-attribute.c Pretty up the wrong-number-of-arguments-for-attribute diagnostic by 2011-03-02 12:15:05 +00:00
conversion-64-32.c Warn on 64-to-32 for source value of x bits where 64 >= x > 32. 2012-04-12 22:40:54 +00:00
conversion.c Only emit implicit constant conversion truncation warnings in reachable code. Apparently this is what GCC does, and some code depends on this. Fixes <rdar://problem/10321089>. 2011-10-22 02:37:33 +00:00
crash-invalid-array.c Bring over a test from llvm/test/FrontendC that is for Sema and not CodeGen. 2011-07-22 07:26:22 +00:00
darwin-align-cast.c
decl-in-prototype.c Reapply r151638 and r151641. 2012-02-29 10:24:19 +00:00
decl-invalid.c
decl-type-merging.c
declspec.c
default.c Generalize -Wempty-body: warn when statement body is empty (closes: PR11329) 2012-02-14 22:14:32 +00:00
default1.c
deref.c
designated-initializers.c This patch fixes multiple issues in clang's designated init builder and 2010-10-08 20:44:28 +00:00
dllimport-dllexport.c Fix an old (2009) FIXME: 2012-05-10 02:50:16 +00:00
enum-packed.c
enum.c Fix a couple of nasty bugs involving negative enum constants. <rdar://problem/10760113>. 2012-02-07 04:34:38 +00:00
expr-address-of.c Add a new expression classification, CL_AddressableVoid 2011-04-19 18:51:51 +00:00
expr-comma-c99.c Rename test/Sema/expr-comma-c89.c to expr-comma-c99.c. Spotted by 2011-02-25 12:37:11 +00:00
expr-comma.c
exprs.c Further improvement to wording of overload resolution diagnostics, and including 2012-05-15 06:21:54 +00:00
ext_vector_casts.c Fix Sema::CheckVectorOperands so that it doesn't try to insert a cast expression into the LHS of a compound assignment. Fixes compound assignment of various "compatible" vector types, including NEON-vector and gcc-vector types. 2011-06-23 18:10:35 +00:00
ext_vector_comparisons.c
ext_vector_components.c
extern-redecl.c When redeclaring a local extern in the same scope, make sure that we 2011-06-29 21:22:02 +00:00
flexible-array-init.c Refactor and fix checking for initialization of flexible array members. The old version had the checks scattered across the code, missed some checks, and had a couple nasty bugs in existing checks. 2011-08-23 22:24:57 +00:00
floating-point-compare.c
fn-ptr-as-fn-prototype.c Reapply r151638 and r151641. 2012-02-29 10:24:19 +00:00
for.c
format-string-percentm.c
format-strings-c90.c -Wformat-non-iso: warn about positional arguments (pr12017) 2012-03-09 10:10:54 +00:00
format-strings-enum-fixed-type.cpp Teach printf/scanf about enums with fixed underlying types. 2012-06-04 22:48:57 +00:00
format-strings-enum.c Teach printf/scanf about enums with fixed underlying types. 2012-06-04 22:48:57 +00:00
format-strings-fixit-ssize_t.c Break out ssize_t test from Sema/format-strings-fixit.c 2011-10-19 07:55:50 +00:00
format-strings-fixit.c Make -Wformat walk the typedef chain when looking for size_t, etc. 2012-07-27 19:17:46 +00:00
format-strings-int-typedefs.c Tighten format string diagnostic and make it a bit clearer (and a bit closer to GCC's). 2012-01-20 21:52:58 +00:00
format-strings-no-fixit.c Fix for PR9751 to change the behavior of -Wformat warnings. If the format 2011-10-28 00:41:25 +00:00
format-strings-non-iso.c -Wformat-non-iso: warn about positional arguments (pr12017) 2012-03-09 10:10:54 +00:00
format-strings-scanf.c -Wformat: better handling of qualifiers on pointer arguments 2012-07-31 16:37:47 +00:00
format-strings-size_t.c Tighten format string diagnostic and make it a bit clearer (and a bit closer to GCC's). 2012-01-20 21:52:58 +00:00
format-strings.c -Wformat: better handling of qualifiers on pointer arguments 2012-07-31 16:37:47 +00:00
fp16-sema.c Missed tests for half FP support 2011-10-14 23:32:50 +00:00
fpack-struct.c Unify Options.td and CC1Options.td, in a first step towards unifying the serialization logic in Frontend and Driver. 2012-05-01 14:57:16 +00:00
freemain.c
function-ptr.c
function-redecl.c When emitting a "too many arguments to function call..." error, also include a note with a location for the function prototype. 2011-04-04 17:22:27 +00:00
function.c Make sure to consider non-DeclContext scopes properly when finding 2012-01-13 23:06:53 +00:00
generic-selection.c C1X: implement generic selections 2011-04-15 00:35:48 +00:00
gnu89.c Warn about non-int main() results in GNU C mode instead of erroring. 2012-02-14 19:50:52 +00:00
heinous-extensions-off.c
heinous-extensions-on.c
i-c-e.c In C++11 mode, when an integral constant expression is desired and we have a 2012-02-04 09:53:13 +00:00
illegal-types.c Fixed test case asserts due to checkin of r130710. 2011-05-02 20:39:21 +00:00
implicit-builtin-decl.c Fix fmin*/fmax* library builtin signatures. 2012-05-08 18:29:52 +00:00
implicit-builtin-freestanding.c
implicit-builtin-redecl.c Modify how the -verify flag works. Currently, the verification string and 2011-12-15 00:38:15 +00:00
implicit-cast.c
implicit-decl.c Convert SemaDecl.cpp to pass callback objects to CorrectTypo. 2012-01-18 21:41:41 +00:00
implicit-def.c
implicit-int.c Change __extension__ to disable only diagnostics controlled by -pedantic. 2011-10-12 19:55:31 +00:00
incompatible-sign.c
incomplete-call.c Emit a -Wnull-dereference warning for "*null" not just "*null = something". Addresses rdar://9269271. 2011-04-26 17:41:22 +00:00
incomplete-decl.c Factor out (some of) the checking for invalid forms of pointer 2011-06-27 08:02:19 +00:00
indirect-goto.c
init-struct-qualified.c
init-vector.c
init.c Switching to using dyn_cast_or_null, and fixing line endings in the test case. 2012-02-09 22:16:56 +00:00
initialize-noreturn.c c: assignment/init of a function pointer whose function(s) 2011-10-05 00:05:34 +00:00
inline-redef.c Make __gnu_inline__ functions in gnu99 mode work the same way as inline functions in gnu89 mode in terms of redefinitions. 2011-06-13 23:56:42 +00:00
inline.c Don't warn for -Wstatic-in-inline if the used function is also inline. 2012-06-21 05:54:50 +00:00
int-arith-convert.c
invalid-decl.c
invalid-init-diag.c
invalid-struct-init.c Fix parsing of type-specifier-seq's. Types are syntactically allowed to be 2012-03-12 07:56:15 +00:00
knr-def-call.c Improve some of the conversion warnings to fire on conversion to bool. 2012-05-15 16:56:36 +00:00
knr-variadic-def.c
many-logical-ops.c [Sema] Introduce a data recursive evaluator specific to binary operators. 2012-03-15 18:07:16 +00:00
many-parameters.c Use a sidetable in ASTContext for ParmVarDecls whose index exceeds the 8 bits reserved for that value in VarDecl. Fixes PR 10538. 2011-10-06 05:00:56 +00:00
member-reference.c
memset-invalid.c Convert assertion in memset checking to a runtime check (because real code may provide a deviant definition of memset). 2011-04-28 01:38:02 +00:00
merge-decls.c
missing-field-initializers.c Fix tests to account for new warning "expected ';' at end of declaration list". Sorry, folks! 2011-03-07 22:57:45 +00:00
ms_class_layout.cpp Test verified. 2012-05-01 19:57:05 +00:00
ms_wide_predefined_expr.cpp Give L__FUNCTION__ the right type in templates. PR13206. 2012-06-25 22:34:48 +00:00
neon-vector-types.c Pretty up the wrong-number-of-arguments-for-attribute diagnostic by 2011-03-02 12:15:05 +00:00
nested-redef.c
no-format-y2k-turnsoff-format.c Tighten format string diagnostic and make it a bit clearer (and a bit closer to GCC's). 2012-01-20 21:52:58 +00:00
nonnull.c Handle nonnull attribute with optional argument number on 2011-06-27 21:12:03 +00:00
offsetof.c Perform an lvalue-to-rvalue conversion on an array index in a __builtin_offsetof expression. 2011-10-17 05:48:07 +00:00
overloadable-complex.c Modify how the -verify flag works. Currently, the verification string and 2011-12-15 00:38:15 +00:00
overloadable.c Modify how the -verify flag works. Currently, the verification string and 2011-12-15 00:38:15 +00:00
overloaded-func-transparent-union.c Support for Transparent unions used as overloadable 2011-03-23 19:50:54 +00:00
parentheses.c Silence ?: precendence warning when parenthesis are present. 2011-09-12 12:07:30 +00:00
parentheses.cpp Silence ?: precendence warning when parenthesis are present. 2011-09-12 12:07:30 +00:00
pointer-addition.c Cleanup a fixme by using a specific diagnostic for subscripting 2011-06-27 16:32:27 +00:00
pointer-conversion.c
pointer-subtract-compat.c Factor out (some of) the checking for invalid forms of pointer 2011-06-27 08:02:19 +00:00
pragma-align-mac68k-unsupported.c
pragma-align-mac68k.c
pragma-align-packed.c
pragma-arc-cf-code-audited.c Add explicit attributes to mark functions as having had their 2011-09-30 05:12:12 +00:00
pragma-ms_struct.c Fixes a bug in calculation of field offsets of ms_struct 2011-12-12 21:16:36 +00:00
pragma-pack-2.c Remove the part of test/Sema/pragma-pack-2.c that has irregular "#pragma pack"s. 2012-03-10 03:20:52 +00:00
pragma-pack-3.c
pragma-pack-4.c
pragma-pack-5.c Fix bitfield handling for record layout with #pragma pack. <rdar://problem/10494810> and PR9560. 2011-12-02 02:38:48 +00:00
pragma-pack-and-options-align.c
pragma-pack-apple.c Add an option to emulate the strange Apple gcc behavior of #pragma pack. 2011-11-02 01:53:16 +00:00
pragma-pack.c
pragma-unused.c Allow #pragma unused to be used on global variables like gcc. Fixes rdar://8793832. 2011-01-27 18:16:48 +00:00
predef.c
predefined-function.c
private-extern.c Diagnose if extern local variable is followed by non-extern and vice-versa. 2011-01-31 07:04:46 +00:00
rdr6094103-unordered-compare-promote.c Although we currently have explicit lvalue-to-rvalue conversions, they're 2010-12-04 03:47:34 +00:00
recover-goto.c
redefinition.c
return-noreturn.c Improve the diagnostic text for -Wmissing-noreturn to include the name 2011-08-31 09:01:53 +00:00
return-silent.c
return.c Change the binary operator data recursive evaluator to not stop at the first 2012-03-21 23:30:30 +00:00
scope-check.c fix rdar://9024687, a crash on invalid that we used to silently ignore. 2011-02-18 21:16:39 +00:00
self-comparison.c
sentinel-attribute.c Pretty up the wrong-number-of-arguments-for-attribute diagnostic by 2011-03-02 12:15:05 +00:00
shift.c Sema: show shift result in hexadecimal 2011-06-15 00:54:52 +00:00
short-enums.c Implement -fshort-enums (rdar://8490496). 2010-10-08 00:25:19 +00:00
sign-conversion.c Two more test cases which have been long uncommitted. 2011-06-24 23:30:52 +00:00
statements.c Generalize -Wempty-body: warn when statement body is empty (closes: PR11329) 2012-02-14 22:14:32 +00:00
static-array.c Add sema checks for calls to functions taking static array parameters 2011-10-16 21:17:32 +00:00
static-assert.c C1X: implement static asserts 2011-04-15 00:35:57 +00:00
static-init.c Attempt to fix test on 32-bit hosts. 2011-12-21 01:57:31 +00:00
stdcall-fastcall.c Start fixing up clang tests to work on the clang-native-arm-cortex-a9 builder. 2011-06-06 21:23:05 +00:00
struct-cast.c
struct-compat.c
struct-decl.c when compiling in a GNU mode (e.g. gnu99) treat VLAs with a size that can be folded to a constant 2011-06-14 06:38:10 +00:00
struct-packed-align.c Fix PR9253, allowing attribute(aligned) to reduce the alignment of 2011-02-19 22:55:41 +00:00
surpress-deprecated.c Fix tests that weren't actually verifying anything. 2012-04-15 22:09:44 +00:00
switch.c Add new -Wunique-enum which will warn on enums which all elements have the 2012-05-30 01:01:11 +00:00
tentative-decls.c
text-diag.c
thread-specifier.c Test the '__thread' before 'static' warning. 2012-06-04 10:19:34 +00:00
transparent-union-pointer.c
transparent-union.c Merge transparent union types using member's unqualified type 2010-12-02 21:00:06 +00:00
type-spec-struct-union.c
typecheck-binop.c Factor out (some of) the checking for invalid forms of pointer 2011-06-27 08:02:19 +00:00
typedef-prototype.c
typedef-redef.c
typedef-retain.c Change the canonical representation of array types to store qualifiers on the 2011-01-19 10:06:00 +00:00
typedef-variable-type.c when compiling in a GNU mode (e.g. gnu99) treat VLAs with a size that can be folded to a constant 2011-06-14 06:38:10 +00:00
typeof-use-deprecated.c Issue deprecated warning when typeof uses typedef 2010-10-06 17:00:02 +00:00
types.c For PR11916: Add support for g++'s __int128 keyword. Unlike __int128_t, this is 2012-04-04 06:24:32 +00:00
ucn-cstring.c Improve diagnostics for UCNs referring to control characters and members of the 2012-03-09 22:27:51 +00:00
uninit-variables-vectors.c Now that the analyzer is distinguishing between uninitialized uses that 2011-04-08 06:33:38 +00:00
uninit-variables.c When a && or || appears as the condition of a ?:, perform appropriate 2012-07-24 21:02:14 +00:00
unnamed-bitfield-init.c
unused-expr-system-header.c Suppress -Wunused-value within macros from system headers. 2012-01-06 22:43:58 +00:00
unused-expr.c Add a warning to diagnose statements in C++ like "*(volatile int*)x;". Conceptually, this is part of -Wunused-value, but I added a separate flag -Wunused-volatile-lvalue so it doesn't get turned off by accident with -Wno-unused-value. I also made a few minor improvements to existing unused value warnings in the process. <rdar://problem/11516811>. 2012-05-24 00:47:05 +00:00
usual-float.c
va_arg_x86_32.c
va_arg_x86_64.c
var-redecl.c
varargs-x86-64.c
varargs.c Add diagnostic for constructs like "va_arg(l, float)" which have undefined behavior. PR10201. 2011-07-11 21:45:59 +00:00
variadic-block.c
variadic-incomplete-arg-type.c Change diagnostic test for my last patch. 2012-03-02 17:05:03 +00:00
vector-assign.c Unpluralize -Wfoo-conversions warnings for consistency. 2012-03-15 05:09:31 +00:00
vector-cast.c Unpluralize -Wfoo-conversions warnings for consistency. 2012-03-15 05:09:31 +00:00
vector-init.c When list-initializing a vector, try to copy-initialize from vectors instead 2010-10-30 00:11:39 +00:00
vector-ops.c Use raw_ostream in TypePrinter and eliminate uses of temporary std::strings. 2012-05-05 04:20:37 +00:00
vfprintf-invalid-redecl.c
vfprintf-valid-redecl.c
vla-2.c Make clang's AST model sizeof and typeof with potentially-evaluated operands correctly, similar to what we already do with typeid. 2012-01-21 01:01:51 +00:00
vla.c Fix a minor regression from my potentially-evaluated expression changes. 2012-02-06 23:29:57 +00:00
void_arg.c
warn-cast-align.c Remove a non-gcc-compatible extension that would apply attributes on declarations without a declarator to structs. Add a warning for ignored attributes. Patch by Michael Han. 2011-12-17 00:36:09 +00:00
warn-char-subscripts.c
warn-documentation-almost-trailing.c Enable comment parsing and semantic analysis to emit diagnostics. A few 2012-07-11 21:38:39 +00:00
warn-documentation-fixits.c Enable comment parsing and semantic analysis to emit diagnostics. A few 2012-07-11 21:38:39 +00:00
warn-documentation.cpp Comment parser: don't crash on a completely empty \param followed by a block 2012-07-30 18:05:28 +00:00
warn-documentation.m Turn -Wobjc-root-class on by default. <rdar://problem/11203649>. 2012-07-25 07:26:32 +00:00
warn-freestanding-complex.c
warn-gnu-designators.c Fix tests to account for new warning "expected ';' at end of declaration list". Sorry, folks! 2011-03-07 22:57:45 +00:00
warn-missing-braces.c
warn-missing-prototypes.c
warn-outof-range-assign-enum.c Issue warning when assigning out-of-range integer values to enums. 2012-07-17 18:00:08 +00:00
warn-self-assign-field.mm Turn -Wobjc-root-class on by default. <rdar://problem/11203649>. 2012-07-25 07:26:32 +00:00
warn-shadow.c Fix the diagnostic when we are shadowing an external variable and there exists a locally scoped extern with the same name. 2011-01-31 07:04:50 +00:00
warn-sizeof-arrayarg.c Warn on "void f(int a[10]) { sizeof(a); }" 2011-06-15 02:47:03 +00:00
warn-strlcpycat-size.c Rename -Wstrl-incorrect-size to -Wstrlcpy-strlcat-size. This warning really is just specific to strlcpy and strlcat. 2011-08-19 14:35:32 +00:00
warn-strncat-size.c Do not show macro expansion in strncat warnings, which can be defined as 2012-02-03 01:27:37 +00:00
warn-unreachable.c Reword/rename -Wswitch-unreachable-default. 2012-01-24 05:34:08 +00:00
warn-unused-function.c We regard a function as 'unused' from the codegen perspective, so our warnings diverge from 2011-04-19 19:51:10 +00:00
warn-unused-label.c Step #2/N of __label__ support: keep pushing LabelDecl forward, 2011-02-17 20:34:02 +00:00
warn-unused-parameters.c Undo patch for // rdar://10735698 2012-03-06 18:41:35 +00:00
warn-unused-value.c Don't warn about unused values in ternary ?: expressions unless both the LHS and RHS are "unused" (side-effect free). 2011-03-01 20:34:48 +00:00
warn-unused-variables.c
warn-write-strings.c There were some frustrating problems with the implementation of 2011-04-23 06:30:43 +00:00
wchar.c
weak-import-on-enum.c Do not warn when weak-import attribute is applied to enum 2011-10-26 23:59:12 +00:00
x86-attr-force-align-arg-pointer.c Change the wording of the bad-decl-for-attribute warning and error 2011-01-25 03:51:08 +00:00
x86-builtin-palignr.c Fix vector macros to correctly check argument types. <rdar://problem/10261670> 2011-11-05 06:08:06 +00:00