or you can use another editor. For example, SourceInsight does a great job of creating real-time calls / called graphs in the editor.
For weekend programs: I found close testing of C code in the county . Visual Studio requires some manual work because Visual Studio has low compatibility with C99.
External tools (e.g. doxygen and CppDepends) are very useful if you can live with 2 constrainst:
- Not only call dependencies, but also dependencies on whether global variables are tracked
- dependencies are static
For static dependencies, consider the following example:
void foo(boolean b) { if (false == b) { bar1(); } else { bar2(); } }
Static tools then output both bar1 and bar2. The run-time call graph displays either bar1 or bar2 depending on the value of the parameter.
source share