Skip to content

Commit 1f6dd4f

Browse files
dmcppcheckclaude
andcommitted
Add regression tests for macro expansion
C11 6.10.3.5 examples 3, 4, 5 and 7, the C23 __VA_OPT__ examples and invalid ## pastes. Known bugs are tested with the new TODO_ASSERT_EQUALS. Tests for Token::macro, the locations of expanded tokens and the macro usage, which are used by cppcheck. A new helper expandedTokens() writes each output token with its macro name and location; the tokenMacro tests use it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent bccf566 commit 1f6dd4f

1 file changed

Lines changed: 404 additions & 62 deletions

File tree

0 commit comments

Comments
 (0)