]> granicus.if.org Git - clang/commit
Switch the C++ new expression over to InitializationSequence, rather
authorDouglas Gregor <dgregor@apple.com>
Wed, 16 Dec 2009 01:38:02 +0000 (01:38 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 16 Dec 2009 01:38:02 +0000 (01:38 +0000)
commit99a2e600f9e2e51d3ce10fb6f27191677ac65b2a
treea05a7d4b05f0502b19c86e4d157144b750c19902
parent2514a309204341798f96912ce7a90841bea59727
Switch the C++ new expression over to InitializationSequence, rather
than using its own partial implementation of initialization.

Switched CheckInitializerTypes over to
InitializedEntity/InitializationKind, to help move us closer to
InitializationSequence.

Added InitializedEntity::getName() to retrieve the name of the entity,
for diagnostics that care about such things.

Implemented support for default initialization in
InitializationSequence.

Clean up the determination of the "source expressions" for an
initialization sequence in InitializationSequence::Perform.

Taught CXXConstructExpr to store more location information.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91492 91177308-0d34-0410-b5e6-96231b3b80d8
14 files changed:
include/clang/AST/ExprCXX.h
include/clang/Basic/DiagnosticSemaKinds.td
lib/AST/ExprCXX.cpp
lib/Frontend/PCHReaderStmt.cpp
lib/Frontend/PCHWriterStmt.cpp
lib/Sema/Sema.h
lib/Sema/SemaDecl.cpp
lib/Sema/SemaDeclCXX.cpp
lib/Sema/SemaExpr.cpp
lib/Sema/SemaExprCXX.cpp
lib/Sema/SemaInit.cpp
lib/Sema/SemaInit.h
test/SemaCXX/new-delete.cpp
test/SemaTemplate/instantiate-expr-4.cpp