Repository navigation
Commit b372112
committed
doc-links(cs): a doc-line map that cannot grow fails the layer (R5)
cbm_doclink_note_doc_line returned silently when the map (or its first
block) could not be allocated. The doc it was noting then keeps its
definition's line, and a doc shared by the declarators of one field
declaration is no longer marked as taken, so its references are parsed
once per declarator -- while the layer reports ok.
Both allocation failures now set the file's doc_links.failed, as every
other lost piece of doc-link data does; the layer then says error.
A test seam, CBM_DOCLINK_ALLOC_DOC_LINE, fails the map's growth.
Test: alloc_failure_status gets the doc-line map as one more point (one
error row).
Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>1 parent aba240b commit b372112
3 files changed
Lines changed: 30 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
198 | 207 | | |
199 | 208 | | |
200 | 209 | | |
| |||
204 | 213 | | |
205 | 214 | | |
206 | 215 | | |
| 216 | + | |
207 | 217 | | |
208 | 218 | | |
209 | 219 | | |
210 | 220 | | |
211 | 221 | | |
212 | 222 | | |
213 | 223 | | |
214 | | - | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
215 | 233 | | |
216 | | - | |
| 234 | + | |
| 235 | + | |
217 | 236 | | |
218 | 237 | | |
219 | 238 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
152 | | - | |
153 | | - | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
154 | 155 | | |
155 | 156 | | |
156 | 157 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9775 | 9775 | | |
9776 | 9776 | | |
9777 | 9777 | | |
9778 | | - | |
| 9778 | + | |
| 9779 | + | |
9779 | 9780 | | |
9780 | 9781 | | |
9781 | 9782 | | |
| |||
10103 | 10104 | | |
10104 | 10105 | | |
10105 | 10106 | | |
10106 | | - | |
10107 | | - | |
10108 | | - | |
10109 | | - | |
| 10107 | + | |
| 10108 | + | |
| 10109 | + | |
| 10110 | + | |
10110 | 10111 | | |
10111 | 10112 | | |
10112 | 10113 | | |
| |||
0 commit comments