From: Chris Lattner Date: Wed, 30 Jan 2008 06:08:20 +0000 (+0000) Subject: Eli points out this can only happen for scalar elements. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3fd1dfa22f2642c627ad2139b048b99fc5507ef3;p=clang 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 --- 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 {