| Anonymous | Login | Signup for a new account | 2025-10-25 04:26 UTC |
| My View | View Issues | Change Log | Roadmap | Doomseeker Issue Support Ranking | Rules | My Account |
| View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||
| 0003807 | Doomseeker | [All Projects] Cleanup | public | 2020-06-07 03:29 | 2020-06-07 19:47 | ||||||||
| Reporter | WubTheCaptain | ||||||||||||
| Assigned To | |||||||||||||
| Priority | none | Severity | tweak | Reproducibility | sometimes | ||||||||
| Status | confirmed | Resolution | open | ||||||||||
| Platform | OS | OS Version | |||||||||||
| Product Version | 1.3.1 | ||||||||||||
| Target Version | Fixed in Version | ||||||||||||
| Summary | 0003807: Some for(...; ...; ...) loops are not range-based loops (C++11), but C-style | ||||||||||||
| Description | Most of Doomseeker is written in C++, but there are for loops that are C-style (inherited from C++98). Let's modernize to C++11 and beyond? | ||||||||||||
| Steps To Reproduce | $ grep -r "for (" src/ | wc -l
968
$ grep -r "for (" src/ | grep "&" | grep ":" | wc -l
283
$ grep -r "for(" src/ | wc -l
16The ones with "for(" were all third-party dependencies, however. Not accounting for any C files, if there are any. | ||||||||||||
| Additional Information | 'https://clang.llvm.org/extra/clang-tidy/checks/modernize-loop-convert.html [^]' | ||||||||||||
| Attached Files | |||||||||||||
Relationships |
||||||
|
||||||
Notes |
|
|
Pol M (developer) 2020-06-07 19:46 |
Sure, no problem. That said, sometimes c-style for loops are necessary, so don't be surprised if we can't simply use them everywhere. |
| Only registered users can voice their support. Click here to register, or here to log in. | |
| Supporters: | No one explicitly supports this issue yet. |
| Opponents: | No one explicitly opposes this issue yet. |
Issue History |
|||
| Date Modified | Username | Field | Change |
| 2020-06-07 03:29 | WubTheCaptain | New Issue | |
| 2020-06-07 03:29 | WubTheCaptain | Relationship added | child of 0003803 |
| 2020-06-07 03:29 | WubTheCaptain | Steps to Reproduce Updated | View Revisions |
| 2020-06-07 03:31 | WubTheCaptain | Reproducibility | have not tried => sometimes |
| 2020-06-07 19:46 | Pol M | Note Added: 0021379 | |
| 2020-06-07 19:47 | Pol M | Status | new => confirmed |
| Copyright © 2000 - 2025 MantisBT Team |