MantisBT - Doomseeker |
View Issue Details |
|
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
16
The 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 [^]' |
Tags | No tags attached. |
Relationships | child of | 0003803 | confirmed | | C++11 support |
|
Attached Files | |
|
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 | bug_revision_view_page.php?rev_id=13121#r13121 |
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 |