Title: `-U` incorrectly undefines source-level define · Issue #387 · cppcheck-opensource/simplecpp · GitHub
Open Graph Title: `-U` incorrectly undefines source-level define · Issue #387 · cppcheck-opensource/simplecpp
X Title: `-U` incorrectly undefines source-level define · Issue #387 · cppcheck-opensource/simplecpp
Description: #define DEF_1 void f() { #ifdef DEF_1 int i; #endif } $ ./simplecpp -UDEF_1 test.cpp void f ( ) { }
Open Graph Description: #define DEF_1 void f() { #ifdef DEF_1 int i; #endif } $ ./simplecpp -UDEF_1 test.cpp void f ( ) { }
X Description: #define DEF_1 void f() { #ifdef DEF_1 int i; #endif } $ ./simplecpp -UDEF_1 test.cpp void f ( ) { }
Opengraph URL: https://github.com/cppcheck-opensource/simplecpp/issues/387
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`-U` incorrectly undefines source-level define","articleBody":"```cpp\r\n#define DEF_1\r\n\r\nvoid f()\r\n{\r\n#ifdef DEF_1\r\n int i;\r\n#endif\r\n}\r\n```\r\n\r\n```\r\n$ ./simplecpp -UDEF_1 test.cpp\r\n\r\n\r\nvoid f ( )\r\n{\r\n\r\n\r\n\r\n}\r\n```","author":{"url":"https://github.com/firewave","@type":"Person","name":"firewave"},"datePublished":"2024-11-22T16:07:51.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/387/simplecpp/issues/387"}
| 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:42b95e5c-a822-d439-73f5-0938716173c7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BC46:6474B:4B9627:679734:6A4DC8F5 |
| html-safe-nonce | b0177564ce516ad442759720aa0cac712a379c2dc0f1886e4e749c7ed960a4a4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQzQ2OjY0NzRCOjRCOTYyNzo2Nzk3MzQ6NkE0REM4RjUiLCJ2aXNpdG9yX2lkIjoiMTM1NTQ4MzEyNDgyNjIyODk4MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | fdea2d3fcb81ea46c13393612726f2529ed3ed160ca31dc33847e00cdbb65da2 |
| hovercard-subject-tag | issue:2683718705 |
| 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/387/issue_layout |
| twitter:image | https://opengraph.githubassets.com/28b07d9dde86119253a7331de87a5d6392a785cb5443abe1f5d763714d036a23/cppcheck-opensource/simplecpp/issues/387 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/28b07d9dde86119253a7331de87a5d6392a785cb5443abe1f5d763714d036a23/cppcheck-opensource/simplecpp/issues/387 |
| og:image:alt | #define DEF_1 void f() { #ifdef DEF_1 int i; #endif } $ ./simplecpp -UDEF_1 test.cpp void f ( ) { } |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | firewave |
| hostname | github.com |
| expected-hostname | github.com |
| None | 06b8a6144231bf3a234f1c2e9993861e07ce98a905912b114aa386c2d7e84b33 |
| 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 | 1d344bdb7547fe6bca17a59bb2b8aac3dc9532a0 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width