Commit 56dc655
authored
Convert delimiters using RAII semantics (#34)
PushBrace, PushParen and PushBracket push the open delimiter in the
constructor and the closing delimiter in the destructor.
They replace the following very common pattern:
```cpp
StrCat(token::kOpenParen);
...
StrCat(token::kCloseParen);
```
with:
```cpp
PushParen push(*this);
...
```1 parent 9c4c6da commit 56dc655
6 files changed
Lines changed: 528 additions & 431 deletions
File tree
- cpp2rust/converter
- models
- tests
- benchmarks/out/unsafe
- unit/out/unsafe
0 commit comments