[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
Tue Feb 10 05:04:55 PST 2026
================
@@ -78,6 +79,20 @@ bool Parser::isCXXDeclarationStatement(
[[fallthrough]];
// simple-declaration
default:
+
+ if (DisambiguatingWithExpression) {
+ TentativeParsingAction TPA(*this, true);
+ // We will do not check access checks here, because we want to allow
+ // parsing of declarations. Access will be checked later.
----------------
fogsong233 wrote:
I update the comments.
https://github.com/llvm/llvm-project/pull/178842
More information about the cfe-commits
mailing list