⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme

📁 linux 下的源代码分析阅读器 red hat公司新版
💻
字号:
This directory contains examples of small and useful tools that may be readilyproduced using the Source-Navigator database API.These examples are all written in the Tcl programming language.  Some examplesutilise the Tk toolkit.None of the examples require that Source-Navigator be running in order to usethem.  They work on the database directly using the database API provided by the "hyper" Tcl interpreter that comes with the SDK.  At the top of each script is a path to the interpreter that may need to be edited to locate theinterpreter on your system.Most of the examples require at least two command line arguments: the pathto the Source-Navigator project directory and the name of the project you'reinterested in.  More details can be found in the comment block at the top ofeach script file and each script is quite heavily documented.The current example tools are:call-freq.tkThis tool is used to plot the caller/callee frequencies for all functions andmethods in a project.  Functions appearing which have call many functions orall called by many functions may be ones which require coverage testing,additional documentation, optimisation, etc.Each function is represented as a point on a graph.  Clicking on a point opensa list box showing the name of the function and the caller/callee statistics.clobber.tclThis tool is used to show the names of all the functions/methods in a projectwhich modify a particular global variable.constants.tclThis tool identifies global variables in projects which are accessed as read-only objects.  There variables are therefore candidates for becoming constants.diamonds.tclThis tool can be used to locate multiple inheritence diamonds in the classhierarchy of a project written in an object-oriented language like C++.  Inhis book, Effective C++, Scott Myers points out the dangers associated withclass hierarchies in which two classes derived from the same superclass areinherited by a fourth derivedmost class.  Diamonds are universally consideredto be poor C++ programming practice and this tool can locate them in aSource-Navigator project.multicludes.tclThis tool reports on redundant header files.  By reducing #include complexityin a source file, compilation time can be reduced.  This tool locates simpleduplication, whereby foo.c may #include "bar.h" and then "bar.h" again later.By optionally specifying a -transitive command line argument to the script,a more thorough search through the header file graph is performed such that#includes of <stdio.h> may be detected as unnecessary if another #includedheader file includes it on your behalf.unimp-methods.tclThis tool locates class method definitions that are surplus to a class (ie.for which there is no method implementation).  This tool is not always accurate, however, in that it will also make the suggestion that methodsthat are defined inline are not implemented when they really are.unused.tclThis tool determines where unused global variables exist in a project.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -