Title: Add regression tests for macro expansion · Issue #744 · cppcheck-opensource/simplecpp · GitHub
Open Graph Title: Add regression tests for macro expansion · Issue #744 · cppcheck-opensource/simplecpp
X Title: Add regression tests for macro expansion · Issue #744 · cppcheck-opensource/simplecpp
Description: Part of replacing the macro expansion (see #742). Before the macro expansion is refactored and replaced, its current behaviour needs better test coverage so that changes in later PRs can be checked against it. This PR only adds and adjus...
Open Graph Description: Part of replacing the macro expansion (see #742). Before the macro expansion is refactored and replaced, its current behaviour needs better test coverage so that changes in later PRs can be checked...
X Description: Part of replacing the macro expansion (see #742). Before the macro expansion is refactored and replaced, its current behaviour needs better test coverage so that changes in later PRs can be checked...
Opengraph URL: https://github.com/cppcheck-opensource/simplecpp/issues/744
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add regression tests for macro expansion","articleBody":"Part of replacing the macro expansion (see #742).\n\nBefore the macro expansion is refactored and replaced, its current behaviour needs better test coverage so that changes in later PRs can be checked against it. This PR only adds and adjusts tests. There are no changes in `simplecpp.cpp`.\n\n### Tests added\n- Examples 3, 4, 5 and 7 from C11 6.10.3.5.\n- The C23 `__VA_OPT__` examples.\n- Invalid `##` pastes.\n- `Token::macro`, the locations of expanded tokens, and the macro usage, which cppcheck uses. A new helper `expandedTokens()` writes each output token with its macro name and location, and the `tokenMacro` tests use it.\n\n","author":{"url":"https://github.com/danmar","@type":"Person","name":"danmar"},"datePublished":"2026-11-08T23:53:31Z","url":"https://github.com/cppcheck-opensource/simplecpp/issues/744"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:00101e07-f016-73b2-79fb-1ec5074afc3b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 83E6:3EA616:520F8:752E4:6AFC51F3 |
| html-safe-nonce | 44f8529be9826ef86e0da76bf2b554033464dd012012d67eb8c6a86c39a4ec0f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4M0U2OjNFQTYxNjo1MjBGODo3NTJFNDo2QUZDNTFGMyIsInZpc2l0b3JfaWQiOiI0Nzk1NjE1ODM4NTk5OTI2MjU5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 36d719d63043115dd9e0b66013ebaa9091a6cc179e85c36fbb717a767c561f11 |
| hovercard-subject-tag | issue:6277222495 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/cppcheck-opensource/simplecpp/744/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ed3b007d6049dd8ba5d5eeec47e125639316657141d793b8a29b013400839ca0/cppcheck-opensource/simplecpp/issues/744 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ed3b007d6049dd8ba5d5eeec47e125639316657141d793b8a29b013400839ca0/cppcheck-opensource/simplecpp/issues/744 |
| og:image:alt | Part of replacing the macro expansion (see #742). Before the macro expansion is refactored and replaced, its current behaviour needs better test coverage so that changes in later PRs can be checked... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | danmar |
| hostname | github.com |
| expected-hostname | github.com |
| None | b63557e0027d8014589e873df28328da74a4356701bb1a9eab49dbf012ba8fa6 |
| turbo-cache-control | no-preview |
| go-import | github.com/cppcheck-opensource/simplecpp git https://github.com/cppcheck-opensource/simplecpp.git |
| octolytics-dimension-user_id | 278097703 |
| octolytics-dimension-user_login | cppcheck-opensource |
| octolytics-dimension-repository_id | 33434464 |
| octolytics-dimension-repository_nwo | cppcheck-opensource/simplecpp |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 33434464 |
| octolytics-dimension-repository_network_root_nwo | cppcheck-opensource/simplecpp |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 0243355b0352c83733a042e0dfb3d75149b51261 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width