Skip to main content
The C extractor reads function and variable names through the declarator chain, following nested pointer and parenthesized declarators to the identifier. This keeps parameter lists and pointer syntax out of declaration names.

Detected concepts

Example

Renaming a function:
old.c
new.c
Running differens old.c new.c:

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: a macro that generates code does not expand before diffing.
  • Prototypes and definitions are matched structurally. Cross-file prototype moves depend on a supported grammar, candidate kind, and matching evidence; header extensions do not currently have a linked grammar.