[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: extragear/sdk/kdevplatform/language/duchain/types
From: Milian Wolff <mail () milianw ! de>
Date: 2010-04-15 18:28:39
Message-ID: 20100415182839.D2C79AC898 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1115244 by mwolff:
dimension of 0 indicates dimensionless array (e.g. int[])
this was already indicated in the doxygen for dimension() but not in setDimension() \
nor was it actually honoroed in the toString()
M +3 -0 arraytype.cpp
M +1 -0 arraytype.h
--- trunk/extragear/sdk/kdevplatform/language/duchain/types/arraytype.cpp \
#1115243:1115244 @@ -88,6 +88,9 @@
QString ArrayType::toString() const
{
+ if (d_func()->m_dimension == 0) {
+ return QString("%1[]").arg(elementType() ? elementType()->toString() : \
QString("<notype>")); + }
return QString("%1[%2]").arg(elementType() ? elementType()->toString() : \
QString("<notype>")).arg(d_func()->m_dimension); }
--- trunk/extragear/sdk/kdevplatform/language/duchain/types/arraytype.h \
#1115243:1115244 @@ -55,6 +55,7 @@
/**
* Set this array type's dimension.
+ * If @p dimension is zero, the array is considered dimensionless (eg. int[]).
*
* \param dimension new dimension, set to zero for a dimensionless type (eg. \
int[])
*/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic