[clang] [clang-repl] Allow private type aliases in out-of-line member function return types (PR #178842)

via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 2 08:03:23 PST 2026


fogsong233 wrote:

> I think we should move towards tentative parsing as my comment under the previous PR suggests. I still think that the `SuppressAccessChecks` approach is not correct. We should teach the relevant tentative parsing logic to understand that we are defining an out of line constructor and tell us that's not a statement.

Okay. I will check the logic of `ParseDeclarationOrFunctionDefinition`.
Another question is, can we use it directly tentatively? If it runs okay, it means we found a decl, that is good. Otherwise, this is a stml, then we run `parseTopLevelStml`. Is it okay?

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


More information about the cfe-commits mailing list