diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-12-19 03:01:41 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-12-19 03:01:41 +0000 |
commit | a4b592a7d5892001b53f51fe936c77d340e6df38 (patch) | |
tree | ed409ff8cc553a6b1fba5db61af72bbefc8e0c8d /clang/lib/Sema/SemaInit.h | |
parent | 04cc307eddae4681709cb4f019e5f9363e0506c3 (diff) | |
download | bcm5719-llvm-a4b592a7d5892001b53f51fe936c77d340e6df38.tar.gz bcm5719-llvm-a4b592a7d5892001b53f51fe936c77d340e6df38.zip |
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.
llvm-svn: 91750
Diffstat (limited to 'clang/lib/Sema/SemaInit.h')
-rw-r--r-- | clang/lib/Sema/SemaInit.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaInit.h b/clang/lib/Sema/SemaInit.h index c42badd3f8b..1987ad07340 100644 --- a/clang/lib/Sema/SemaInit.h +++ b/clang/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 { |