Title: Double expanded macros aren't parsed well for delayed invocation · Issue #394 · cppcheck-opensource/simplecpp · GitHub
Open Graph Title: Double expanded macros aren't parsed well for delayed invocation · Issue #394 · cppcheck-opensource/simplecpp
X Title: Double expanded macros aren't parsed well for delayed invocation · Issue #394 · cppcheck-opensource/simplecpp
Description: The following code isn't transformed well by simplecpp: #define FOOBAR(x) x #define MACRO_COMPOSE(A, B) A ## B MACRO_COMPOSE(FOO, BAR(1)) gcc -E output: 1 simplecpp output: FOOBAR ( 1 )
Open Graph Description: The following code isn't transformed well by simplecpp: #define FOOBAR(x) x #define MACRO_COMPOSE(A, B) A ## B MACRO_COMPOSE(FOO, BAR(1)) gcc -E output: 1 simplecpp output: FOOBAR ( 1 )
X Description: The following code isn't transformed well by simplecpp: #define FOOBAR(x) x #define MACRO_COMPOSE(A, B) A ## B MACRO_COMPOSE(FOO, BAR(1)) gcc -E output: 1 simplecpp output: FOOBAR ( 1 )
Opengraph URL: https://github.com/cppcheck-opensource/simplecpp/issues/394
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Double expanded macros aren't parsed well for delayed invocation","articleBody":"The following code isn't transformed well by simplecpp:\r\n```cpp\r\n#define FOOBAR(x) x\r\n\r\n#define MACRO_COMPOSE(A, B) A ## B\r\n\r\nMACRO_COMPOSE(FOO, BAR(1))\r\n```\r\n\r\n`gcc -E` output:\r\n```cpp\r\n1\r\n```\r\n\r\nsimplecpp output:\r\n```cpp\r\nFOOBAR ( 1 )\r\n```","author":{"url":"https://github.com/Tal500","@type":"Person","name":"Tal500"},"datePublished":"2024-12-10T15:14:55Z","url":"https://github.com/cppcheck-opensource/simplecpp/issues/394"}
| 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:6d68cff6-92c8-5267-22fb-83d894340db8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A086:1794D0:391385:4F7EEE:6AFC51DE |
| html-safe-nonce | b40019f5e6c717f2d9daff02d805607d0b95295d2221b5fc67cd1569d1c48ec0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMDg2OjE3OTREMDozOTEzODU6NEY3RUVFOjZBRkM1MURFIiwidmlzaXRvcl9pZCI6IjQyOTk2MTY1Mzk3NjMyOTg3ODMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 5c1d6fa4fd439d5c767581345bb3c8f7468c6c1762ef14950fac9af144094b19 |
| hovercard-subject-tag | issue:2730417856 |
| 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/394/issue_layout |
| twitter:image | https://opengraph.githubassets.com/bbaa5880212808e6273150149da941b240e166702f640073efe52503834ad1f5/cppcheck-opensource/simplecpp/issues/394 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/bbaa5880212808e6273150149da941b240e166702f640073efe52503834ad1f5/cppcheck-opensource/simplecpp/issues/394 |
| og:image:alt | The following code isn't transformed well by simplecpp: #define FOOBAR(x) x #define MACRO_COMPOSE(A, B) A ## B MACRO_COMPOSE(FOO, BAR(1)) gcc -E output: 1 simplecpp output: FOOBAR ( 1 ) |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Tal500 |
| 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