Skip to content
Tech News
← Back to articles

Show HN: Anyone interested in a tool helps to explore C++ ASTs

read original get C AST Explorer Tool → more articles
Why This Matters

ACAV (Aurora Clang AST Viewer) is a powerful visualization tool that simplifies exploring C, C++, and Objective-C ASTs, making it easier for developers, researchers, and students to understand complex program structures. Its ability to navigate between source code and AST nodes enhances debugging, learning, and tool development, addressing a significant gap in Clang's front-end capabilities.

Key Takeaways

ACAV (Aurora Clang AST Viewer) is an interactive Abstract Syntax Tree (AST) visualization tool for C, C++, and Objective-C, built with Clang and Qt. Given a JSON compilation database such as compile_commands.json, ACAV lets you open a real project, inspect the AST for a translation unit, and move directly between source code and AST nodes.

Screenshot: ACAV displaying the file explorer, source-code panel, AST tree view, declaration-context panels, and log panel.

Project Links

At a Glance

With a valid compilation database, ACAV lets you:

inspect the AST for a translation unit in a navigable tree,

move in both directions between source locations and AST nodes,

view declaration context while exploring program structure,

search both source text and AST nodes, and

reuse dependency and AST-cache artifacts across sessions.

... continue reading