aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-01-30 06:08:20 +0000
committerChris Lattner <sabre@nondot.org>2008-01-30 06:08:20 +0000
commit3fd1dfa22f2642c627ad2139b048b99fc5507ef3 (patch)
tree1a7d691de2989943ad5beafa34ec52843afbc306
parent196ef51bc4d008ec1c69851fb3b0f8d036065931 (diff)
Eli points out this can only happen for scalar elements.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46550 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/clang/AST/Expr.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/clang/AST/Expr.h b/include/clang/AST/Expr.h
index 7134d1c0f2..bdd5da3e40 100644
--- a/include/clang/AST/Expr.h
+++ b/include/clang/AST/Expr.h
@@ -1218,8 +1218,9 @@ public:
/// 2. Initializers may have excess initializers which are to be ignored by the
/// compiler. For example:
/// int x[1] = { 1, 2 };
-/// 3. Redundant InitListExprs may be present. These always have a single
-/// element whose type is the same as the InitListExpr.
+/// 3. Redundant InitListExprs may be present around scalar elements. These
+/// always have a single element whose type is the same as the InitListExpr.
+/// this can only happen for Type::isScalarType() types.
/// int x = { 1 }; int y[2] = { {1}, {2} };
///
class InitListExpr : public Expr {