VS Code extension for reading HC32/CD32 DDL source files with many chip-specific conditional compilation branches.
Features
- Right-click a chip macro such as
HC32F451, then runFold Other Chips. - Click the status bar item
Chip: ALLto chooseALLor any chip macro detected in the current C/C++ file. - Non-matching
#if / #elif / #else / #endifbranches are folded only in the editor. File contents are not changed. - The selected chip macro is highlighted in the active editor.
UnFold All Chipsrestores all folded chip branches and clears the highlight.
Development
Open this directory in VS Code and press F5, or launch it from a terminal:
code --extensionDevelopmentPath .\hc32-chip-filter
Run parser tests:
npm test