preprocess_config
Load preprocessing configuration for conditional compilation in C/C++ projects with #ifdef blocks, Linux kernel, or Makefile builds. Supports .config, header defines, Makefile flags, JSON, and manual overrides.
Instructions
Load preprocessing config for conditional compilation.
Call this when analyzing C/C++ projects with #ifdef blocks, Linux kernel with Kconfig, or Makefile-based builds.
Supports:
Linux .config files
C header files with #define
Makefiles with CFLAGS -D
JSON files
Manual define overrides
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "preprocess_config"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| config_path | No | Path to config file (.config, .h, Makefile, .json) | |
| workspace_path | No | Target workspace (default: last configured) | |
| define_overrides | No | Extra defines {name: value} (e.g., {"WIFI_P2P": "y"}) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |