[clang] [C++20] [Modules] Support generating in-class defined function with try-catch body (PR #129212)
Chuanqi Xu via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 4 18:11:10 PST 2025
ChuanqiXu9 wrote:
> > > Thanks, LGTM.
> > > With just a little more effort you could add the EOF stuff in there too.
> >
> >
> > What do you mean by EOF stuff?
>
> It seems you can deduplicate by moving this block into the scope guard:
>
> ```c++
> while (Tok.isNot(tok::eof))
> ConsumeAnyToken();
> if (Tok.is(tok::eof) && Tok.getEofData() == LM.D)
> ConsumeAnyToken();
> ```
Done
https://github.com/llvm/llvm-project/pull/129212
More information about the cfe-commits
mailing list