Title: some preprocessor directives do not handle comments properly · Issue #507 · cppcheck-opensource/simplecpp · GitHub
Open Graph Title: some preprocessor directives do not handle comments properly · Issue #507 · cppcheck-opensource/simplecpp
X Title: some preprocessor directives do not handle comments properly · Issue #507 · cppcheck-opensource/simplecpp
Description: The test is unconditionally removing all comments (addressed in #506) leading to tests which test the behavior of such not actually testing it since they did not materialize in the token list. Affected tests: has_include_2 missingHeader4...
Open Graph Description: The test is unconditionally removing all comments (addressed in #506) leading to tests which test the behavior of such not actually testing it since they did not materialize in the token list. Affe...
X Description: The test is unconditionally removing all comments (addressed in #506) leading to tests which test the behavior of such not actually testing it since they did not materialize in the token list. Affe...
Opengraph URL: https://github.com/cppcheck-opensource/simplecpp/issues/507
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"some preprocessor directives do not handle comments properly","articleBody":"The test is unconditionally removing all comments (addressed in #506) leading to tests which test the behavior of such not actually testing it since they did not materialize in the token list.\n\nAffected tests:\n`has_include_2`\n`missingHeader4`\n\nIt also affects the `#line lineno` preprocessor handling.","author":{"url":"https://github.com/firewave","@type":"Person","name":"firewave"},"datePublished":"2025-08-23T12:54:01.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/507/simplecpp/issues/507"}
| 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:a3fa0006-3388-d5ae-9a93-0f2bed04cff7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 84B0:1C7367:6AB9B4:9C8639:6A4E129F |
| html-safe-nonce | 1f4e50f12f90dc34b83262e2574716bdf6146da3a20a3249c00458a9140ae3b9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NEIwOjFDNzM2Nzo2QUI5QjQ6OUM4NjM5OjZBNEUxMjlGIiwidmlzaXRvcl9pZCI6IjgzNzUxNTUwOTkwNjA1NDAwNjMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 35ccdbacbe1e3e8ac950a59a937df9b94968cb92a892693f5dc1dfa60e5fd376 |
| hovercard-subject-tag | issue:3348213508 |
| 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/507/issue_layout |
| twitter:image | https://opengraph.githubassets.com/729f3dfa3f873f911546d32369e5725236e9c6603473109af350dd2c85885346/cppcheck-opensource/simplecpp/issues/507 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/729f3dfa3f873f911546d32369e5725236e9c6603473109af350dd2c85885346/cppcheck-opensource/simplecpp/issues/507 |
| og:image:alt | The test is unconditionally removing all comments (addressed in #506) leading to tests which test the behavior of such not actually testing it since they did not materialize in the token list. Affe... |
| 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 | 030096ee0db095447bfe77409d33bfac127ca7128299c58deef27c52eaa1b1f0 |
| 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 | ea9187571e3edc5f2780f750631138669441ca50 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width