Skip to main content
The C++ extractor maps tree-sitter C++ CST nodes to canonical concepts. Class and namespace names come from the standard name field; function names are recovered through the declarator chain.

Detected concepts

Example

Renaming a method:
old.cpp
new.cpp
Running differens old.cpp new.cpp:

Example: change the body

Keep the declaration name and change what it does:
The report groups the value edit under its containing declaration. Use --format=json to inspect the underlying action and context, or --format=llm for a compact report with source locations.

Known limitations

  • Preprocessor macros are tokens, not structure; conditional compilation does not expand before diffing.
  • Templates are diffed as written. The extractor does not expand them or compare compiler-generated instantiations.