Featured post
uml - Reverse Engineering C++ code using "Enterprise Architect" -
it again sort of "how properly" question. sorry if annoyed.
i've got understand ca 150 tlocs of c/c++ mixture. i've imported code in uml-tool "enterprise architect" , got messy chart. many structs , enums had anonymous names because of c-ish constructs: typedef struct/enum {...} mytype;
in second run i've converted c++ form: struct/enum mytype{...};
got bunch of unrelated structs. unfortunately, enterprise architect doesn't resolve typedefs. e.g. no relations between a, b , c recognized:
struct a; struct b; typedef *ptra; typedef list<b> blist; struct c{ ptra pa; blist lb; };
thanks throughout naming convention, able replace typedefs original type this:
struct c{ pa; b lb; };
now importing source-code in "enterprise architect" gave nice diagram relations. of cause, code doesn't compile, , not same. changes in code require annoying conversion making "pseudo" code understandable ea again. therefore questions:
- is there possibility teach ea recognizing original types?
- do other uml-tools recognize types (and create relations between them) more robust?
thank advice! valentin heinitz
i have enterprise architect, , invariably doing attempting on large code body use doxygen instead. generates both class , call graphs. use graphviz , "uml-style" class diagrams, , have reasonably code navigation , comprehension tool, flexible configuration add or exclude detail necessary.
- Get link
- X
- Other Apps
Comments
Post a Comment