Expand description
C Preprocessor simulation layer
This module provides a lightweight preprocessing layer that handles common C macros without requiring actual header files. Unlike a real preprocessor, this doesn’t expand macros textually but instead helps tree-sitter parse code that uses common macro patterns.
Key strategies:
- Macro recognition: Identify and annotate common macro patterns
- Attribute simulation: Convert attribute and similar to parseable form
- Kernel macro handling: Special support for Linux kernel macros
Structs§
- CPreprocessor
- C Preprocessor simulation for better parsing
- Macro
Info - Information about a recognized macro
Enums§
- Macro
Kind - Known macro patterns and their semantic meaning