summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalf Habacker <ralf.habacker@freenet.de>2014-01-22 22:17:25 (GMT)
committerRalf Habacker <ralf.habacker@freenet.de>2016-09-20 10:03:46 (GMT)
commitc99a72821608069baf5625c2f6fd0024ea1fe279 (patch)
treefc6c87643973718cfc8fddc10173cc4d19e44576
parent2fcaa1db7b286b91bf6160c4479b65de05592776 (diff)
Import c++ class member array types.
This types are mapped to related function parameter array types. BUG:100338 FIXED-IN:2.20.80 (KDE Applications 16.11.80)
-rw-r--r--umbrello/codeimport/kdevcppparser/cpptree2uml.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/umbrello/codeimport/kdevcppparser/cpptree2uml.cpp b/umbrello/codeimport/kdevcppparser/cpptree2uml.cpp
index 662f1ef..44000d9 100644
--- a/umbrello/codeimport/kdevcppparser/cpptree2uml.cpp
+++ b/umbrello/codeimport/kdevcppparser/cpptree2uml.cpp
@@ -632,6 +632,11 @@ QString CppTree2Uml::typeOfDeclaration(TypeSpecifierAST* typeSpec, DeclaratorAST
text += ptrOpList.at(i)->text();
}
+ QList<AST*> arrays = declarator->arrayDimensionList();
+ for(int i = 0; i < arrays.size(); ++i) {
+ text += arrays.at(i)->text().replace(QLatin1String(" "), QLatin1String(""));
+ }
+
return text;
}