Bug 100338 - No array defined for class imported from C++
Summary: No array defined for class imported from C++
Status: RESOLVED FIXED
Alias: None
Product: umbrello
Classification: Applications
Component: general (show other bugs)
Version: 1.4
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Umbrello Development Group
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-26 23:11 UTC by David
Modified: 2016-09-20 10:34 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 2.20.80 (KDE Applications 16.11.80)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David 2005-02-26 23:11:00 UTC
Version:           1.4 (using KDE 3.3.2, compiled sources)
Compiler:          gcc version 3.4.3
OS:                Linux (i686) release 2.6.8-24-default

If I import a class with this definition :

class Myclass {

int MyArray[3];
}

MyArray variable is defined as an int, not as an array of int, in class diagram and in code (view code).
Comment 1 Oliver Kellogg 2005-02-27 18:49:14 UTC
Hotspot: umbrello/classparser/ast.h, DeclaratorAST::arrayDimensionList()
Comment 2 Ralf Habacker 2014-02-06 21:30:52 UTC
Git commit f616c572ad229f03ab1b3ce733cd876c6966ed5a by Ralf Habacker.
Committed on 22/01/2014 at 22:28.
Pushed by habacker into branch '100338'.

Import size of array types. May be switchable by import settings.

M  +1    -1    umbrello/codeimport/kdevcppparser/cpptree2uml.cpp

http://commits.kde.org/umbrello/f616c572ad229f03ab1b3ce733cd876c6966ed5a
Comment 3 Ralf Habacker 2014-02-06 21:30:52 UTC
Git commit 76d611be6d479588d378bc572c43885eb1a604bc by Ralf Habacker.
Committed on 22/01/2014 at 22:17.
Pushed by habacker into branch '100338'.

Import c++ class member array types.

This types are mapped to related function parameter array types.
Note: Fix of c++ generator may be required.
Possible enhancement is adding array size.

M  +2    -2    umbrello/codeimport/kdevcppparser/ast_utils.cpp
M  +5    -0    umbrello/codeimport/kdevcppparser/cpptree2uml.cpp

http://commits.kde.org/umbrello/76d611be6d479588d378bc572c43885eb1a604bc
Comment 4 Ralf Habacker 2014-12-29 19:28:42 UTC
branch 100338 has not been merged into master
Comment 5 Ralf Habacker 2016-09-20 10:28:03 UTC
Git commit c99a72821608069baf5625c2f6fd0024ea1fe279 by Ralf Habacker.
Committed on 20/09/2016 at 10:03.
Pushed by habacker into branch 'master'.

Import c++ class member array types.

This types are mapped to related function parameter array types.
FIXED-IN:2.20.80 (KDE Applications 16.11.80)

M  +5    -0    umbrello/codeimport/kdevcppparser/cpptree2uml.cpp

http://commits.kde.org/umbrello/c99a72821608069baf5625c2f6fd0024ea1fe279
Comment 6 Ralf Habacker 2016-09-20 10:28:03 UTC
Git commit ed217c453aba8d14cd666ff9eba8a4dca45477ce by Ralf Habacker.
Committed on 20/09/2016 at 10:27.
Pushed by habacker into branch 'master'.

Add support for array types to c++ generator.

M  +30   -2    umbrello/codegenerators/cpp/cppwriter.cpp

http://commits.kde.org/umbrello/ed217c453aba8d14cd666ff9eba8a4dca45477ce
Comment 7 Ralf Habacker 2016-09-20 10:34:44 UTC
Git commit f9f35fd62c83121b11978173cb53deb7d2d58338 by Ralf Habacker.
Committed on 20/09/2016 at 10:34.
Pushed by habacker into branch 'master'.

Compile fix.

M  +1    -1    umbrello/codegenerators/cpp/cppwriter.cpp

http://commits.kde.org/umbrello/f9f35fd62c83121b11978173cb53deb7d2d58338