llvm-project/clang/test/Sema
Chris Lattner 3be167f606 diagnose errors when a builtin that require constant arguments don't have them.
For example, on:

#include <emmintrin.h>
int foo(int N) {
 __m128i white2;
 white2 = _mm_slli_si128(white2, N);
 return 0;
} 

we used to get:
fatal error: error in backend: Cannot yet select: intrinsic %llvm.x86.sse2.psll.dq

now we get:
/Users/sabre/t.c:4:11: error: argument to '__builtin_ia32_pslldqi128' must be a
      constant integer
 white2 = _mm_slli_si128(white2, N);
          ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /Users/sabre/t.c:1:
/Volumes/Projects/cvs/llvm/Debug+Asserts/lib/clang/2.9/include/emmintrin.h:781:13: note: instantiated from:
  ((__m128i)__builtin_ia32_pslldqi128((__m128i)(VEC), (IMM)*8))
            ^                                         ~~~~~~~
1 error generated.

llvm-svn: 115374
2010-10-01 23:23:24 +00:00
..
Inputs Make this test not rely on the system <limits.h>. Hopefully fixes the 2010-02-11 22:45:16 +00:00
128bitint.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
MicrosoftExtensions.c Microsoft's flexible array rules relaxation: 2010-09-15 00:14:08 +00:00
PR2727.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
PR2728.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
PR2919-builtin-types-compat-strips-crv.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
PR2923.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
PR2963-enum-constant.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
address-constant.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
address_spaces.c make clang print types as "const int *" instead of "int const*", 2010-09-05 00:04:01 +00:00
align-arm-apcs.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
align-x86-64.c Correctly align large arrays in x86-64. This fixes PR5599. 2010-06-04 23:15:27 +00:00
align-x86.c When a reference to a field of a struct/union/class is passed to the 2010-02-23 04:52:00 +00:00
altivec-init.c Introduce implicit conversions between AltiVec vectors and GCC 2010-08-06 10:14:59 +00:00
annotate.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
anonymous-struct-union.c Improve diagnostics like "initializing <type> from an expression of 2010-04-09 17:53:29 +00:00
arg-duplicate.c Add 'previous declaration is here' note for param redefinition 2010-02-22 00:40:25 +00:00
arg-scope-c99.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
arg-scope.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
arm-layout.c ARM/APCS: Don't respect bit-field types when laying out structures. 2010-04-22 16:14:54 +00:00
array-constraint.c make clang print types as "const int *" instead of "int const*", 2010-09-05 00:04:01 +00:00
array-declared-as-incorrect-type.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
array-init.c PR3344: Downgrade "too many braces around scalar initializer" to a warning. 2010-08-14 03:14:53 +00:00
array-size-64.c Emit an error if an array is too large. We're slightly more strict 2010-08-18 00:39:00 +00:00
array-size.c Emit an error if an array is too large. We're slightly more strict 2010-08-18 00:39:00 +00:00
asm.c make clang print types as "const int *" instead of "int const*", 2010-09-05 00:04:01 +00:00
assign-null.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
assign.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
ast-print.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
attr-aligned.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
attr-cleanup.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
attr-decl-after-definition.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
attr-deprecated.c Add support for differentiating between attributes ignored when handled and 2010-07-08 09:42:26 +00:00
attr-format.c Whenever we complain about a failed initialization of a function or 2010-04-22 00:20:18 +00:00
attr-format_arg.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
attr-malloc.c Update tests to use %clang instead of 'clang', and forcibly disable use of ' 2009-12-15 22:01:24 +00:00
attr-mode.c Correctly treat 64 bit integers specified via the mode attribute as the 'long' 2010-01-26 06:39:24 +00:00
attr-naked.c Add support for attribute((naked)), patch by Zoxc on cfe-commits! 2010-09-29 18:20:25 +00:00
attr-nodebug.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
attr-noinline.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
attr-noreturn.c Get rid of the "functions declared 'noreturn' should have a 'void' result type" warning. 2010-09-03 00:25:02 +00:00
attr-regparm.c Merge the "regparm" attribute from a previous declaration of a 2010-06-18 21:30:25 +00:00
attr-section.c rename llvm::llvm_report_error -> llvm::report_fatal_error 2010-04-07 22:58:06 +00:00
attr-sentinel.c After some discussion, conservatively extend our sentinel check to discard 2010-05-06 23:53:00 +00:00
attr-unknown.c Add support for differentiating between attributes ignored when handled and 2010-07-08 09:42:26 +00:00
attr-unused.c Support __attribute__((unused)) on types. This suddenly started firing 2010-03-31 02:47:45 +00:00
attr-used.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
attr-weak.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
bitfield-layout.c Sema: Fix a subtle i64 -> i32 truncation which broke layout of large structures 2010-06-29 18:34:35 +00:00
bitfield-promote-int-16bit.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
bitfield-promote.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
bitfield.c Improve the bit-field too wide error message. 2010-04-15 18:47:32 +00:00
block-args.c Add 'previous declaration is here' note for param redefinition 2010-02-22 00:40:25 +00:00
block-as-object.m Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
block-call.c make clang print types as "const int *" instead of "int const*", 2010-09-05 00:04:01 +00:00
block-labels.c add a bunch of missing prototypes to tests 2010-01-09 20:43:19 +00:00
block-literal.c Implement goto inside of blocks. 2010-01-19 23:08:01 +00:00
block-misc.c Allow __func__ and __FUNCTION__ and __PRETTY_FUNCTION__ inside blocks. 2010-07-23 21:53:24 +00:00
block-printf-attribute-1.c Refactor the logic for printf argument type-checking into analyze_printf::ArgTypeResult. 2010-02-16 01:46:59 +00:00
block-return-1.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
block-return-2.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
block-return-3.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
block-return.c make clang print types as "const int *" instead of "int const*", 2010-09-05 00:04:01 +00:00
block-sentinel-attribute.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
block-storageclass.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
builtin-object-size.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
builtin-prefetch.c Remove the argument number from the constant integer diagnostic. 2010-04-19 18:23:02 +00:00
builtin-stackaddress.c Remove the argument number from the constant integer diagnostic. 2010-04-19 18:23:02 +00:00
builtin-unary-fp.c Add Sema support for __builtin_fpclassify by extending the existing check for __builtin_isinf and friends. Part of PR6083. 2010-02-15 22:42:31 +00:00
builtins-arm.c Builtins/ARM: __clear_cache doesn't seem to have a consistent prototype, declare 2010-07-16 00:31:23 +00:00
builtins.c Have Sema check for validity of CGString literal 2010-09-07 19:38:13 +00:00
c89-2.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
c89.c Implement support for variable length arrays in C++. VLAs are limited 2010-05-22 16:17:30 +00:00
callingconv.c When we encounter a function-specific attribute in a declaration specifier, 2010-02-24 02:27:18 +00:00
carbon.c clang -cc1: Rename -mcpu to -target-cpu to match other target options and not alias driver/backend option. 2009-12-18 06:30:12 +00:00
cast-incomplete.c Check for casts to an incomplete type in C. Improves diagnostics for cast to 2010-07-17 20:43:49 +00:00
cast-to-union.c Improve diagnostics like "initializing <type> from an expression of 2010-04-09 17:53:29 +00:00
cast.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
check-increment.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
compare.c When warning about comparing an unsigned int to being >= 0, don't issue a warning if the zero value was an 2010-09-23 21:43:44 +00:00
complex-int.c Re-improve recovery when the condition of a switch statement does not 2010-06-29 23:25:20 +00:00
complex-promotion.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
compound-literal.c Fixed isConstantInitializer for __builtin_choose_expr. 2010-09-27 07:13:32 +00:00
conditional-expr.c Rearchitect -Wconversion and -Wsign-compare. Instead of computing them 2010-05-06 08:58:33 +00:00
conditional.c Improve diagnostics when we fail to convert from a source type to a 2010-04-09 00:35:39 +00:00
const-eval.c PR7884: Fix the implementations of __real__ and __imag__ on real floats. 2010-08-14 20:52:13 +00:00
const-ptr-int-ptr-cast.c tests: Use -ffreestanding when including stdint.h, to avoid platform dependencies. 2010-09-07 22:54:28 +00:00
constant-builtins-2.c Support strlen() and __builtin_strlen() as constant expressions with 2010-09-10 06:27:15 +00:00
constant-builtins.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
constructor-attribute.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
conversion-64-32.c Refer to implicit "conversions" rather than implicit "casts", which 2010-07-09 18:18:35 +00:00
conversion.c Refer to implicit "conversions" rather than implicit "casts", which 2010-07-09 18:18:35 +00:00
darwin-align-cast.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
decl-invalid.c Downgrade the "declaration does not declare anything" error to a 2010-04-08 21:33:23 +00:00
decl-type-merging.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
declspec.c Downgrade the "declaration does not declare anything" error to a 2010-04-08 21:33:23 +00:00
default.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
default1.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
deref.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
designated-initializers.c When filling in value initializations within an initializer list, be 2009-12-22 00:05:34 +00:00
dllimport-dllexport.c dllimport and dllexport are declspec attributes, too. They're also 2010-02-16 18:27:26 +00:00
enum-packed.c With packed enums, an enumerator's value may be stored in more bits 2010-06-29 17:12:35 +00:00
enum.c Revert r114316, -Wunused-value enabled by default was intended. 2010-09-19 23:03:35 +00:00
expr-address-of.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
expr-comma-c89.c Make the "unused result" warning a warning about run-time behavior, so 2010-07-15 18:47:04 +00:00
expr-comma.c Make the "unused result" warning a warning about run-time behavior, so 2010-07-15 18:47:04 +00:00
exprs.c turn down the logical bitwise confusion warning to not warn 2010-07-24 01:10:11 +00:00
ext_vector_casts.c With lax vector conversions (the default) make sure we convert between two 2010-08-26 00:42:16 +00:00
ext_vector_comparisons.c Warn about comparisons between arrays and improve self-comparison 2010-06-08 19:50:34 +00:00
ext_vector_components.c Revert r114316, -Wunused-value enabled by default was intended. 2010-09-19 23:03:35 +00:00
extern-redecl.c Fixes a regression when redeclaration of a global satic 2010-06-24 18:50:41 +00:00
flexible-array-init.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
floating-point-compare.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
for.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
format-string-percentm.c Add comment to test linking it back to the original Bugzilla PR. 2010-01-29 18:07:41 +00:00
format-strings-fixit.c Bug 7377: printf checking fails to flag some undefined behavior 2010-06-21 21:21:01 +00:00
format-strings-scanf.c Hookup checking for invalid length modifiers in scanf format strings. 2010-07-20 20:04:47 +00:00
format-strings.c Check format strings when a called function has more than one FormatAttr (one for 'scanf' and one for 'printf'). Fixes <rdar://problem/8409437>. 2010-09-09 04:33:05 +00:00
freemain.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
function-ptr.c Improve diagnostics when we fail to convert from a source type to a 2010-04-09 00:35:39 +00:00
function-redecl.c Empty enum in c is now error to match gcc's behavior. 2010-05-28 22:23:22 +00:00
function.c fix PR7280 by making the warning on code like this: 2010-07-11 23:34:02 +00:00
gnu89.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
heinous-extensions-off.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
heinous-extensions-on.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
i-c-e.c Revert r114316, -Wunused-value enabled by default was intended. 2010-09-19 23:03:35 +00:00
if-empty-body.c Do not warn about empty bodies for 'if' statements if the body is expanded from a macro. 2010-09-16 00:37:05 +00:00
illegal-types.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
implicit-builtin-decl.c make clang print types as "const int *" instead of "int const*", 2010-09-05 00:04:01 +00:00
implicit-builtin-freestanding.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
implicit-builtin-redecl.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
implicit-cast.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
implicit-decl.c fix PR7280 by making the warning on code like this: 2010-07-11 23:34:02 +00:00
implicit-def.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
implicit-int.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
incompatible-sign.c Whenever we complain about a failed initialization of a function or 2010-04-22 00:20:18 +00:00
incomplete-call.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
incomplete-decl.c Migrate the mish-mash of declaration checks in 2010-02-09 07:26:29 +00:00
indirect-goto.c Really trivial patch to accept pointer to const void in indirect goto. Despite 2010-01-31 10:26:25 +00:00
init-struct-qualified.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
init-vector.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
init.c tests: Use -ffreestanding when including stdint.h, to avoid platform dependencies. 2010-09-07 22:54:28 +00:00
inline.c Allow redefinitions of extern inline functions in GNU89 mode, just as GCC 2010-02-18 02:00:42 +00:00
int-arith-convert.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
invalid-decl.c Tighten up the "cannot return array or function type" diagnostic to 2010-01-11 18:46:21 +00:00
invalid-init-diag.c Improve diagnostics like "initializing <type> from an expression of 2010-04-09 17:53:29 +00:00
invalid-struct-init.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
knr-def-call.c make clang print types as "const int *" instead of "int const*", 2010-09-05 00:04:01 +00:00
knr-variadic-def.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
member-reference.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
merge-decls.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
missing-field-initializers.c Don't complain about missing field initializers when the initializer 2010-06-18 21:43:10 +00:00
ms-fuzzy-asm.c Avoid warnings for functions that return a value using MS-style inline 2010-01-04 23:01:10 +00:00
nested-redef.c Fix PR6618. 2010-03-21 22:56:43 +00:00
offsetof.c Fix a thinko that caused us not to compute __builtin_offset as a 2010-04-30 20:35:01 +00:00
opencl-cond.c Check in support for OpenCL conditional operator on vector types. 2010-09-20 22:41:17 +00:00
opencl-init.c Fix an issue with opencl init list checking. 2010-07-07 22:26:56 +00:00
overloadable-complex.c Add a new conversion rank to classify conversions between complex and scalar 2010-02-25 07:20:54 +00:00
overloadable.c Make sure that we diagnose attribute((overloadable)) functions without 2010-08-06 13:50:58 +00:00
parentheses.c When diagnosing suspicious precedence or assignments, move the fix-it 2010-04-14 16:09:52 +00:00
pointer-addition.c Congruent diagnostic for void* arithmetic. 2010-09-13 06:50:07 +00:00
pointer-conversion.c Improve diagnostics when we fail to convert from a source type to a 2010-04-09 00:35:39 +00:00
pointer-subtract-compat.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
pragma-align-mac68k-unsupported.c tests: Spell %clang_cc1 correctly. 2010-06-29 16:52:18 +00:00
pragma-align-mac68k.c tests: Spell %clang_cc1 correctly. 2010-06-29 16:52:18 +00:00
pragma-align-packed.c Sema: Fix a bug with #pragma options align=reset, reset against an empty stack 2010-07-16 04:54:16 +00:00
pragma-pack-2.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
pragma-pack-3.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
pragma-pack-4.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
pragma-pack-and-options-align.c Parse/Sema: Add support for '#pragma options align=native'. 2010-05-27 18:42:09 +00:00
pragma-pack.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
pragma-unused.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
predef.c make clang print types as "const int *" instead of "int const*", 2010-09-05 00:04:01 +00:00
predefined-function.c Whenever we complain about a failed initialization of a function or 2010-04-22 00:20:18 +00:00
private-extern.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
promote-int-16bit.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
rdar6248119.m Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
rdr6094103-unordered-compare-promote.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
recover-goto.c when emitting an error about a missing } in a compound statement, emit 2010-09-01 15:49:26 +00:00
redefinition.c Provide a specific diagnostic when trying to redefine an "extern 2010-09-07 15:51:01 +00:00
return-noreturn.c Get rid of the "functions declared 'noreturn' should have a 'void' result type" warning. 2010-09-03 00:25:02 +00:00
return-silent.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
return.c Enhance -Wreturn-type to not warn when control-flow is most likely limited by a switch statement explicitly covering 2010-09-09 00:06:07 +00:00
scope-check.c Labels (and case statement) don't create independent scope parents for the 2010-08-02 23:33:14 +00:00
self-comparison.c For self-comparison warning, check the source location of both the LHS and RHS to see if they 2010-09-16 00:03:01 +00:00
sentinel-attribute.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
shift.c Update tests to use %clang instead of 'clang', and forcibly disable use of ' 2009-12-15 22:01:24 +00:00
statements.c Revert r114316, -Wunused-value enabled by default was intended. 2010-09-19 23:03:35 +00:00
static-init.c Fix test to not force triple, and also to not need stdint.h. 2010-02-17 19:26:59 +00:00
stdcall-fastcall.c Standardize the parsing of function type attributes in a way that 2010-02-05 21:31:56 +00:00
struct-cast.c Wire up '-Wignored-qualifiers' to the warning on 'const' in 'const int f()'. 2010-07-14 06:36:18 +00:00
struct-compat.c Improve diagnostics like "initializing <type> from an expression of 2010-04-09 17:53:29 +00:00
struct-decl.c Add test case for <rdar://problem/8177927> (which triggered an assertion failure in SemaChecking). 2010-07-12 17:35:39 +00:00
struct-packed-align.c Support __attribute__((packed)) (along with other attributes) at the 2010-03-29 14:42:08 +00:00
surpress-deprecated.c Update tests to use %clang instead of 'clang', and forcibly disable use of ' 2009-12-15 22:01:24 +00:00
switch.c turn down the logical bitwise confusion warning to not warn 2010-07-24 01:10:11 +00:00
tentative-decls.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
text-diag.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
thread-specifier.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
transparent-union-pointer.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
transparent-union.c Complain about the application of a transparent_union attribute to a 2010-06-30 17:24:13 +00:00
type-spec-struct-union.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
typecheck-binop.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
typedef-prototype.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
typedef-redef.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
typedef-retain.c Improve diagnostics when we fail to convert from a source type to a 2010-04-09 00:35:39 +00:00
typedef-variable-type.c Fix redefinition of typedefs of fixable variably-modified array types; should 2010-08-10 03:13:15 +00:00
types.c Clean up the diagnostic complaining about the element type of a vector 2010-06-30 17:30:41 +00:00
ucn-cstring.c Add basic type checking of format string conversion specifiers and their arguments. Thanks to Cristian Draghici for his help with this patch! 2010-01-30 00:49:51 +00:00
unnamed-bitfield-init.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
unused-expr.c Revert r114316, -Wunused-value enabled by default was intended. 2010-09-19 23:03:35 +00:00
usual-float.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
va_arg_x86_32.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
va_arg_x86_64.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
var-redecl.c Fixes a corner case bug whereby declaring and defining an extern variable in a 2010-06-21 16:08:37 +00:00
varargs-x86-64.c print "const intptr_t" instead of "intptr_t const" 2010-09-05 00:07:29 +00:00
varargs.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
variadic-block.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
vector-assign.c make clang print types as "const int *" instead of "int const*", 2010-09-05 00:04:01 +00:00
vector-cast.c Whenever we complain about a failed initialization of a function or 2010-04-22 00:20:18 +00:00
vector-init.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
vector-ops.c Vectors are not integer types, so the type system should not classify 2010-07-23 15:58:24 +00:00
vfprintf-invalid-redecl.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
vfprintf-valid-redecl.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
vla.c Fix for PR5185. C99 [*] VLA notation should be disallowed in function definitions. 2010-02-01 05:02:49 +00:00
void_arg.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
warn-cast-align.c Implement -Wcast-align. The initial design of this diagnostic diverges 2010-08-12 21:44:57 +00:00
warn-char-subscripts.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
warn-freestanding-complex.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
warn-gnu-designators.c Control warnings about GNU extensions with -Wgnu, which has a subgroup 2010-03-24 20:42:51 +00:00
warn-missing-braces.c rename llvm::llvm_report_error -> llvm::report_fatal_error 2010-04-07 22:58:06 +00:00
warn-missing-prototypes.c Update tests to use %clang instead of 'clang', and forcibly disable use of ' 2009-12-15 22:01:24 +00:00
warn-shadow.c -Wshadow should only warn about parameter declarations when we're 2010-03-22 09:20:08 +00:00
warn-unreachable.c Enhance -Wunreachable-code to not consider the 'default:' branch of a switch statement live if a switch on an enum value has 2010-09-09 00:06:10 +00:00
warn-unused-function.c Recursive functions should be marked when used from another function. Fixes http://llvm.org/PR7923. 2010-08-25 10:34:54 +00:00
warn-unused-label.c Don't warn for an unused label if it has 'unused' attribute. Fixes rdar://8483139. 2010-09-28 14:54:07 +00:00
warn-unused-parameters.c Use '%clang_cc1' instead of '%clang' to make the warning output more consistent across 2010-04-08 23:17:16 +00:00
warn-unused-value.c Implement -Wunused-label. 2010-09-19 21:21:25 +00:00
warn-unused-variables.c Keep an explicit stack of function and block scopes, each element of 2010-03-01 23:15:13 +00:00
warn-write-strings.c fix PR7192 by defining wchar_t in a more conventional way. The 2010-09-05 23:29:49 +00:00
wchar.c Initialization improvements: addition of string initialization and a few 2009-12-19 08:11:05 +00:00
x86-attr-force-align-arg-pointer.c Also don't warn about force_align_arg_pointer on function typedefs. (This will 2010-02-18 04:56:59 +00:00
x86-builtin-palignr.c diagnose errors when a builtin that require constant arguments don't have them. 2010-10-01 23:23:24 +00:00