Skip to content

Commit 56dc655

Browse files
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

0 commit comments

Comments
 (0)