aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2017-03-07 13:27:43 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2017-03-07 12:48:12 +0000
commit39dc2f6072aa889625c9c3d910b9520a64a297b8 (patch)
tree0c66452d0d93ba4eb67e86336784e9ad12e2dfa1
parentb66afd11abb97a8d75417012174f7edd36147588 (diff)
MemberModelItem: Improve debug output
Add static/mutable, etc fields. Change-Id: I02f547a54ecb709484fc81a452e9606d4f16d3ba Reviewed-by: Christian Tismer <tismer@stackless.com>
-rw-r--r--ApiExtractor/parser/codemodel.cpp19
1 files changed, 18 insertions, 1 deletions
diff --git a/ApiExtractor/parser/codemodel.cpp b/ApiExtractor/parser/codemodel.cpp
index a1142fb0f..df1a5fbf8 100644
--- a/ApiExtractor/parser/codemodel.cpp
+++ b/ApiExtractor/parser/codemodel.cpp
@@ -1198,7 +1198,24 @@ void _MemberModelItem::formatDebug(QDebug &d) const
d << ", private";
break;
}
- d << ", type=" << m_type;
+ d << ", type=";
+ if (m_isConstant)
+ d << "const ";
+ if (m_isVolatile)
+ d << "volatile ";
+ if (m_isStatic)
+ d << "static ";
+ if (m_isAuto)
+ d << "auto ";
+ if (m_isFriend)
+ d << "friend ";
+ if (m_isRegister)
+ d << "register ";
+ if (m_isExtern)
+ d << "extern ";
+ if (m_isMutable)
+ d << "mutable ";
+ d << m_type;
formatScopeList(d, ", templateParameters", m_templateParameters);
}
#endif // !QT_NO_DEBUG_STREAM