Welcome to AUTOSAR Call Tree Analyzer’s Documentation
Getting Started
API Reference
Indices and tables
About
AUTOSAR Call Tree Analyzer is a Python tool that analyzes C/AUTOSAR codebases and generates function call trees with Mermaid sequence diagrams or IBM Rhapsody XMI output.
Key Features
Clang-based Parser: Production-grade C parsing using libclang for maximum accuracy
AUTOSAR Support: Built-in understanding of AUTOSAR patterns and macros
Multiple Output Formats: Generate Mermaid diagrams, Rhapsody XMI, or text-based call trees
Interactive Analysis: Visualize function call relationships with sequence diagrams
Cache Support: Fast incremental analysis with intelligent caching
Module Mapping: Organize functions by software modules
Quick Example
# Install the tool
pip install autosar-calltree
# Analyze your codebase
calltree -i /path/to/source -s main_function -o call_tree.md
# List all functions
calltree -l -i /path/to/source
Note
This documentation covers version 0.12.0. For other versions, use the version switcher in the bottom-left corner.
Getting Help
Documentation: You’re reading it!
GitHub Issues: https://github.com/melodypapa/autosar_calltree/issues
Source Code: https://github.com/melodypapa/autosar_calltree
License
This project is licensed under the MIT License - see the reference/license for details.