Commit c30be71
committed
Move
The `common` naming was an artifact from a time when this code was used
for both device and host builds. The new location is more central and
shorter to include, which aligns with it being a pervasive type in the
codebase.
Creating a distinct directory gives more room to separate `result.h`
into multiple files, with the following benefits:
- Separating the `Result` type from the `EXPECT` logic allows depending
on the `Result` type without depending on every type with special
handling in the macros.
- Separating out `CF_EXPECTF` makes it possible to depend on `Result`
without depending on `@fmt`.
- Separate files are easier to understand in isolation.
The original headers and build targets are left as forwarding
dependencies to the new location.
Bug: b/471037778cuttlefish/common/libs/utils:result* to cuttlefish/result:result*
1 parent cb682ee commit c30be71
File tree
8 files changed
+567
-517
lines changed- base/cvd/cuttlefish
- common/libs/utils
- result
8 files changed
+567
-517
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
275 | 275 | | |
276 | 276 | | |
277 | 277 | | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
| 278 | + | |
295 | 279 | | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
| 280 | + | |
301 | 281 | | |
302 | 282 | | |
303 | 283 | | |
304 | 284 | | |
305 | 285 | | |
306 | 286 | | |
307 | | - | |
308 | | - | |
309 | | - | |
| 287 | + | |
310 | 288 | | |
311 | | - | |
312 | | - | |
313 | | - | |
| 289 | + | |
314 | 290 | | |
315 | 291 | | |
316 | 292 | | |
| |||
0 commit comments