[cfe-commits] r46550 - /cfe/trunk/include/clang/AST/Expr.h
Chris Lattner
sabre at nondot.org
Tue Jan 29 22:08:20 PST 2008
Author: lattner
Date: Wed Jan 30 00:08:20 2008
New Revision: 46550
URL: http://llvm.org/viewvc/llvm-project?rev=46550&view=rev
Log:
Eli points out this can only happen for scalar elements.
Modified:
cfe/trunk/include/clang/AST/Expr.h
Modified: cfe/trunk/include/clang/AST/Expr.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/Expr.h?rev=46550&r1=46549&r2=46550&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/Expr.h (original)
+++ cfe/trunk/include/clang/AST/Expr.h Wed Jan 30 00:08:20 2008
@@ -1218,8 +1218,9 @@
/// 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 {
More information about the cfe-commits
mailing list