Title: Refactoring: split TokenList::readfile() into smaller functions · Issue #735 · cppcheck-opensource/simplecpp · GitHub
Open Graph Title: Refactoring: split TokenList::readfile() into smaller functions · Issue #735 · cppcheck-opensource/simplecpp
X Title: Refactoring: split TokenList::readfile() into smaller functions · Issue #735 · cppcheck-opensource/simplecpp
Description: TokenList::readfile() is about 380 lines long and handles several kinds of tokens in one loop. Several of these readers have their own copy of the line-splicing (backslash-newline) code. Before line splicing is moved into the character s...
Open Graph Description: TokenList::readfile() is about 380 lines long and handles several kinds of tokens in one loop. Several of these readers have their own copy of the line-splicing (backslash-newline) code. Before lin...
X Description: TokenList::readfile() is about 380 lines long and handles several kinds of tokens in one loop. Several of these readers have their own copy of the line-splicing (backslash-newline) code. Before lin...
Opengraph URL: https://github.com/cppcheck-opensource/simplecpp/issues/735
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Refactoring: split TokenList::readfile() into smaller functions","articleBody":" `TokenList::readfile()` is about 380 lines long and handles several kinds of tokens in one loop. Several of these readers have their\n own copy of the line-splicing (backslash-newline) code.\n\n Before line splicing is moved into the character stream and the tokenizer is changed (step 2 of #708), move the readers that those\n changes will touch into separate functions:\n\n | New function | Reads |\n |---|---|\n | `readNameOrNumber()` | names and numbers (later: pp-number grammar, e.g. `1.2.3`, `0x1e+e`) |\n | `readLineComment()` | `//` comments (has its own splicing code) |\n | `readBlockComment()` | `/* */` comments (has its own splicing code) |\n | `readErrorText()` | the text of `#error` / `#warning` (has its own splicing code) |\n\n When splicing moves into the stream, these splicing copies can then be removed one function at a time, in small diffs.\n","author":{"url":"https://github.com/danmar","@type":"Person","name":"danmar"},"datePublished":"2026-11-07T17:07:33Z","url":"https://github.com/cppcheck-opensource/simplecpp/issues/735"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:4eca48f0-40ef-a7ba-9750-6f77404ddd06 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9FD2:1794D0:396C14:4FFCA6:6AFC51F7 |
| html-safe-nonce | 929d21680f8e1d6c2bef0137ee73fe76089110461dd0d21b43a54b036676c2fb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RkQyOjE3OTREMDozOTZDMTQ6NEZGQ0E2OjZBRkM1MUY3IiwidmlzaXRvcl9pZCI6IjcxNDQ5OTY4NzU0NTg1OTczNjciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | e8c825901cfbc1d6fa9692f844f7f2da166dc556bd6049db925eb6086d861615 |
| hovercard-subject-tag | issue:6261924357 |
| 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/735/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b164bb05d9361e4268aca5f51e9c799734d2760a2e012b0584185ec99584557c/cppcheck-opensource/simplecpp/issues/735 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b164bb05d9361e4268aca5f51e9c799734d2760a2e012b0584185ec99584557c/cppcheck-opensource/simplecpp/issues/735 |
| og:image:alt | TokenList::readfile() is about 380 lines long and handles several kinds of tokens in one loop. Several of these readers have their own copy of the line-splicing (backslash-newline) code. Before lin... |
| 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 | b63557e0027d8014589e873df28328da74a4356701bb1a9eab49dbf012ba8fa6 |
| 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 | 0243355b0352c83733a042e0dfb3d75149b51261 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width