Repository navigation
Commit 8009afc
authored
Remove unreachable code and fix typos in converter.cpp (#181)
Three minor correctness/quality fixes in
`cpp2rust/converter/converter.cpp`.
## Changes
- **Remove dead `std::unreachable()`** — the call after a `switch` block
where every case (including `default`) already ends with `return
true`/`return false` can never be reached.
- **Fix typo in assert message** — `"less that total size"` → `"less
than total size"`
- **Fix typo in comment** — `"Take supress before"` → `"Take suppress
before"`
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>1 parent af5161b commit 8009afc
1 file changed
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2354 | 2354 | | |
2355 | 2355 | | |
2356 | 2356 | | |
2357 | | - | |
2358 | 2357 | | |
2359 | 2358 | | |
2360 | 2359 | | |
| |||
2814 | 2813 | | |
2815 | 2814 | | |
2816 | 2815 | | |
2817 | | - | |
| 2816 | + | |
2818 | 2817 | | |
2819 | 2818 | | |
2820 | 2819 | | |
| |||
3002 | 3001 | | |
3003 | 3002 | | |
3004 | 3003 | | |
3005 | | - | |
| 3004 | + | |
3006 | 3005 | | |
3007 | 3006 | | |
3008 | 3007 | | |
| |||
0 commit comments