summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaInit.h
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2010-01-23 05:47:27 +0000
committerAnders Carlsson <andersca@mac.com>2010-01-23 05:47:27 +0000
commit8e01dcf6f64f1ce2ba1eabab9803acf27cd45944 (patch)
treeba594551ca593179bbca43259f5308d32535b3e4 /clang/lib/Sema/SemaInit.h
parent82b86b0fce29dc32992a77a2bdef03739a8231ea (diff)
downloadbcm5719-llvm-8e01dcf6f64f1ce2ba1eabab9803acf27cd45944.tar.gz
bcm5719-llvm-8e01dcf6f64f1ce2ba1eabab9803acf27cd45944.zip
Fix the EntityKind order so that all entity kinds that can be copied (using copy constructors) come first. Also, fix a bug where EK_New was left out of the err_init_conversion_failed diagnostic (It is now reported as 'new value'). Please review Doug :)
llvm-svn: 94289
Diffstat (limited to 'clang/lib/Sema/SemaInit.h')
-rw-r--r--clang/lib/Sema/SemaInit.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/clang/lib/Sema/SemaInit.h b/clang/lib/Sema/SemaInit.h
index 5c305545b09..d7d3756020f 100644
--- a/clang/lib/Sema/SemaInit.h
+++ b/clang/lib/Sema/SemaInit.h
@@ -47,6 +47,11 @@ public:
/// \brief The entity being initialized is an exception object that
/// is being thrown.
EK_Exception,
+ /// \brief The entity being initialized is a non-static data member
+ /// subobject.
+ EK_Member,
+ /// \brief The entity being initialized is an element of an array.
+ EK_ArrayElement,
/// \brief The entity being initialized is an object (or array of
/// objects) allocated via new.
EK_New,
@@ -54,11 +59,6 @@ public:
EK_Temporary,
/// \brief The entity being initialized is a base member subobject.
EK_Base,
- /// \brief The entity being initialized is a non-static data member
- /// subobject.
- EK_Member,
- /// \brief The entity being initialized is an element of an array.
- EK_ArrayElement,
/// \brief The entity being initialized is an element of a vector.
/// or vector.
EK_VectorElement
OpenPOWER on IntegriCloud