]> granicus.if.org Git - clang/commitdiff
Eli points out this can only happen for scalar elements.
authorChris Lattner <sabre@nondot.org>
Wed, 30 Jan 2008 06:08:20 +0000 (06:08 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 30 Jan 2008 06:08:20 +0000 (06:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46550 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/Expr.h

index 7134d1c0f292667dc153939fca06614343a02835..bdd5da3e40ddf66e0400f25ff627d539e62793f0 100644 (file)
@@ -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 {