hanchenye-llvm-project/clang/test/Sema
Hans Wennborg b0f2f146bb Allow dllimport/dllexport on inline functions and adjust the linkage.
This is a step towards handling these attributes on classes (PR11170).

Differential Revision: http://reviews.llvm.org/D3772

llvm-svn: 208925
2014-05-15 22:07:49 +00:00
..
Inputs Add test that -Wunreachable-code warnings are suppressed in headers. 2014-02-21 21:41:23 +00:00
128bitfloat.cc
128bitint.c
2007-10-01-BuildArrayRef.c Fix a test that hasn't worked since 2007 2013-12-08 18:49:05 +00:00
2009-03-09-WeakDeclarations-1.c Fix three tests that weren't checking anything 2013-12-08 22:22:31 +00:00
2009-04-22-UnknownSize.c Fix three tests that weren't checking anything 2013-12-08 22:22:31 +00:00
2009-07-17-VoidParameter.c Fix three tests that weren't checking anything 2013-12-08 22:22:31 +00:00
2010-05-31-palignr.c
MicrosoftCompatibility-x64.c
MicrosoftCompatibility-x86.c
MicrosoftCompatibility.c Unify __declspec attribute argument parsing with the common attribute argument parsing code. 2014-03-31 18:18:43 +00:00
MicrosoftCompatibility.cpp
MicrosoftExtensions.c Try to fix arm bots by removing a superfluous __cdecl 2014-03-26 22:52:23 +00:00
PR2727.c
PR2728.c
PR2919-builtin-types-compat-strips-crv.c
PR2923.c
PR2963-enum-constant.c
__try.c
aarch64-neon-ranges.c [ARM64] Add ARM64 RUN lines to a bunch of tests that had AARCH64 RUN lines. 2014-04-17 12:51:36 +00:00
aarch64-neon-vector-types.c [ARM64] Add ARM64 RUN lines to a bunch of tests that had AARCH64 RUN lines. 2014-04-17 12:51:36 +00:00
address-constant.c
address_spaces.c
alias-redefinition.c Treat aliases as definitions. 2013-10-22 21:39:03 +00:00
align-arm-apcs.c
align-x86-64.c
align-x86.c
alignas.c
altivec-init.c
annotate.c
anonymous-struct-union-c11.c
anonymous-struct-union.c
arg-duplicate.c
arg-scope-c99.c
arg-scope.c
arm-asm.c ARM: teach Sema that "r" can match 64-bit values 2013-12-08 15:24:55 +00:00
arm-darwin-aapcs.cpp
arm-interrupt-attr.c Updated the wording of two attribute-related diagnostics so that they print the offending attribute name. Also updates the associated test cases. 2014-01-02 21:26:14 +00:00
arm-layout.c
arm-neon-types.c
arm64-inline-asm.c [ARM64] Change inline assembly constraints to be more lax, to match the behaviour of Clang/AArch64 and GCC. 2014-04-23 10:26:19 +00:00
arm64-neon-args.c Add a test for big-endian NEON on ARM64. 2014-04-30 12:12:45 +00:00
array-bounds-ptr-arith.c
array-constraint.c
array-declared-as-incorrect-type.c
array-init.c
array-size-64.c
array-size.c
asm.c Stop crashing on empty asm input constraints 2013-12-16 03:20:06 +00:00
assign-null.c
assign.c
ast-print.c
atomic-expr.c
atomic-ops.c Sema: demote invalid atomic ordering message to warning. 2014-03-11 11:35:10 +00:00
atomic-requires-library-error.c
atomic-type.c
attr-alias-elf.c Fix pr19653. 2014-05-05 20:21:03 +00:00
attr-alias.c
attr-aligned.c AST: Respect alignment attributes on typedef'd arrays 2014-04-15 20:12:41 +00:00
attr-args.c
attr-availability-ios.c Implemented delayed processing of 'unavailable' checking, just like with 'deprecated'. 2013-12-18 23:30:06 +00:00
attr-availability-macosx.c Implemented delayed processing of 'unavailable' checking, just like with 'deprecated'. 2013-12-18 23:30:06 +00:00
attr-availability.c Implemented delayed processing of 'unavailable' checking, just like with 'deprecated'. 2013-12-18 23:30:06 +00:00
attr-bounded.c When parsing ignored attribute arguments, presuming the first argument is an unresolved identifier the same way that we do for unknown arguments. This resolves PR18075, where we regressed the handling of OpenBSD's bounded attribute. 2013-12-04 15:32:26 +00:00
attr-capabilities.c In preparation for being able to use simple Boolean logic expressions involving capabilities, the semantics for attributes now looks through the types of the constituent parts of a capability expression instead of at the aggregate expression type. 2014-04-04 15:13:57 +00:00
attr-cleanup.c Implemented delayed processing of 'unavailable' checking, just like with 'deprecated'. 2013-12-18 23:30:06 +00:00
attr-coldhot.c Simplifying the mutual exclusion check now that the diagnostics engine knows how to handle Attr objects directly. Updates an associated test case due to the attribute name being properly quoted again. 2014-01-03 16:23:46 +00:00
attr-decl-after-definition.c
attr-declspec-ignored.c
attr-deprecated-message.c Implemented delayed processing of 'unavailable' checking, just like with 'deprecated'. 2013-12-18 23:30:06 +00:00
attr-deprecated.c Implemented delayed processing of 'unavailable' checking, just like with 'deprecated'. 2013-12-18 23:30:06 +00:00
attr-endian.c
attr-format.c
attr-format_arg.c
attr-malloc.c Move a bunch of tests to directly use the CC1 layer. This at least saves 2014-01-15 09:08:07 +00:00
attr-minsize.c
attr-mode.c
attr-msp430.c Allow target-specific attributes to share a spelling between different attributes via the ParseKind field. Attributes will be given a common parsed attribute identifier (the AttributeList::AT_* enum), but retain distinct Attr subclasses. 2013-12-15 13:05:48 +00:00
attr-naked.c
attr-nodebug.c
attr-noduplicate.c Exposing the noduplicate attribute within Clang, which marks functions so that the optimizer does not duplicate code. 2014-02-22 16:59:24 +00:00
attr-noinline.c
attr-noreturn.c
attr-ownership.c Updated the wording of two attribute-related diagnostics so that they print the offending attribute name. Also updates the associated test cases. 2014-01-02 21:26:14 +00:00
attr-print.c
attr-regparm.c
attr-returns-twice.c
attr-section.c Added a Subjects clause to the section attribute and made its diagnostics more consistent with other attributes. 2013-12-12 01:34:39 +00:00
attr-sentinel.c
attr-tls_model.c
attr-unavailable-message.c Implemented delayed processing of 'unavailable' checking, just like with 'deprecated'. 2013-12-18 23:30:06 +00:00
attr-unknown.c
attr-unused.c
attr-used.c Removed a string literal for an attribute name, which means the attribute name will be quoted in the diagnostic. Manually added some quotes to a diagnostic for consistency. Updated the test cases as appropriate. 2013-12-26 17:30:44 +00:00
attr-visibility.c
attr-weak.c
bitfield-layout.c Fixing a compiler assertion with zero-width bit-fields in packed structs. 2014-02-13 02:45:10 +00:00
bitfield-promote.c
bitfield.c
block-args.c
block-call.c
block-explicit-noreturn-type.c
block-labels.c
block-literal.c
block-misc.c Correct hyphenations in comments and assert messages 2013-12-05 04:47:09 +00:00
block-printf-attribute-1.c
block-return-1.c
block-return-2.c
block-return-3.c
block-return.c
block-sentinel-attribute.c
block-storageclass.c
bool-compare.c Extend -Wtautological-constant-out-of-range-compare to handle boolean values 2014-04-04 04:13:47 +00:00
builtin-clear_cache.c [ARM64] Fix __clear_cache - ensure it is predefined. 2014-04-17 12:51:42 +00:00
builtin-object-size.c
builtin-prefetch.c
builtin-stackaddress.c
builtin-unary-fp.c
builtin_objc_msgSend.c
builtins-aarch64.c [ARM64] Add ARM64 RUN lines to a bunch of tests that had AARCH64 RUN lines. 2014-04-17 12:51:36 +00:00
builtins-arm-exclusive.c
builtins-arm-strex-rettype.c ARM: fix AST for __builtin_arm_strex call 2013-10-29 12:32:58 +00:00
builtins-arm.c
builtins-arm64-exclusive.c ARM64: initial clang support commit. 2014-03-29 15:09:45 +00:00
builtins-arm64.c ARM64: initial clang support commit. 2014-03-29 15:09:45 +00:00
builtins-decl.c
builtins-gnu-mode.c Re-enable several builtins in non-gnu modes. 2014-04-16 08:06:33 +00:00
builtins.c Only provide MS builtins when -fms-extensions is on 2013-11-13 22:47:22 +00:00
c11-typedef-redef.c
c89.c Sema: Cleanup and simplify anonymous union diagnostics 2013-11-02 10:38:05 +00:00
callingconv-ms_abi.c
callingconv-sysv_abi.c
callingconv.c Improving calling convention test coverage by adding tests for things not currently handled. Specifically: the diagnostics in SemaDeclAttr.cpp, and ensuring that calling convention attributes are applied to ObjC method declarations. No functional changes. 2013-11-19 04:08:34 +00:00
captured-statements.c
cast-incomplete.c
cast-to-union.c
cast.c
check-increment.c
compare.c
complex-imag.c
complex-init-list.c
complex-int.c
complex-promotion.c
compound-literal.c
conditional-expr.c
conditional.c
const-eval-64.c
const-eval.c PR16074, implement warnings to catch pointer to boolean true and pointer to 2014-02-26 02:36:06 +00:00
const-ptr-int-ptr-cast.c
constant-builtins-2.c Add constant evaluation support for __builtin_isinf, __builtin_isfinite, 2013-10-15 19:07:14 +00:00
constant-builtins.c
constant-conversion.c
constructor-attribute.c Updated the wording of two attribute-related diagnostics so that they print the offending attribute name. Also updates the associated test cases. 2014-01-02 21:26:14 +00:00
conversion-64-32.c
conversion.c Revert r205646 (keeping the test in its modified form) as 2014-04-07 16:32:54 +00:00
convertvector.c
crash-invalid-array.c Remove an old stdio.h include from the invalid-array test 2013-12-08 22:37:30 +00:00
darwin-align-cast.c
decl-in-prototype.c Do not add enums to prototype scope in C++ modes. 2014-02-22 03:05:49 +00:00
decl-invalid.c
decl-type-merging.c
declspec.c Warn on duplicate function specifier 2013-11-13 06:57:53 +00:00
default.c
default1.c
deref.c
designated-initializers.c
dllexport.c Allow dllimport/dllexport on inline functions and adjust the linkage. 2014-05-15 22:07:49 +00:00
dllimport.c Allow dllimport/dllexport on inline functions and adjust the linkage. 2014-05-15 22:07:49 +00:00
empty1.c Remove the -cxx-abi command-line flag. 2014-01-14 19:35:09 +00:00
empty2.c
enable_if.c Neither attribute overloadable nor enable_if are supported by GCC. Disable the 2014-01-21 04:31:12 +00:00
enum-increment.c
enum-packed.c
enum.c
expr-address-of.c
expr-comma-c99.c
expr-comma.c
exprs.c
ext_vector_casts.c Print detailed vector type information on diagnostics. 2014-04-25 20:41:38 +00:00
ext_vector_comparisons.c
ext_vector_components.c
extern-redecl.c
flexible-array-init.c
floating-point-compare.c
fn-ptr-as-fn-prototype.c There's no such thing as %clang_cc1_only 2013-12-08 18:49:11 +00:00
for.c
format-string-percentm.c
format-strings-c90.c
format-strings-darwin.c
format-strings-enum-fixed-type.cpp
format-strings-enum.c
format-strings-fixit-ssize_t.c
format-strings-fixit.c Remove wchar_t* buffer from scanf format fix-it test. 2014-03-20 15:54:16 +00:00
format-strings-gnu.c
format-strings-int-typedefs.c
format-strings-ms.c
format-strings-no-fixit.c
format-strings-non-iso.c
format-strings-scanf.c scanf analysis: handle scanlists that start with ^] (PR19559) 2014-04-29 19:42:27 +00:00
format-strings-size_t.c
format-strings.c Let stddef.h respect __need_{wchar_t, size_t, NULL, ptrdiff_t, wint_t}. 2014-04-30 04:35:09 +00:00
fp16-sema.c
fpack-struct.c
freemain.c
function-ptr.c
function-redecl.c
function.c
generic-selection.c
gnu-flags.c
gnu89.c
heinous-extensions-off.c
heinous-extensions-on.c
i-c-e.c Move a bunch of tests to directly use the CC1 layer. This at least saves 2014-01-15 09:08:07 +00:00
illegal-types.c
implicit-builtin-decl.c Add the location of Decls to ast dump. 2014-04-02 05:48:29 +00:00
implicit-builtin-freestanding.c
implicit-builtin-redecl.c
implicit-cast-dump.c Add the location of Decls to ast dump. 2014-04-02 05:48:29 +00:00
implicit-cast.c
implicit-decl.c
implicit-def.c
implicit-int.c
incompatible-sign.c
incomplete-call.c
incomplete-decl.c
indirect-goto.c
init-struct-qualified.c
init-vector.c
init.c
initialize-noreturn.c
inline-asm-validate.c [ARM64] Change inline assembly constraints to be more lax, to match the behaviour of Clang/AArch64 and GCC. 2014-04-23 10:26:19 +00:00
inline-redef.c
inline.c
int-arith-convert.c
invalid-cast.cpp
invalid-decl.c Parameter/argument terminology fixes 2014-05-11 16:06:11 +00:00
invalid-init-diag.c
invalid-struct-init.c
knr-def-call.c
knr-variadic-def.c
lit.local.cfg Forbid driver use in Sema tests 2014-01-16 02:37:08 +00:00
loop-control.c Fix to PR8880 (clang dies processing a for loop) 2014-01-23 15:05:00 +00:00
many-logical-ops.c
many-parameters.c
member-reference.c Fix a C struct diagnostic regression introduced by r187504 (PR17762). 2013-10-31 20:32:56 +00:00
memset-invalid-1.c
memset-invalid.c
merge-decls.c
mips16_attr_allowed.c PR17666: Instead of allowing an initial identifier argument in any attribute 2013-10-24 01:07:54 +00:00
mips16_attr_not_allowed.c
missing-field-initializers.c
mms-bitfields.c
mrtd.c Tighten diagnostics for calling conventions on variadic functions 2013-10-09 18:10:25 +00:00
ms-inline-asm-invalid-arch.c
ms-inline-asm.c Add tests for MS inline asm change r203146 2014-03-06 19:19:36 +00:00
ms-keyword-system-header.c Emit an extension warning when changing system header tokens 2013-12-03 06:13:01 +00:00
ms-wchar.c Revert "Don't require -re suffix on -verify directives with regexes." 2013-12-14 01:07:05 +00:00
ms_abi-sysv_abi.c
ms_bitfield_layout.c MS ABI: Bitfields FielDecls only align if they allocate 2014-04-13 08:15:50 +00:00
ms_class_layout.cpp -fdump-record-layouts: Sort nvbases by offset before printing them 2014-02-28 01:03:09 +00:00
ms_wide_predefined_expr.cpp
neon-vector-types-support.c
neon-vector-types.c ARM64: initial clang support commit. 2014-03-29 15:09:45 +00:00
nested-redef.c
no-documentation-warn-tagdecl-specifier.c
no-format-y2k-turnsoff-format.c
nonnull.c 'nonnull(1)' on a block parameter should apply to the block's argument. 2014-02-11 17:27:59 +00:00
nowarn-documentation-property.m
offsetof-64.c
offsetof.c
outof-range-constant-compare.c
overloadable-complex.c
overloadable.c Replacing a custom diagnostic with a more standard one. No functional change intended. 2013-11-26 16:14:15 +00:00
overloaded-func-transparent-union.c
parentheses.c
parentheses.cpp
pid_t.c
pointer-addition.c
pointer-conversion.c
pointer-subtract-compat.c
ppc-bool.c
pragma-align-mac68k-unsupported.c
pragma-align-mac68k.c
pragma-align-packed.c
pragma-arc-cf-code-audited.c
pragma-ms_struct.c Unify __declspec attribute argument parsing with the common attribute argument parsing code. 2014-03-31 18:18:43 +00:00
pragma-pack-2.c
pragma-pack-3.c
pragma-pack-4.c
pragma-pack-5.c
pragma-pack-6.c
pragma-pack-and-options-align.c
pragma-pack-apple.c Forbid driver use in Sema tests 2014-01-16 02:37:08 +00:00
pragma-pack.c
pragma-section.c Add a -triple argument so that this new test passes on Darwin. 2014-04-09 18:51:19 +00:00
pragma-unused.c
pragma-weak.c Treat aliases as definitions. 2013-10-22 21:39:03 +00:00
predef.c
predefined-function.c
private-extern.c
rdr6094103-unordered-compare-promote.c
recover-goto.c
redefinition.c
return-noreturn.c Turn off -Wmissing-noreturn warning for blocks 2014-04-03 23:06:35 +00:00
return-silent.c
return.c Fix recent regressions in -Wreturn-type caused by heuristics to -Wunreachable-code. 2014-03-07 07:14:36 +00:00
scope-check.c
self-comparison.c
sentinel-attribute.c Updated the wording of two attribute-related diagnostics so that they print the offending attribute name. Also updates the associated test cases. 2014-01-02 21:26:14 +00:00
shift.c Move a bunch of tests to directly use the CC1 layer. This at least saves 2014-01-15 09:08:07 +00:00
short-enums.c
sign-conversion.c
statements.c Fix to PR8880 (clang dies processing a for loop) 2014-01-23 15:05:00 +00:00
static-array.c
static-assert.c
static-init.c PR16074, implement warnings to catch pointer to boolean true and pointer to 2014-02-26 02:36:06 +00:00
stdcall-fastcall-x64.c
stdcall-fastcall.c
string-init.c
string-plus-char.c Add -Wstring-plus-char, which warns when adding char literals to C strings. 2013-10-25 16:52:00 +00:00
struct-cast.c
struct-compat.c
struct-decl.c Create a redeclaration when an elaborated type specifier 2014-05-14 07:54:17 +00:00
struct-packed-align.c
surpress-deprecated.c
switch-1.c
switch.c Render anonymous entities as '(anonymous <thing>)' (and lambdas as '(lambda at ... )') 2014-04-02 05:58:29 +00:00
template-specialization.cpp
tentative-decls.c
text-diag.c
thread-specifier.c __thread: Move constant init check to CheckCompleteVariableDeclaration 2014-04-30 17:10:18 +00:00
tls.c Bitrig now supports TLS, so enable TLS support when targeting it. Patch by Patrick Wildt! 2014-05-01 23:19:06 +00:00
transparent-union-pointer.c
transparent-union.c Print detailed vector type information on diagnostics. 2014-04-25 20:41:38 +00:00
type-spec-struct-union.c
typecheck-binop.c
typedef-prototype.c
typedef-redef.c
typedef-retain.c Print detailed vector type information on diagnostics. 2014-04-25 20:41:38 +00:00
typedef-variable-type.c
typeof-use-deprecated.c Implemented delayed processing of 'unavailable' checking, just like with 'deprecated'. 2013-12-18 23:30:06 +00:00
types.c vector [Sema]. Check for proper use of 's' char prefix 2014-04-03 19:43:01 +00:00
ucn-cstring.c
ucn-identifiers.c
uninit-det-order.c
uninit-variables-vectors.c
uninit-variables.c
unnamed-bitfield-init.c
unused-expr-system-header.c
unused-expr.c Move the warning about unused relational comparison from -Wunused-value to 2014-03-11 03:11:08 +00:00
usual-float.c
va_arg_x86_32.c
va_arg_x86_64.c
var-redecl.c
varargs-x86-64.c
varargs.c Fixed bug in return type of __builtin_va_start(). 2013-11-07 08:14:26 +00:00
varargs.cpp
varargs_unreachable.c
variadic-block.c
variadic-incomplete-arg-type.c
variadic-promotion.c Creating a printing policy for "half": 2014-03-18 17:55:18 +00:00
vector-assign.c Print detailed vector type information on diagnostics. 2014-04-25 20:41:38 +00:00
vector-cast.c Make test pass on 32 bit architectures. 2014-04-25 20:49:10 +00:00
vector-init.c Print detailed vector type information on diagnostics. 2014-04-25 20:41:38 +00:00
vector-ops.c Print detailed vector type information on diagnostics. 2014-04-25 20:41:38 +00:00
vfprintf-invalid-redecl.c
vfprintf-valid-redecl.c
vla-2.c
vla.c Replace "can not" with "cannot" in diagnostics messages. 2014-03-07 22:36:23 +00:00
void_arg.c
warn-absolute-value-header.c Add -Wabsolute-value, warnings about absolute value functions. 2014-02-26 01:17:28 +00:00
warn-absolute-value.c Add -Wabsolute-value, warnings about absolute value functions. 2014-02-26 01:17:28 +00:00
warn-bad-function-cast.c
warn-cast-align.c
warn-char-subscripts.c
warn-documentation-almost-trailing.c
warn-documentation-crlf.c
warn-documentation-fixits.cpp CommentLexer: When proceeding with a typo corrected name don't clobber the token. 2013-12-01 15:09:32 +00:00
warn-documentation.cpp Comment parsing: in the generated XML file, mark HTML that is safe to pass 2014-04-22 10:59:13 +00:00
warn-documentation.m
warn-duplicate-enum.c
warn-freestanding-complex.c
warn-gnu-designators.c
warn-main-return-type.c
warn-main.c
warn-missing-braces.c
warn-missing-prototypes.c
warn-missing-variable-declarations.c Forbid driver use in Sema tests 2014-01-16 02:37:08 +00:00
warn-null.c [Sema] Revert the change in r200622 that allowed integer casts to silence -Wnon-literal-null-conversion in C code. 2014-02-11 17:53:22 +00:00
warn-outof-range-assign-enum.c -Wassign-enum: compare unqualified types 2013-12-05 23:06:53 +00:00
warn-overlap.c Fix a bad interaction between -Wtautological-overlap-compare and delayed 2014-04-15 00:57:50 +00:00
warn-self-assign-field.mm
warn-shadow-intrinsics.c
warn-shadow.c
warn-sizeof-array-decay.c
warn-sizeof-arrayarg.c
warn-strlcpycat-size.c
warn-strncat-size.c
warn-thread-safety-analysis.c Updating the capability attribute diagnostics to be more capability-neutral. Instead of using terminology such as "lock", "unlock" and "locked", the new terminology is "acquire", "release" and "held". Additionally, the capability attribute's name argument is now reported as part of the diagnostic, instead of hard coding as "mutex." 2014-04-01 21:43:23 +00:00
warn-type-safety-mpi-hdf5.c
warn-type-safety.c Making type_tag_for_datatype consistent with its declared subject from Attr.td. Also updated the related testcase. 2013-11-25 18:50:49 +00:00
warn-type-safety.cpp
warn-unreachable.c Fix some typos 2014-05-05 19:53:42 +00:00
warn-unsequenced.c
warn-unused-function.c This is now passing. Uncomment and close out PR6281. 2013-10-17 04:13:35 +00:00
warn-unused-label.c PR8455: Handle an attribute between a goto label and a variable declaration per 2013-11-15 22:45:29 +00:00
warn-unused-parameters.c
warn-unused-value.c
warn-unused-variables-werror.c
warn-unused-variables.c
warn-variable-not-needed.c Consider hidden decls for isUsed checks. 2013-10-22 21:56:29 +00:00
warn-vla.c
warn-write-strings.c
wchar.c Forbid driver use in Sema tests 2014-01-16 02:37:08 +00:00
weak-import-on-enum.c
x86-attr-force-align-arg-pointer.c
x86-builtin-palignr.c