| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
incomplete type. Fixes PR6911.
llvm-svn: 102473
|
|
|
|
|
|
| |
visible. Fixes the remaining two failures in Boost.ScopeExit.
llvm-svn: 102466
|
|
|
|
| |
llvm-svn: 102465
|
|
|
|
|
|
|
|
|
| |
function types.
This could potentially have unexpected side-effects, so look here if there are
new regressions.
llvm-svn: 102464
|
|
|
|
|
|
|
|
|
|
|
| |
keep track of whether we need to zero-initialize storage prior to
calling its constructor. Previously, we were only tracking this when
implicitly constructing the object (a CXXConstructExpr).
Fixes Boost's value-initialization tests, which means that the
Boost.Config library now passes all of its tests.
llvm-svn: 102461
|
|
|
|
| |
llvm-svn: 102459
|
|
|
|
|
|
|
|
|
|
| |
we were relying on checking for abstract class types when an array
type was actually used to declare a variable, parameter, etc. However,
we need to check when the construct the array for, e.g., SFINAE
purposes (see DR337). Fixes problems with Boost's is_abstract type
trait.
llvm-svn: 102452
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
UnresolvedLookupExpr and UnresolvedMemberExpr by substituting the
naming class we computed when building the expression in the
template...
... which we didn't always do correctly. Teach
UnresolvedMemberExpr::getNamingClass() all about the new
representation of injected-class-names in templates, so that it can
return a naming class that is the current instantiation.
Also, when decomposing a template-id into its template name and its
arguments, be sure to set the naming class on the LookupResult
structure.
Fixes PR6947 the right way.
llvm-svn: 102448
|
|
|
|
| |
llvm-svn: 102447
|
|
|
|
|
|
|
| |
from AST, consider ivar array of objects
(per Doug's comment).
llvm-svn: 102446
|
|
|
|
| |
llvm-svn: 102445
|
|
|
|
|
|
|
| |
tag of the same name, compare the lookup contexts rather than the
actual contexts. Fixes PR6923.
llvm-svn: 102437
|
|
|
|
|
|
| |
variables. Fixes PR6948.
llvm-svn: 102436
|
|
|
|
|
|
| |
mysterious Elrood on IRC.
llvm-svn: 102435
|
|
|
|
|
|
|
| |
expressions, be sure to set the naming class of the LookupResult
structure. Fixes PR6947.
llvm-svn: 102434
|
|
|
|
| |
llvm-svn: 102432
|
|
|
|
| |
llvm-svn: 102431
|
|
|
|
|
|
|
|
|
| |
This works around stack corruption / crashes resulting from PR6944, and also
works around people who expect 'what works on my machine' to work everywhere
(GCC crashes in a number of cases on SPARC that should now work correctly with
clang).
llvm-svn: 102430
|
|
|
|
| |
llvm-svn: 102429
|
|
|
|
| |
llvm-svn: 102420
|
|
|
|
|
|
| |
with a qualifier referencing a different type.
llvm-svn: 102409
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
of a class template or class template partial specialization. That is to
say, in
template <class T> class A { ... };
or
template <class T> class B<const T*> { ... };
make 'A<T>' and 'B<const T*>' sugar for the corresponding InjectedClassNameType
when written inside the appropriate context. This allows us to track the
current instantiation appropriately even inside AST routines. It also allows
us to compute a DeclContext for a type much more efficiently, at some extra
cost every time we write a template specialization (which can be optimized,
but I've left it simple in this patch).
llvm-svn: 102407
|
|
|
|
|
|
| |
constructors or destructors, not used yet.
llvm-svn: 102403
|
|
|
|
| |
llvm-svn: 102398
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
by using TypeSourceInfo, cleaning up the representation
somewhat. Teach getTypeOperand() to strip references and
cv-qualifiers, providing the semantic view of the type without
requiring any extra storage (the unmodified type remains within the
TypeSourceInfo). This fixes a bug found by Boost's call_traits test.
Finally, clean up semantic analysis, by splitting the ActOnCXXTypeid
routine into ActOnCXXTypeId (the parser action) and two BuildCXXTypeId
functions, which perform the semantic analysis for typeid(type) and
typeid(expression), respectively. We now perform less work at template
instantiation time (we don't look for std::type_info again) and can
give better diagnostics.
llvm-svn: 102393
|
|
|
|
|
|
|
|
| |
.S files. "# 123" is passed through as-is, not treated as a line
marker in this mode. No testcase, because it would be nasty and isn't
worth it.
llvm-svn: 102391
|
|
|
|
| |
llvm-svn: 102390
|
|
|
|
| |
llvm-svn: 102388
|
|
|
|
|
|
|
|
| |
thing. Audit all uses of Type::isStructure(), changing those calls to
isStructureOrClassType() as needed (which is alsmost
everywhere). Fixes the remaining failure in Boost.Utility/Swap.
llvm-svn: 102386
|
|
|
|
|
|
| |
on a method declaration (radar 7822196).
llvm-svn: 102383
|
|
|
|
|
|
|
| |
Objective-C++. This is the last bit of (non-blocks-related) template
instantiation logic for Objective-C++. Yay!
llvm-svn: 102382
|
|
|
|
| |
llvm-svn: 102379
|
|
|
|
|
|
| |
mode.
llvm-svn: 102377
|
|
|
|
|
|
|
|
| |
references and isa expressions. Also, test template instantiation of
unresolved member references to Objective-C ivar references and isa
expressions.
llvm-svn: 102374
|
|
|
|
| |
llvm-svn: 102369
|
|
|
|
| |
llvm-svn: 102357
|
|
|
|
|
|
| |
statements. This is the last of the Objective-C statements.
llvm-svn: 102356
|
|
|
|
|
|
|
|
| |
function-parameter checking and splitting it into the normal
ActOn*/Build* pair in Sema. We now use VarDecl to represent the @catch
parameter rather than the ill-fitting ParmVarDecl.
llvm-svn: 102347
|
|
|
|
|
|
|
| |
@catch a VarDecl. The dynamic type is still a ParmVarDecl, but that
will change soon. No effective functionality change.
llvm-svn: 102341
|
|
|
|
|
|
| |
on that type. Fixes several problems in Boost.Interprocess.
llvm-svn: 102339
|
|
|
|
| |
llvm-svn: 102332
|
|
|
|
|
|
|
|
| |
using declaration, look at its underlying declaration to determine the
lookup result kind (e.g., overloaded, unresolved). Fixes at least one
issue in Boost.Bimap.
llvm-svn: 102317
|
|
|
|
|
|
|
| |
member expression (p-> or x.), by showing the type we looked into and
what we did actually find.
llvm-svn: 102315
|
|
|
|
|
|
|
|
|
| |
- Fix some places that had the alignment hard coded.
- Use ABI type alignment, not preferred type alignment -- neither of this is exactly right, as we really want the C type alignment as required by the runtime, but the ABI alignment is a more correct choice.
This should be equivalent for x86_64, but fixes the alignment for ARM.
llvm-svn: 102314
|
|
|
|
| |
llvm-svn: 102313
|
|
|
|
|
|
| |
fixes Clang to correctly emit the "CorrectedSynthesize" bit when using the non-fragile ABI.
llvm-svn: 102312
|
|
|
|
|
|
| |
through using declarations. Fixes ~18 tests in Boost.Fusion.
llvm-svn: 102311
|
|
|
|
|
|
| |
with "make install". Patch by Michael Forney!
llvm-svn: 102299
|
|
|
|
| |
llvm-svn: 102293
|
|
|
|
| |
llvm-svn: 102292
|