Title: token pasting and empty tokens · Issue #259 · cppcheck-opensource/simplecpp · GitHub
Open Graph Title: token pasting and empty tokens · Issue #259 · cppcheck-opensource/simplecpp
X Title: token pasting and empty tokens · Issue #259 · cppcheck-opensource/simplecpp
Description: // test.h #define SIMPLE(T, NAME) \ T NAME; #define ADVANCED(T, PREFIX, NAME, EXTENSION) \ SIMPLE(T, PREFIX##NAME##EXTENSION) ADVANCED(int, , foo, ) cppcheck -E test.h Checking test.h ... [test.h:6]: (error) failed to expand 'ADVANCED', ...
Open Graph Description: // test.h #define SIMPLE(T, NAME) \ T NAME; #define ADVANCED(T, PREFIX, NAME, EXTENSION) \ SIMPLE(T, PREFIX##NAME##EXTENSION) ADVANCED(int, , foo, ) cppcheck -E test.h Checking test.h ... [test.h:6...
X Description: // test.h #define SIMPLE(T, NAME) \ T NAME; #define ADVANCED(T, PREFIX, NAME, EXTENSION) \ SIMPLE(T, PREFIX##NAME##EXTENSION) ADVANCED(int, , foo, ) cppcheck -E test.h Checking test.h ... [test.h:6...
Opengraph URL: https://github.com/cppcheck-opensource/simplecpp/issues/259
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"token pasting and empty tokens","articleBody":"```\r\n// test.h\r\n\r\n#define SIMPLE(T, NAME) \\\r\n T NAME;\r\n\r\n#define ADVANCED(T, PREFIX, NAME, EXTENSION) \\\r\n SIMPLE(T, PREFIX##NAME##EXTENSION)\r\n\r\nADVANCED(int, , foo, )\r\n```\r\n```\r\ncppcheck -E test.h\r\nChecking test.h ...\r\n[test.h:6]: (error) failed to expand 'ADVANCED', Invalid ## usage when expanding 'ADVANCED'.\r\n```\r\n```\r\ncpp test.h \r\n# 1 \"test.h\"\r\n# 1 \"\u003cbuilt-in>\"\r\n# 1 \"\u003ccommand-line>\"\r\n# 31 \"\u003ccommand-line>\"\r\n# 1 \"/usr/include/stdc-predef.h\" 1 3 4\r\n# 32 \"\u003ccommand-line>\" 2\r\n# 1 \"test.h\"\r\n# 9 \"test.h\"\r\nint foo;\r\n```","author":{"url":"https://github.com/matlo","@type":"Person","name":"matlo"},"datePublished":"2022-04-12T18:42:31Z","url":"https://github.com/cppcheck-opensource/simplecpp/issues/259"}
| 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:9741f2d2-bead-6796-5b08-80471fef0ffb |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DAE4:2D0F9D:4FA03:71AF9:6AFC51DA |
| html-safe-nonce | cc4fcc931ec8913d71d40251cd11ea968b1b7e6f3bee5e7e96f267fc65dfcec7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQUU0OjJEMEY5RDo0RkEwMzo3MUFGOTo2QUZDNTFEQSIsInZpc2l0b3JfaWQiOiI1MjkyNDU5NTM2NTk2ODgxODgyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | eecbde0e88ac85c50bcffff6083011c849067505dbbbd92ff1a0c84630d81032 |
| hovercard-subject-tag | issue:1202251509 |
| 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/259/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7d6b6aa6f80654a3363441c99a8cc0a460e985f01bca04e3e161ad812877057b/cppcheck-opensource/simplecpp/issues/259 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7d6b6aa6f80654a3363441c99a8cc0a460e985f01bca04e3e161ad812877057b/cppcheck-opensource/simplecpp/issues/259 |
| og:image:alt | // test.h #define SIMPLE(T, NAME) \ T NAME; #define ADVANCED(T, PREFIX, NAME, EXTENSION) \ SIMPLE(T, PREFIX##NAME##EXTENSION) ADVANCED(int, , foo, ) cppcheck -E test.h Checking test.h ... [test.h:6... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | matlo |
| 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