Title: simplecpp::TokenList::constFold does not fold '( 0 ) && 10 < X' properly · Issue #404 · cppcheck-opensource/simplecpp · GitHub
Open Graph Title: simplecpp::TokenList::constFold does not fold '( 0 ) && 10 < X' properly · Issue #404 · cppcheck-opensource/simplecpp
X Title: simplecpp::TokenList::constFold does not fold '( 0 ) && 10 < X' properly · Issue #404 · cppcheck-opensource/simplecpp
Description: Test code: std::istringstream i("( 0 ) && 10 < X"); simplecpp::TokenList tokenList(i, filenames); tokenList.constFold(); tokenList.dump(); Output: ( 0 < X ) As 0 && expr is 0 I believe the output should just be 0.
Open Graph Description: Test code: std::istringstream i("( 0 ) && 10 < X"); simplecpp::TokenList tokenList(i, filenames); tokenList.constFold(); tokenList.dump(); Output: ( 0 < X ) As 0 && expr is 0 I believe the output s...
X Description: Test code: std::istringstream i("( 0 ) && 10 < X"); simplecpp::TokenList tokenList(i, filenames); tokenList.constFold(); tokenList.dump(); Output: ( 0 < X ) As 0 && ...
Opengraph URL: https://github.com/cppcheck-opensource/simplecpp/issues/404
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"simplecpp::TokenList::constFold does not fold '( 0 ) \u0026\u0026 10 \u003c X' properly","articleBody":"Test code:\n```\n std::istringstream i(\"( 0 ) \u0026\u0026 10 \u003c X\");\n simplecpp::TokenList tokenList(i, filenames);\n tokenList.constFold();\n tokenList.dump();\n```\nOutput:\n```\n( 0 \u003c X )\n```\n\nAs `0 \u0026\u0026 expr` is 0 I believe the output should just be 0.\n","author":{"url":"https://github.com/danmar","@type":"Person","name":"danmar"},"datePublished":"2025-01-17T15:23:52.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/404/simplecpp/issues/404"}
| 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:bcc0c1cb-8efc-e92f-4018-1a295490d0c7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A1C2:A6D52:293C895:398216E:6A4F5A0B |
| html-safe-nonce | 7d13133d5df1b627b8cf42e6ab81750eec76813f2334b48c8166fae6ba149427 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMUMyOkE2RDUyOjI5M0M4OTU6Mzk4MjE2RTo2QTRGNUEwQiIsInZpc2l0b3JfaWQiOiIxNzQ3MDc5MzI2NzEyMDM4NTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 6c3585c997e5d711ad7c1bb013395af1aeb3b55ababb3ea6fe0f2e8b1fb40e9e |
| hovercard-subject-tag | issue:2795730827 |
| 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/404/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8a85fb4851c1314ca206a02920559243604ed954ae3e11778fe88117d5a3fc73/cppcheck-opensource/simplecpp/issues/404 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8a85fb4851c1314ca206a02920559243604ed954ae3e11778fe88117d5a3fc73/cppcheck-opensource/simplecpp/issues/404 |
| og:image:alt | Test code: std::istringstream i("( 0 ) && 10 < X"); simplecpp::TokenList tokenList(i, filenames); tokenList.constFold(); tokenList.dump(); Output: ( 0 < X ) As 0 && expr is 0 I believe the output s... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | danmar |
| hostname | github.com |
| expected-hostname | github.com |
| None | b92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9 |
| 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 | 4b249b445842943ed31549e027f57a8ade9881ed |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width