Title: Incorrect expansion of functional macros · Issue #590 · cppcheck-opensource/simplecpp · GitHub
Open Graph Title: Incorrect expansion of functional macros · Issue #590 · cppcheck-opensource/simplecpp
X Title: Incorrect expansion of functional macros · Issue #590 · cppcheck-opensource/simplecpp
Description: Header: #define B A #define A x(B) #define C(s) s #define D(s) C(s) D(A) gcc output: x(A) simplecpp output: x ( x ( A ) ) I couldn't find an earlier commit where this isn't the output. I believe this issue is related to #549.
Open Graph Description: Header: #define B A #define A x(B) #define C(s) s #define D(s) C(s) D(A) gcc output: x(A) simplecpp output: x ( x ( A ) ) I couldn't find an earlier commit where this isn't the output. I believe th...
X Description: Header: #define B A #define A x(B) #define C(s) s #define D(s) C(s) D(A) gcc output: x(A) simplecpp output: x ( x ( A ) ) I couldn't find an earlier commit where this isn't the output. I be...
Opengraph URL: https://github.com/cppcheck-opensource/simplecpp/issues/590
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Incorrect expansion of functional macros","articleBody":"Header:\n```c\n#define B A\n#define A x(B)\n#define C(s) s\n#define D(s) C(s)\n\nD(A)\n```\n\ngcc output:\n```c\nx(A)\n```\n\nsimplecpp output:\n```c\nx ( x ( A ) )\n```\n\nI couldn't find an earlier commit where this isn't the output. I believe this issue is related to #549.","author":{"url":"https://github.com/ludviggunne","@type":"Person","name":"ludviggunne"},"datePublished":"2025-11-15T13:00:04.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/590/simplecpp/issues/590"}
| 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:c584f5a6-3bd2-51f9-139c-35ada2d8e559 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BBA2:2F8084:B3487:103F3E:6A4E24B7 |
| html-safe-nonce | 81b86590d7fba87fd7361e408daf449706e29aa4f241cb024061ef74fbf8a9dd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQkEyOjJGODA4NDpCMzQ4NzoxMDNGM0U6NkE0RTI0QjciLCJ2aXNpdG9yX2lkIjoiMTU5MzUxNTE1MTU4Mjk2Mjg3MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | fa3aee407ccd08681eb29476e352e30e867fb7ded18885ff07a9349f21c3f101 |
| hovercard-subject-tag | issue:3628679820 |
| 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/590/issue_layout |
| twitter:image | https://opengraph.githubassets.com/56596d0648f5c599cf14fe755f58759ffabb440c9af702e638fb4ff31bada007/cppcheck-opensource/simplecpp/issues/590 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/56596d0648f5c599cf14fe755f58759ffabb440c9af702e638fb4ff31bada007/cppcheck-opensource/simplecpp/issues/590 |
| og:image:alt | Header: #define B A #define A x(B) #define C(s) s #define D(s) C(s) D(A) gcc output: x(A) simplecpp output: x ( x ( A ) ) I couldn't find an earlier commit where this isn't the output. I believe th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ludviggunne |
| hostname | github.com |
| expected-hostname | github.com |
| None | 030096ee0db095447bfe77409d33bfac127ca7128299c58deef27c52eaa1b1f0 |
| 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 | d9dd20d38f8ae3c4cb6b597807431db300d0bd2a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width