[clang] [clang][Sema] Preserve the initializer of invalid VarDecls (PR #88645)

Nathan Ridge via cfe-commits cfe-commits at lists.llvm.org
Sun Apr 14 23:47:40 PDT 2024


HighCommander4 wrote:

> Thanks for the improvement!
> 
> Can you also add a test case?

Thanks for the feedback!

I added a new test case. However, the patch currently fails two existing test cases:

  Clang :: Parser/cxx-class.cpp
  Clang :: SemaCXX/cxx1z-init-statement.cpp

I will leave the PR as a Draft while I investigate these failures.

https://github.com/llvm/llvm-project/pull/88645


More information about the cfe-commits mailing list