Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Aufrufe eines C++-Programms
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) Diskussionsforum
View previous topic :: View next topic  
Author Message
manuels
Advocate
Advocate


Joined: 22 Nov 2003
Posts: 2146
Location: Europe

PostPosted: Fri Feb 20, 2009 12:19 pm    Post subject: Aufrufe eines C++-Programms Reply with quote

Hallo zusammen,

ich suche ein Programm, das mir auflistet welche C++-Routinen welche anderen Funktionen aufruft.
Soucenav von Redhead ist ganz schön, da kann man aber das ganze nicht ausdrucken.
Doc++ funktioniert komischerweise nicht mit meinem Source Code - da wird nur eine leere Dokumentation ausgespuckt.
_________________
Build your own live cd with catalyst 2.0!
Back to top
View user's profile Send private message
ixo
Guru
Guru


Joined: 09 Jul 2005
Posts: 375

PostPosted: Fri Feb 20, 2009 4:30 pm    Post subject: Reply with quote

Das ist bei mir ja alles schon sehr lange her - aber müsste nicht ctags so etwas können?

Gruß, ixo
Back to top
View user's profile Send private message
manuels
Advocate
Advocate


Joined: 22 Nov 2003
Posts: 2146
Location: Europe

PostPosted: Fri Feb 20, 2009 4:44 pm    Post subject: Reply with quote

Jo, kann es. Danke.

Allerdings gibt mir die Option
Quote:
-x Print a tabular, human-readable cross reference (xref) file to standard output instead of generating a tag file.

das hier aus:
Code:
ABS              macro        36 impl_geometry.hpp #define ABS(x) abs(x)
A_div            member      279 gaias.hpp        HBMat<T> A_e, A_mm, A_p, A_grad, A_div, A_div_lap; // _e = energy matrix, _mm = momentummatrix, _p = pressure matrix
A_div_lap        member      279 gaias.hpp        HBMat<T> A_e, A_mm, A_p, A_grad, A_div, A_div_lap; // _e = energy matrix, _mm = momentummatrix, _p = pressure matrix
A_e              member      279 gaias.hpp        HBMat<T> A_e, A_mm, A_p, A_grad, A_div, A_div_lap; // _e = energy matrix, _mm = momentummatrix, _p = pressure matrix
A_grad           member      279 gaias.hpp        HBMat<T> A_e, A_mm, A_p, A_grad, A_div, A_div_lap; // _e = energy matrix, _mm = momentummatrix, _p = pressure matrix
A_mm             member      279 gaias.hpp        HBMat<T> A_e, A_mm, A_p, A_grad, A_div, A_div_lap; // _e = energy matrix, _mm = momentummatrix, _p = pressure matrix
A_p              member      279 gaias.hpp        HBMat<T> A_e, A_mm, A_p, A_grad, A_div, A_div_lap; // _e = energy matrix, _mm = momentummatrix, _p = pressure matrix
Angle            function    192 impl_geometry.hpp T Angle(Point<T> p1, Point<T> p2, Point<T> p3)
Angle            function    206 impl_geometry.hpp T Angle(Point<T> v, Point<T> u)
Ap_mm            member      275 gaias.hpp        valarray<T> Ap_p, Ap_mm; // central weights for pressure correction
Ap_p             member      275 gaias.hpp        valarray<T> Ap_p, Ap_mm; // central weights for pressure correction
Ap_pos           member       15 impl_mat_setup.hpp vector<int> Ap_pos;
human-readable find ich das nicht gerade.
Mir schwebt eher sowas vor:
Code:

mail() ruft auf:
 - funktion1() (line 12)
 - funktion2() (line 24)

funktion 1() ruft auf:
 - funktion11() (line 123)


Gibts da irgendwelche switches für ctags die ich übersehe?
_________________
Build your own live cd with catalyst 2.0!
Back to top
View user's profile Send private message
ixo
Guru
Guru


Joined: 09 Jul 2005
Posts: 375

PostPosted: Sat Feb 21, 2009 9:11 am    Post subject: Reply with quote

Hi manuels,

tut mit leid, keine Ahnung. Ich habe schon seit ~10 Jahren nicht mehr in C++ programmiert :oops:

Gruß, ixo
Back to top
View user's profile Send private message
Necoro
Veteran
Veteran


Joined: 18 Dec 2005
Posts: 1912
Location: Germany

PostPosted: Sat Feb 21, 2009 3:21 pm    Post subject: Reply with quote

Hmm ... nur ein wenig raten... für C macht das doch eigentlich cscope, oder? - Kann das das vllt auch für C++ ?
_________________
Inter Deum Et Diabolum Semper Musica Est.
Back to top
View user's profile Send private message
manuels
Advocate
Advocate


Joined: 22 Nov 2003
Posts: 2146
Location: Europe

PostPosted: Sat Feb 21, 2009 4:06 pm    Post subject: Reply with quote

Jo, hab es gerade mal ausprobiert.
Zum interaktiv nutzen ist das sehr schön - aber wie bring ich cscope dazu etwas "druckbares" auszuspucken?
_________________
Build your own live cd with catalyst 2.0!
Back to top
View user's profile Send private message
Yamakuzure
Advocate
Advocate


Joined: 21 Jun 2006
Posts: 2305
Location: Adendorf, Germany

PostPosted: Tue Feb 24, 2009 12:26 pm    Post subject: Reply with quote

Tipp: doxygen!

Baut dir hübsche Ansichten wer was aufruft, wer woher und wovon aufgerufen wird, abhängt, etc.
Achja: Wahlweise als UML oder auch alternativer Ansicht.

Funktioniert für jede Menge Sprachen, und baut wahlweise (dynamisches)HTML, RTF, LaTeX, Man Pages und/oder XML. Die HTML Seiten können auch zu .chm kompiliert werden.

(Emerge app-doc/doxygen *mit* qt3 USE-Flag, sonst bekommst du den Wizard nicht, und doxygen config dateien selberschreiben ist... naja... keine soooo gute idee.)
Code:
 ~ $ grep -E '^\s*[^#]\w+' ~/Arbeit/tools/otf2pdf/Doxyfile | wc -l
180

_________________
Edited 220,176 times by Yamakuzure
Back to top
View user's profile Send private message
manuels
Advocate
Advocate


Joined: 22 Nov 2003
Posts: 2146
Location: Europe

PostPosted: Tue Feb 24, 2009 8:51 pm    Post subject: Reply with quote

Danke, doxygen scheint den gescheitesten Output zu geben.
_________________
Build your own live cd with catalyst 2.0!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) Diskussionsforum All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum