llvm-project/clang/lib/Sema
Douglas Gregor ad2956c25d Cope with an amusingly little anomaly with dependent types and
incomplete array initialization, where we have the following in a
template:

  int a[] = { 1, 2, something-value-dependent };
  // ...
  sizeof(a);

The type of "a" appears to be a non-dependent IncompleteArrayType, but
treating it as such makes the sizeof(a) fail at template definition
time. We now correctly handle this by morphing the IncompleteArrayType
into a DependentSizedArrayType with a NULL expression, indicating that
its size has no corresponding expression (and, therefore, the type is
distinct from others).

llvm-svn: 89366
2009-11-19 18:03:26 +00:00
..
CMakeLists.txt Test exception spec compatibility on return type and parameters. 2009-10-11 09:03:14 +00:00
CXXFieldCollector.h Unifies the name-lookup mechanisms used in various parts of the AST 2008-12-11 16:49:14 +00:00
CodeCompleteConsumer.cpp Improve code-completion results for the flags in an @property 2009-11-19 00:01:57 +00:00
IdentifierResolver.cpp Remove tabs, and whitespace cleanups. 2009-09-09 15:08:12 +00:00
IdentifierResolver.h Remove tabs, and whitespace cleanups. 2009-09-09 15:08:12 +00:00
JumpDiagnostics.cpp Silence some warnings produced by Clang, and add a missing header 2009-11-17 06:14:37 +00:00
Lookup.h Overhaul previous-declaration and overload checking to work on lookup results 2009-11-18 22:49:29 +00:00
Makefile Installation of Clang libraries and headers, from Axel Naumann! 2009-10-08 22:15:31 +00:00
ParseAST.cpp Fixes a typo, reported by Doug. 2009-11-17 17:15:16 +00:00
Sema.cpp Do not enter forward class 'Protocol' in decl context. 2009-11-18 23:15:37 +00:00
Sema.h Objective-C code completion within properties after "setter = " or 2009-11-19 07:41:15 +00:00
SemaAccess.cpp Refactor the code that walks a C++ inheritance hierarchy, searching 2009-10-06 17:59:45 +00:00
SemaAttr.cpp Split LookupResult into its own header. 2009-11-18 07:57:50 +00:00
SemaCXXCast.cpp CastsAwayConstness shouldn't care if member pointers point into different classes. Fixes PR5545. 2009-11-18 18:10:53 +00:00
SemaCXXScopeSpec.cpp Split LookupResult into its own header. 2009-11-18 07:57:50 +00:00
SemaChecking.cpp Adjust format attribute index for implicit object arguments. Fixes PR5521. 2009-11-17 18:02:24 +00:00
SemaCodeComplete.cpp Objective-C code completion within properties after "setter = " or 2009-11-19 07:41:15 +00:00
SemaDecl.cpp Overhaul previous-declaration and overload checking to work on lookup results 2009-11-18 22:49:29 +00:00
SemaDeclAttr.cpp Start support of weak_import objective-c classes. 2009-11-17 19:08:08 +00:00
SemaDeclCXX.cpp Overhaul previous-declaration and overload checking to work on lookup results 2009-11-18 22:49:29 +00:00
SemaDeclObjC.cpp Don't warn if objc method param types in declaration and 2009-11-18 18:56:09 +00:00
SemaExceptionSpec.cpp First part of changes to eliminate problems with cv-qualifiers and 2009-11-16 21:35:15 +00:00
SemaExpr.cpp Split LookupResult into its own header. 2009-11-18 07:57:50 +00:00
SemaExprCXX.cpp ignore parens surounding the type when diagnosing 2009-11-18 22:16:17 +00:00
SemaExprObjC.cpp Remove default argument for ImpCastExprToType. Add appropriate argument 2009-10-20 08:27:19 +00:00
SemaInit.cpp Cope with an amusingly little anomaly with dependent types and 2009-11-19 18:03:26 +00:00
SemaLookup.cpp Overhaul previous-declaration and overload checking to work on lookup results 2009-11-18 22:49:29 +00:00
SemaOverload.cpp Do overload resolution for compound assignment even if only the RHS is overloadable. Compound assignment may be overloaded as a non-member, and anyway the overload resolution is necessary because it triggers implicit (used-defined) conversions. Fixes PR5512, but not really the deeper issues lurking. Those are standard defects. 2009-11-18 23:10:33 +00:00
SemaOverload.h This patch implements Sema for clause 13.3.3.1p4. 2009-11-06 00:23:08 +00:00
SemaStmt.cpp First part of changes to eliminate problems with cv-qualifiers and 2009-11-16 21:35:15 +00:00
SemaTemplate.cpp Overhaul previous-declaration and overload checking to work on lookup results 2009-11-18 22:49:29 +00:00
SemaTemplate.h Implement partial ordering of function template specializations 2009-09-14 18:39:43 +00:00
SemaTemplateDeduction.cpp First part of changes to eliminate problems with cv-qualifiers and 2009-11-16 21:35:15 +00:00
SemaTemplateInstantiate.cpp Instead of hanging a using declaration's target decls directly off the using 2009-11-17 05:59:44 +00:00
SemaTemplateInstantiateDecl.cpp Overhaul previous-declaration and overload checking to work on lookup results 2009-11-18 22:49:29 +00:00
SemaType.cpp Make sure that Type::getAs<ArrayType>() (or Type::getAs<subclass of 2009-11-09 22:08:55 +00:00
TreeTransform.h The sub-statement of a case statement is not an unevaluated context! 2009-11-19 03:14:00 +00:00