Title: Support prefix-less `#line` preprocessor directive without file · Issue #504 · cppcheck-opensource/simplecpp · GitHub
Open Graph Title: Support prefix-less `#line` preprocessor directive without file · Issue #504 · cppcheck-opensource/simplecpp
X Title: Support prefix-less `#line` preprocessor directive without file · Issue #504 · cppcheck-opensource/simplecpp
Description: The GNU compilers also support a line preprocessor directive with just a number without a file specified. # 3 __LINE__ __FILE__ gcc -E output: # 0 "a.cpp" # 0 "
Open Graph Description: The GNU compilers also support a line preprocessor directive with just a number without a file specified. # 3 __LINE__ __FILE__ gcc -E output: # 0 "a.cpp" # 0 "
X Description: The GNU compilers also support a line preprocessor directive with just a number without a file specified. # 3 __LINE__ __FILE__ gcc -E output: # 0 "a.cpp" # 0 "<built-in>"...
Opengraph URL: https://github.com/cppcheck-opensource/simplecpp/issues/504
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Support prefix-less `#line` preprocessor directive without file","articleBody":"The GNU compilers also support a line preprocessor directive with just a number without a file specified.\n\n```\n# 3\n__LINE__ __FILE__\n```\n\n`gcc -E output`:\n```\n# 0 \"a.cpp\"\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 \"a.cpp\"\n# 3 \"a.cpp\"\n3 \"a.cpp\"\n```\n\nactual:\n```\n\n2 \"a.cpp\"\n```","author":{"url":"https://github.com/firewave","@type":"Person","name":"firewave"},"datePublished":"2025-08-23T12:27:05.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/504/simplecpp/issues/504"}
| 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:58647b75-504d-1eae-da84-acf0c597713e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C814:20853D:1EFD89D:2A72237:6A4EBF57 |
| html-safe-nonce | 3ce4176bb6b0ea44035fee54246b8522039116958caec685e58c579d4478513b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDODE0OjIwODUzRDoxRUZEODlEOjJBNzIyMzc6NkE0RUJGNTciLCJ2aXNpdG9yX2lkIjoiMTk3NzQ5OTE5NTA3OTA0OTA0NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b14595f9082b673a9315aecc7efaad6d6c100b01d2ce2fa049bb8857a1ba8453 |
| hovercard-subject-tag | issue:3348157308 |
| 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/504/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fe0a34efb2325ec436f6871f191b1c150be5812cd298bc924effa44c69fa1648/cppcheck-opensource/simplecpp/issues/504 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fe0a34efb2325ec436f6871f191b1c150be5812cd298bc924effa44c69fa1648/cppcheck-opensource/simplecpp/issues/504 |
| og:image:alt | The GNU compilers also support a line preprocessor directive with just a number without a file specified. # 3 __LINE__ __FILE__ gcc -E output: # 0 "a.cpp" # 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 | 41b6ab3ba6d20a71766ac245b5a4a94c6fc672a9cd4da7d44c1b33ab8bf6a21c |
| 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 | e6a744804e8e70f97b4d5a18a94dcc63db22f97a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width