Title: Possible fundamental flaw in order of pre-processing? · Issue #113 · cppcheck-opensource/simplecpp · GitHub
Open Graph Title: Possible fundamental flaw in order of pre-processing? · Issue #113 · cppcheck-opensource/simplecpp
X Title: Possible fundamental flaw in order of pre-processing? · Issue #113 · cppcheck-opensource/simplecpp
Description: Using the following code snippet: #define TARGS4 T1,T2,T3,T4 #define FOOIMPL(T__CLASS, TARGS) void foo(const T__CLASS
Open Graph Description: Using the following code snippet: #define TARGS4 T1,T2,T3,T4 #define FOOIMPL(T__CLASS, TARGS) void foo(const T__CLASS
X Description: Using the following code snippet: #define TARGS4 T1,T2,T3,T4 #define FOOIMPL(T__CLASS, TARGS) void foo(const T__CLASS<TARGS>& x) { } #define FOOIMPL_4(T__CLASS) FOOIMPL(T__CLASS, TARGS4) ...
Opengraph URL: https://github.com/cppcheck-opensource/simplecpp/issues/113
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Possible fundamental flaw in order of pre-processing?","articleBody":"Using the following code snippet:\r\n\r\n```\r\n#define TARGS4 T1,T2,T3,T4\r\n#define FOOIMPL(T__CLASS, TARGS) void foo(const T__CLASS\u003cTARGS\u003e\u0026 x) { }\r\n#define FOOIMPL_4(T__CLASS) FOOIMPL(T__CLASS, TARGS4)\r\nFOOIMPL_4(y)\r\n```\r\n\r\nboth gcc and Visual C++ give the following output:\r\n\r\n```\r\nvoid foo(const y\u003cT1,T2,T3,T4\u003e\u0026 x) {}\r\n```\r\n\r\nHowever CppCheck via simplecpp gives the following error:\r\n\r\n\u003e [file.cpp:3]: (error) failed to expand 'FOOIMPL_4', Wrong number of parameters for macro 'FOOIMPL'\r\n\r\nI'm unsure but this might be related to issues #40 , #79 and #109. Could it be that simplecpp is trying to expand pre-processor arguments too early?\r\n","author":{"url":"https://github.com/SimonFraser11","@type":"Person","name":"SimonFraser11"},"datePublished":"2017-12-28T12:01:50.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/113/simplecpp/issues/113"}
| 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:580ba269-7181-8f39-c65d-7572649e3a59 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D4F2:512E3:380C655:4E46411:6A4F48D8 |
| html-safe-nonce | 0629d248708a621266a9d4c8c7f95f631ba07b694dd6c33a801ebf6946fc498f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENEYyOjUxMkUzOjM4MEM2NTU6NEU0NjQxMTo2QTRGNDhEOCIsInZpc2l0b3JfaWQiOiIyNDI2ODcyNDA2MjU5NzQ3MDMyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 7ffcb8f44af92f74741e2d24658fa35056d1f88005c6e0436baeb031befa6bc3 |
| hovercard-subject-tag | issue:284901083 |
| 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/113/issue_layout |
| twitter:image | https://opengraph.githubassets.com/34592fac3b68940f2b6aa072fac29d2aebdabafcd38d4f7c228b17729f9409ab/cppcheck-opensource/simplecpp/issues/113 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/34592fac3b68940f2b6aa072fac29d2aebdabafcd38d4f7c228b17729f9409ab/cppcheck-opensource/simplecpp/issues/113 |
| og:image:alt | Using the following code snippet: #define TARGS4 T1,T2,T3,T4 #define FOOIMPL(T__CLASS, TARGS) void foo(const T__CLASS |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | SimonFraser11 |
| 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