Commit a367c7c
committed
refactor: remove goto statements and modernize FiffTime handling
- Remove all goto statements from 12 library files (124 total):
mne_cov_matrix.cpp(1), mne_meas_data.cpp(2), inv_ecd_set.cpp(2),
mne_sss_data.cpp(8), mne_msh_display_surface.cpp(8), mne_proj_op.cpp(9),
mne_surface.cpp(10), inv_guess_data.cpp(16), mne_raw_info.cpp(18),
mne_ctf_comp_data_set.cpp(18), mne_raw_data.cpp(32),
mne_source_space.cpp(61)
- Replace goto-label patterns with direct return/cleanup statements
- parksmcclellan.cpp intentionally kept (Remez algorithm)
- Replace FiffTime** new/delete with value-type FiffTime& overloading
in get_meas_info (eliminates raw pointer ownership)
- Fold start_time fallback logic (MEAS_DATE > id->time > {0,0})
into get_meas_info itself
- Update test files for new get_meas_info API
- Update optimization-requirements.md with new subsections1 parent 5b2ea45 commit a367c7c
File tree
16 files changed
+572
-423
lines changed- doc/dev-notes
- src
- libraries
- inv/dipole_fit
- mne
- testframes
- test_mne_io_coverage
- test_mne_raw_proj_comp
16 files changed
+572
-423
lines changedLarge diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
242 | | - | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
243 | 245 | | |
244 | 246 | | |
245 | 247 | | |
| |||
251 | 253 | | |
252 | 254 | | |
253 | 255 | | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | 256 | | |
263 | 257 | | |
264 | 258 | | |
| |||
292 | 286 | | |
293 | 287 | | |
294 | 288 | | |
295 | | - | |
| 289 | + | |
296 | 290 | | |
297 | 291 | | |
298 | 292 | | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | 293 | | |
308 | 294 | | |
309 | 295 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | | - | |
| 133 | + | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
| 136 | + | |
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
151 | | - | |
| 151 | + | |
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
156 | | - | |
| 156 | + | |
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
161 | | - | |
| 161 | + | |
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
169 | | - | |
| 169 | + | |
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
197 | | - | |
| 197 | + | |
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | 209 | | |
215 | 210 | | |
216 | 211 | | |
| |||
227 | 222 | | |
228 | 223 | | |
229 | 224 | | |
230 | | - | |
| 225 | + | |
231 | 226 | | |
232 | 227 | | |
233 | | - | |
| 228 | + | |
234 | 229 | | |
235 | 230 | | |
236 | 231 | | |
| |||
245 | 240 | | |
246 | 241 | | |
247 | 242 | | |
248 | | - | |
| 243 | + | |
249 | 244 | | |
250 | 245 | | |
251 | 246 | | |
252 | 247 | | |
253 | | - | |
| 248 | + | |
254 | 249 | | |
255 | 250 | | |
256 | 251 | | |
257 | 252 | | |
258 | | - | |
| 253 | + | |
259 | 254 | | |
260 | 255 | | |
261 | 256 | | |
| |||
264 | 259 | | |
265 | 260 | | |
266 | 261 | | |
267 | | - | |
| 262 | + | |
268 | 263 | | |
269 | 264 | | |
270 | 265 | | |
| |||
279 | 274 | | |
280 | 275 | | |
281 | 276 | | |
282 | | - | |
| 277 | + | |
283 | 278 | | |
284 | 279 | | |
285 | 280 | | |
| |||
298 | 293 | | |
299 | 294 | | |
300 | 295 | | |
301 | | - | |
| 296 | + | |
302 | 297 | | |
303 | 298 | | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | 299 | | |
309 | 300 | | |
310 | 301 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
559 | 559 | | |
560 | 560 | | |
561 | 561 | | |
562 | | - | |
563 | | - | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
564 | 567 | | |
565 | 568 | | |
566 | 569 | | |
| |||
589 | 592 | | |
590 | 593 | | |
591 | 594 | | |
592 | | - | |
593 | | - | |
594 | | - | |
595 | | - | |
596 | | - | |
597 | | - | |
598 | 595 | | |
599 | 596 | | |
600 | 597 | | |
| |||
0 commit comments