Repository navigation
Commit 58c9a43
Add HideSetExpander behind DUI::hideSetExpansion
Macro expansion with hide sets (Prosser's algorithm), selected with
DUI::hideSetExpansion and a command line option in main.cpp. It handles
function-like and object-like macros, #, ##, __VA_OPT__ and defined in a
replacement list. The old expansion is still the default.
test.cpp runs the test suite twice, once with each expander, so the new
one is tested from the start. Cases the new expander does not handle yet
are skipped with HIDESET_EXPANSION_TODO, and cases where the old
expansion is wrong are marked TODO_OLD_EXPANSION_ASSERT_EQUALS.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>1 parent fdf4313 commit 58c9a43
4 files changed
Lines changed: 895 additions & 97 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
156 | 162 | | |
157 | 163 | | |
158 | 164 | | |
| |||
187 | 193 | | |
188 | 194 | | |
189 | 195 | | |
| 196 | + | |
190 | 197 | | |
191 | 198 | | |
192 | 199 | | |
| |||
0 commit comments