test: regression for the extract-all crash (issue #1195)#1198
Conversation
9f91899 to
c9f0721
Compare
|
| Scope | Lines Δ% | Lines Δ | Lines + | Lines - | Files Δ | Files + | Files ~ | Files ↔ | Files - |
|---|---|---|---|---|---|---|---|---|---|
| 🥇 Golden Tests | 100% | 240 | 240 | - | 5 | 5 | - | - | - |
| Total | 100% | 240 | 240 | - | 5 | 5 | - | - | - |
Legend: Files + (added), Files ~ (modified), Files ↔ (renamed), Files - (removed)
🔝 Top Files
- test-files/golden-tests/config/extract-all/warn-when-undocumented.html (Golden Tests): 84 lines Δ (+84 / -0)
- test-files/golden-tests/config/extract-all/warn-when-undocumented.xml (Golden Tests): 81 lines Δ (+81 / -0)
- test-files/golden-tests/config/extract-all/warn-when-undocumented.adoc (Golden Tests): 55 lines Δ (+55 / -0)
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #1198 +/- ##
========================================
Coverage 82.12% 82.12%
========================================
Files 33 33
Lines 3149 3149
Branches 734 734
========================================
Hits 2586 2586
Misses 387 387
Partials 176 176
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
c9f0721 to
a1afdea
Compare
|
An automated preview of the documentation is available at https://1198.mrdocs.prtest2.cppalliance.org/index.html If more commits are pushed to the pull request, the docs will rebuild at the same URL. 2026-05-14 14:59:08 UTC |
`checkUndocumented` used to call `undocumented_.erase(it)` without first checking `it != end()`. Under `extract-all: false`, `undocumented_` never gets populated, so for any documented symbol `find()` returned `end()` and the unguarded erase was undefined behavior. A user reported this as a crash in v0.8.0. b103cba fixed this as part of an unrelated restructuring, but the existing fixture in this directory disabled `warn-if-undocumented` and so never reached the crashy block. The new fixture combines `extract-all: false` with the default `warn-if-undocumented: true` and includes a documented record. Closes issue cppalliance#1195.
a1afdea to
0b10953
Compare
checkUndocumentedused to callundocumented_.erase(it)without first checkingit != end(). Underextract-all: false,undocumented_never gets populated, so for any documented symbolfind()returnedend()and the unguarded erase was undefined behavior. A user reported this as a crash in v0.8.0. b103cba fixed this as part of an unrelated restructuring, but the existing fixture in this directory disabledwarn-if-undocumentedand so never reached the crashy block. The new fixture combinesextract-all: falsewith the defaultwarn-if-undocumented: trueand includes a documented record.Closes issue #1195.