Title: Invalid syntax error on test case from TinyCC · Issue #109 · cppcheck-opensource/simplecpp · GitHub
Open Graph Title: Invalid syntax error on test case from TinyCC · Issue #109 · cppcheck-opensource/simplecpp
X Title: Invalid syntax error on test case from TinyCC · Issue #109 · cppcheck-opensource/simplecpp
Description: This file inspired by https://github.com/TinyCC/tinycc/blob/mob/tests/pp/02.c #define x 3 #define f(a) f(x * (a)) #undef x #define x 2 #define g f #define z z[0] #define h g(~ #define m(a) a(w) #define w 0,1 #define t(a) a #define p() in...
Open Graph Description: This file inspired by https://github.com/TinyCC/tinycc/blob/mob/tests/pp/02.c #define x 3 #define f(a) f(x * (a)) #undef x #define x 2 #define g f #define z z[0] #define h g(~ #define m(a) a(w) #de...
X Description: This file inspired by https://github.com/TinyCC/tinycc/blob/mob/tests/pp/02.c #define x 3 #define f(a) f(x * (a)) #undef x #define x 2 #define g f #define z z[0] #define h g(~ #define m(a) a(w) #de...
Opengraph URL: https://github.com/cppcheck-opensource/simplecpp/issues/109
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Invalid syntax error on test case from TinyCC","articleBody":"This file inspired by https://github.com/TinyCC/tinycc/blob/mob/tests/pp/02.c\r\n```C\r\n#define x 3\r\n#define f(a) f(x * (a))\r\n#undef x\r\n#define x 2\r\n#define g f\r\n#define z z[0]\r\n#define h g(~\r\n#define m(a) a(w)\r\n#define w 0,1\r\n#define t(a) a\r\n#define p() int\r\n#define q(x) x\r\n#define r(x,y) x ## y\r\n#define str(x) # x\r\nvoid func(int y, int z) {\r\nf(y+1) + f(f(z)) % t(t(g)(0) + t)(1);\r\ng(x+(3,4)-w) | h 5) \u0026 m\r\n(f)^m(m);\r\nchar c[2][6] = { str(hello), str() };\r\n/*\r\n * f(2 * (y+1)) + f(2 * (f(2 * (z[0])))) % f(2 * (0)) + t(1);\r\n * f(2 * (2+(3,4)-0,1)) | f(2 * (~ 5)) \u0026 f(2 * (0,1))^m(0,1);\r\n * char c[2][6] = { \"hello\", \"\" };\r\n */\r\n#define L21 f(y+1) + f(f(z)) % t(t(g)(0) + t)(1);\r\n#define L22 g(x+(3,4)-w) | h 5) \u0026 m\\\r\n (f)^m(m);\r\nL21\r\nL22\r\n}\r\n\r\n```\r\ntriggers a `a.c:8: syntax error: failed to expand 'm', Wrong number of parameters for macro 'f'.`","author":{"url":"https://github.com/amai2012","@type":"Person","name":"amai2012"},"datePublished":"2017-11-07T22:09:16.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/109/simplecpp/issues/109"}
| 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:bda3426e-b99b-d742-3a5a-5b62b2e9a79c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8CAA:C3948:472D3EB:63BC80C:6A4F7A87 |
| html-safe-nonce | 44a320c50eb30c680d845dd888dcb034123d3611545b37a4b08f98557e435ab6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4Q0FBOkMzOTQ4OjQ3MkQzRUI6NjNCQzgwQzo2QTRGN0E4NyIsInZpc2l0b3JfaWQiOiIyMDQyNjE0NzE3NTEyMzgzMTExIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 310dcbaf8338f3b43dcae7a9b33ffc43be621022cadc1a3d9d3e00b8ae12775c |
| hovercard-subject-tag | issue:272002169 |
| 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/109/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4f9c07bfb0d297136facce14adbf06a2998f6b4cc45670b44b656983fa551a20/cppcheck-opensource/simplecpp/issues/109 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4f9c07bfb0d297136facce14adbf06a2998f6b4cc45670b44b656983fa551a20/cppcheck-opensource/simplecpp/issues/109 |
| og:image:alt | This file inspired by https://github.com/TinyCC/tinycc/blob/mob/tests/pp/02.c #define x 3 #define f(a) f(x * (a)) #undef x #define x 2 #define g f #define z z[0] #define h g(~ #define m(a) a(w) #de... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | amai2012 |
| hostname | github.com |
| expected-hostname | github.com |
| None | b92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9 |
| 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 | 4b249b445842943ed31549e027f57a8ade9881ed |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width