From 39dc2f6072aa889625c9c3d910b9520a64a297b8 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Tue, 7 Mar 2017 13:27:43 +0100 Subject: MemberModelItem: Improve debug output Add static/mutable, etc fields. Change-Id: I02f547a54ecb709484fc81a452e9606d4f16d3ba Reviewed-by: Christian Tismer --- ApiExtractor/parser/codemodel.cpp | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/ApiExtractor/parser/codemodel.cpp b/ApiExtractor/parser/codemodel.cpp index a1142fb..df1a5fb 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 -- cgit v1.2.3