wobakj / callcallgraph

Generates .dot call graphs between functions/files/folders from cscope.out

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Call Call Graph

A command line utility producing a call graph on function/file/folder level from a cscope.out file. Based on cscope. Previous work is from solomonhuang. Everything is just hacked together.

Setup

  • install cscope sudo apt install cscope
  • if you want to generate an image from the .dot output, install graphviz sudo apt install graphviz
  • create a virtual environment
  • install the requirements

Usage

  • use cscope to create a cscope.out file or adapt and use folder_to_cscope.sh <path-to-sources> to collect files
  • activate the venv
  • execute cscope_to_view.sh <call|file|folder>

About

Generates .dot call graphs between functions/files/folders from cscope.out


Languages

Language:Python 97.6%Language:Shell 2.4%