Title: `#` in macro left in original location · Issue #491 · cppcheck-opensource/simplecpp · GitHub
Open Graph Title: `#` in macro left in original location · Issue #491 · cppcheck-opensource/simplecpp
X Title: `#` in macro left in original location · Issue #491 · cppcheck-opensource/simplecpp
Description: From testsuite/clang-preprocessor-tests/hash_space.c and uncovered by #490. #define HASH # HASH define foo bar gcc -E output: # 0 "testsuite/clang-preprocessor-tests/hash_space.c" # 0 "
Open Graph Description: From testsuite/clang-preprocessor-tests/hash_space.c and uncovered by #490. #define HASH # HASH define foo bar gcc -E output: # 0 "testsuite/clang-preprocessor-tests/hash_space.c" # 0 "
X Description: From testsuite/clang-preprocessor-tests/hash_space.c and uncovered by #490. #define HASH # HASH define foo bar gcc -E output: # 0 "testsuite/clang-preprocessor-tests/hash_space.c" # 0 &qu...
Opengraph URL: https://github.com/cppcheck-opensource/simplecpp/issues/491
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`#` in macro left in original location","articleBody":"From `testsuite/clang-preprocessor-tests/hash_space.c` and uncovered by #490.\n\n```cpp\n#define HASH #\nHASH define foo bar\n``` \n\n`gcc -E` output:\n```\n# 0 \"testsuite/clang-preprocessor-tests/hash_space.c\"\n# 0 \"\u003cbuilt-in\u003e\"\n# 0 \"\u003ccommand-line\u003e\"\n# 1 \"/usr/include/stdc-predef.h\" 1 3 4\n# 0 \"\u003ccommand-line\u003e\" 2\n# 1 \"testsuite/clang-preprocessor-tests/hash_space.c\"\n\n # define foo bar\n```\n\nactual:\n```\n1: #\n2: define foo bar\n```\n","author":{"url":"https://github.com/firewave","@type":"Person","name":"firewave"},"datePublished":"2025-08-12T11:26:53.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/491/simplecpp/issues/491"}
| 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:dd73edfa-f670-5dba-81b4-fbf9a9c1c083 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C818:2B7857:4D8890:686F55:6A4DA209 |
| html-safe-nonce | 4c5a9f6429d50ff3b46929c56a3a7d79b44d45f1dfeac455106af18f719b522c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDODE4OjJCNzg1Nzo0RDg4OTA6Njg2RjU1OjZBNERBMjA5IiwidmlzaXRvcl9pZCI6IjczNzc0NTY5NjY5ODc2OTkyOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | bf78036a8f26b81505e13b0095c856d69b55e2d6b62d7a168c6a109a3fb014f2 |
| hovercard-subject-tag | issue:3313799737 |
| 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/491/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4aee4be543f0035becd8c60675a6a9e7ff6845e2c03acde89c90f7136517aac3/cppcheck-opensource/simplecpp/issues/491 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4aee4be543f0035becd8c60675a6a9e7ff6845e2c03acde89c90f7136517aac3/cppcheck-opensource/simplecpp/issues/491 |
| og:image:alt | From testsuite/clang-preprocessor-tests/hash_space.c and uncovered by #490. #define HASH # HASH define foo bar gcc -E output: # 0 "testsuite/clang-preprocessor-tests/hash_space.c" # 0 " |
| 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 | 7f13faa65cccc9b729d674da83335d5dcfdfd193 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width