From 3fd1dfa22f2642c627ad2139b048b99fc5507ef3 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 30 Jan 2008 06:08:20 +0000 Subject: [PATCH] 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 --- include/clang/AST/Expr.h | 5 +++-- 1 file 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 { -- 2.50.1