Title: unit test failed for checking multiline comments · Issue #419 · cppcheck-opensource/simplecpp · GitHub
Open Graph Title: unit test failed for checking multiline comments · Issue #419 · cppcheck-opensource/simplecpp
X Title: unit test failed for checking multiline comments · Issue #419 · cppcheck-opensource/simplecpp
Description: While running the unit tests for simple app, the case checking for multiline comments is failed. The test code is as below. The expected result of the test is to get an output "void f ( ) { }". static void comment_multiline() { const cha...
Open Graph Description: While running the unit tests for simple app, the case checking for multiline comments is failed. The test code is as below. The expected result of the test is to get an output "void f ( ) { }". sta...
X Description: While running the unit tests for simple app, the case checking for multiline comments is failed. The test code is as below. The expected result of the test is to get an output "void f ( ) { }&...
Opengraph URL: https://github.com/cppcheck-opensource/simplecpp/issues/419
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"unit test failed for checking multiline comments","articleBody":"While running the unit tests for simple app, the case checking for multiline comments is failed. The test code is as below. The expected result of the test is to get an output \"void f ( ) { }\".\n```\nstatic void comment_multiline()\n{\n const char code[] = \"#define ABC {// \\\\\\n\"\n \"}\\n\"\n \"void f() ABC\\n\";\n ASSERT_EQUALS(\"\\n\\nvoid f ( ) { }\", preprocess(code));\n}\n```\n\nI think the translated result of \"void f() ABC\" should be \"void f ( ) {\". If we code the magic string in a real file, it should be as below.\n```\n#define ABC {// \\\n}\nvoid f() ABC\n```\nIf so, the ending brace should be commented. \nhttps://sourceforge.net/p/cppcheck/discussion/general/thread/37c6eba151/\n","author":{"url":"https://github.com/clock999","@type":"Person","name":"clock999"},"datePublished":"2025-02-22T03:19:01.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/419/simplecpp/issues/419"}
| 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:2c3fc56f-7191-99a0-e4e5-9b705be8447e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D572:383777:735A56F:A275CF5:6A500BD6 |
| html-safe-nonce | df0602bfc0d9fff572537e12ff50ac1e9c8f096811bb1ba74f006defe28b6870 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENTcyOjM4Mzc3Nzo3MzVBNTZGOkEyNzVDRjU6NkE1MDBCRDYiLCJ2aXNpdG9yX2lkIjoiODAwMTI4ODgyNTk4NzkyNjk5OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 4159ee459ed814a1b2a2b5db1ab7346c0ec7342d81dd0e9b60d4794442428f4a |
| hovercard-subject-tag | issue:2870430681 |
| 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/419/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ce9bbf4a1702daf90cc4461931b57684115a84477375a5ca990e03e66a05b54b/cppcheck-opensource/simplecpp/issues/419 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ce9bbf4a1702daf90cc4461931b57684115a84477375a5ca990e03e66a05b54b/cppcheck-opensource/simplecpp/issues/419 |
| og:image:alt | While running the unit tests for simple app, the case checking for multiline comments is failed. The test code is as below. The expected result of the test is to get an output "void f ( ) { }". sta... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | clock999 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 56eec25a3430492dd6ec2a480eb33256a0da5192d5714b0db4f5ab5f33203d94 |
| 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 | 93a615b89b7dcbdb6b678f4772931ecc28ada82a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width