[clang] [clang] Allow attributes on first constructor argument in pre-C++11 (PR #157300)
Nikolas Klauser via cfe-commits
cfe-commits at lists.llvm.org
Sun Sep 7 06:20:25 PDT 2025
================
@@ -6007,7 +6007,7 @@ bool Parser::isConstructorDeclarator(bool IsUnqualified, bool DeductionGuide,
// A C++11 attribute here signals that we have a constructor, and is an
// attribute on the first constructor parameter.
- if (getLangOpts().CPlusPlus11 &&
+ if (getLangOpts().CPlusPlus &&
----------------
philnik777 wrote:
Is this ever false? This functions looks to me like it would only ever be called if we're parsing C++.
https://github.com/llvm/llvm-project/pull/157300
More information about the cfe-commits
mailing list