hanchenye-llvm-project/clang/test/SemaCXX
Douglas Gregor fc4f8a1834 Implement semantic analysis for the GNU flexible array initialization
extension. The interaction with designated initializers is a
bit... interesting... but we follow GNU's lead and don't permit too
much crazy code in this area.

Also, make the "excess initializers" error message a bit more
informative.

Addresses PR2561: http://llvm.org/bugs/show_bug.cgi?id=2561

llvm-svn: 63785
2009-02-04 22:46:25 +00:00
..
__null.cpp Add codegen support for __null 2008-12-21 22:39:40 +00:00
addr-of-overloaded-function.cpp Basic support for taking the address of an overloaded function 2008-11-10 20:40:00 +00:00
address-of.cpp fix PR 3222: allow one to get the address of a global function in C++ 2008-12-16 22:58:26 +00:00
aggregate-initialization.cpp Sema-check virtual declarations. Complete dynamic_cast checking. 2008-11-06 15:59:35 +00:00
anonymous-union.cpp Implement support for anonymous structs and unions in C. Both C and 2009-01-12 22:49:06 +00:00
basic_lookup_argdep.cpp Fix our semantic analysis of 2009-02-04 15:01:18 +00:00
blocks.cpp instead of forcing blocks on by default, make them default to off, but let 2008-12-04 23:20:07 +00:00
bool.cpp Implement checks for bool in increment and decrement. 2008-12-20 09:35:34 +00:00
carbon.cpp Add carbon.cpp and cocoa.mm tests 2008-08-23 22:21:00 +00:00
class-names.cpp Make all the 'redefinition' diagnostics more consistent, and make the 2008-11-23 23:12:31 +00:00
class.cpp Complete semantic checking for typedef redeclarations in C++. The 2009-01-28 17:15:10 +00:00
condition.cpp Introduce support for C++0x explicit conversion operators (N2437) 2009-01-14 15:45:31 +00:00
const-cast.cpp Add support for member pointers to const_cast. 2009-01-26 22:19:12 +00:00
constructor-initializer.cpp Improve parser error recovery after a constructor initializer 2008-11-10 16:59:40 +00:00
constructor.cpp Correct the order in which we cope with end-of-class-definition 2008-12-24 00:01:03 +00:00
conversion-function.cpp Fix our semantic analysis of 2009-02-04 15:01:18 +00:00
convert-to-bool.cpp Initial implementation of argument dependent lookup (a.k.a. ADL, 2009-02-04 00:32:51 +00:00
converting-constructor.cpp Initial implementation of argument dependent lookup (a.k.a. ADL, 2009-02-04 00:32:51 +00:00
copy-initialization.cpp Correct the order in which we cope with end-of-class-definition 2008-12-24 00:01:03 +00:00
dcl_init_aggr.cpp Implement semantic analysis for the GNU flexible array initialization 2009-02-04 22:46:25 +00:00
decl-expr-ambiguity.cpp Initial implementation of argument dependent lookup (a.k.a. ADL, 2009-02-04 00:32:51 +00:00
default1.cpp Correct the order in which we cope with end-of-class-definition 2008-12-24 00:01:03 +00:00
default2.cpp Correct the order in which we cope with end-of-class-definition 2008-12-24 00:01:03 +00:00
dependent-types.cpp Introduce basic support for dependent types, type-dependent 2008-12-05 23:32:09 +00:00
derived-to-base-ambig.cpp First non-embarrassing cut at checking for ambiguous derived-to-base 2008-10-24 04:54:22 +00:00
destructor.cpp Enable out-of-line definitions of C++ constructors and destructors 2008-12-12 08:25:50 +00:00
direct-initializer.cpp Removed the warning 2008-12-17 16:19:15 +00:00
do-while-scope.cpp Fix do-while scoping in C++. 2008-09-11 04:46:46 +00:00
dynamic-cast.cpp Centralize error reporting of improper uses of incomplete types in the 2009-01-19 19:26:10 +00:00
elaborated-type-specifier.cpp When we see a reference to a struct, class, or union like "struct X" 2009-01-09 22:42:13 +00:00
enum.cpp Fix <rdar://problem/6502934>. We were creating an ImplicitCastExpr 2009-01-16 19:38:23 +00:00
expressions.cpp Add missing test case for operator ! result type. 2009-01-19 21:37:51 +00:00
fntype-decl.cpp Make all the 'redefinition' diagnostics more consistent, and make the 2008-11-23 23:12:31 +00:00
function-type-qual.cpp Unbreak the test by.. removing a space. (clang protested that -verify only works on single input files). 2008-10-24 22:25:11 +00:00
functional-cast.cpp Part one of handling C++ functional casts. This handles semantic 2009-01-16 18:33:17 +00:00
inherit.cpp Add representation of base classes in the AST, and verify that we 2008-10-22 17:49:05 +00:00
linkage-spec.cpp When determining whether a variable is a file-scoped variable, check 2009-01-07 02:48:43 +00:00
member-expr.cpp Add test for contextual conversion to bool, and enable some FIXME'd tests 2009-01-16 03:02:29 +00:00
member-name-lookup.cpp Diagnose ambiguities in getTypeName. Fixes http://llvm.org/bugs/show_bug.cgi?id=3475 2009-02-04 17:00:24 +00:00
member-pointer.cpp Implement taking address of member functions, including overloaded ones. 2009-02-04 21:23:32 +00:00
ms-exception-spec.cpp Parse the exception-specification throw(...), a Microsoft extension 2008-12-01 18:00:20 +00:00
namespace.cpp Unifies the name-lookup mechanisms used in various parts of the AST 2008-12-11 16:49:14 +00:00
nested-name-spec.cpp Add support for out-of-line definitions of conversion functions and member operators 2008-12-26 15:00:45 +00:00
new-delete.cpp Centralize error reporting of improper uses of incomplete types in the 2009-01-19 19:26:10 +00:00
overload-call-copycon.cpp Standard conversion sequences now have a CopyConstructor field, to 2008-11-03 19:09:14 +00:00
overload-call.cpp In C++, set the type of each of the enumerators in an enumeration to 2008-12-12 02:00:36 +00:00
overload-decl.cpp Place constructors and destructors into the DeclContext of the class, 2008-12-15 21:24:18 +00:00
overload-member-call.cpp Update C++ status and add a few more tests of overloading for member function calls 2009-01-12 23:20:38 +00:00
overloaded-builtin-operators.cpp Add the proper restrictions on the left-hand argument of a built-in 2009-01-13 00:52:54 +00:00
overloaded-operator-decl.cpp Don't print canonical types in overloading-related diagnostics 2008-11-21 02:54:28 +00:00
overloaded-operator.cpp Bring operator name lookup (as required for C++ operator overloading) 2009-02-04 16:44:47 +00:00
qualification-conversion.cpp Initial implementation of argument dependent lookup (a.k.a. ADL, 2009-02-04 00:32:51 +00:00
qualified-id-lookup.cpp Centralize error reporting of improper uses of incomplete types in the 2009-01-19 19:26:10 +00:00
references.cpp Removed the warning 2008-12-17 16:19:15 +00:00
reinterpret-cast.cpp Add handling of member pointers to reinterpret_cast. 2009-01-27 23:18:31 +00:00
reinterpret-fn-obj-pedantic.cpp Semantic analysis for C++ reinterpret_cast and const_cast. Patch by Sebastian Redl. 2008-10-24 15:36:09 +00:00
return-stack-addr.cpp Refactor the expression class hierarchy for casts. Most importantly: 2008-10-27 19:41:14 +00:00
statements.cpp This is valid in C++. 2008-12-18 02:03:48 +00:00
static-cast.cpp Implement pointer to member handling in static_cast. 2009-01-28 18:33:18 +00:00
static-initializers.cpp Initial sema support for C++ static initializers. 2008-08-22 05:00:02 +00:00
template-specialization.cpp Ultrasimplistic sketch for the parsing of C++ template-ids. This won't 2008-12-18 19:37:40 +00:00
this.cpp
try-catch.cpp Centralize error reporting of improper uses of incomplete types in the 2009-01-19 19:26:10 +00:00
type-convert-construct.cpp Give string literals const element typesin C++, and cope with the deprecated C++ conversion from a string literal to a pointer-to-non-const-character 2008-09-12 00:47:35 +00:00
type-dependent-exprs.cpp Fix our semantic analysis of 2009-02-04 15:01:18 +00:00
type-traits.cpp PODness and Type Traits 2009-01-05 20:52:13 +00:00
typedef-redecl.cpp Complete semantic checking for typedef redeclarations in C++. The 2009-01-28 17:15:10 +00:00
typeid.cpp Implement C++ 'typeid' parsing and sema. 2008-11-11 11:37:55 +00:00
user-defined-conversions.cpp Steve set me straight on this one. GCC was right, EDG was wrong: the 2009-02-02 22:11:10 +00:00
using-directive.cpp Remove a fixed FIXME 2009-02-03 19:26:44 +00:00
vararg-non-pod.cpp Use a single function for doing vararg argument promotion. Also, make sure to do the promotion before checking the type - fixes PR3340. 2009-01-16 16:48:51 +00:00
virtuals.cpp Very basic support for pure virtual functions. 2009-01-09 19:57:06 +00:00
warn-for-var-in-else.cpp Added a warning when referencing an if's condition variable in the 2008-12-10 23:01:14 +00:00
wchar_t.cpp