aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaInit.h
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-12-19 03:01:41 +0000
committerDouglas Gregor <dgregor@apple.com>2009-12-19 03:01:41 +0000
commit7abfbdbc97ad8e7f340789f751df1e32b10118b4 (patch)
treec98c3dd47e10bceea032ec5fb2b44306f109dacd /lib/Sema/SemaInit.h
parent29f1a6070ac35fcbea9241c843df7f3f7c5c3228 (diff)
Switch more of Sema::CheckInitializerTypes over to
InitializationSequence. Specially, switch initialization of a C++ class type (either copy- or direct-initialization). Also, make sure that we create an elidable copy-construction when performing copy initialization of a C++ class variable. Fixes PR5826. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91750 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaInit.h')
-rw-r--r--lib/Sema/SemaInit.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/Sema/SemaInit.h b/lib/Sema/SemaInit.h
index c42badd3f8..1987ad0734 100644
--- a/lib/Sema/SemaInit.h
+++ b/lib/Sema/SemaInit.h
@@ -195,7 +195,11 @@ public:
/// \brief Retrieve the name of the entity being initialized.
DeclarationName getName() const;
-
+
+ /// \brief Retrieve the variable, parameter, or field being
+ /// initialized.
+ DeclaratorDecl *getDecl() const;
+
/// \brief Determine the location of the 'return' keyword when initializing
/// the result of a function call.
SourceLocation getReturnLoc() const {