Sparx Systems Forum
Enterprise Architect => Uml Process => Topic started by: Qwe_EA on September 21, 2021, 05:13:56 pm
-
Hi,
Is there any capability for obtain flowchart (activity diagram) from source code c/c++ ?
Thanks.
-
No.
q.
-
Can it done by any third-party add-in ? (integrated in EA)
-
Who knows? I would guess also no.
q.
-
An IDE like Understand does it.
But I don't know if its output compatible with EA.
-
Generally it's pointless to create any "flow" from code. Read about the halting problem or just think what you are trying to do. SD (or any similar kind of "flow" description) needs to be done by a human (or try ChatGPT if you are desperate). Someone(/thing) needs to decide which are meaningful paths out of the endless number of possible ones.
q.
-
Not true.
Even a top-level flowchart will go a long in helping to understand the code.
Especially poorly documented legacy code.
I have used Understand quite effectively to review a big project in embedded C which did not have any kind of design documents and code which had almost no meaningful comments.
-
I was talking about an automat doing that which will not work. You are (very likely) talking about human created flows.
q.