[clang] [clang] Allow attributes on first constructor argument in pre-C++11 (PR #157300)

via cfe-commits cfe-commits at lists.llvm.org
Sun Sep 7 09:54:50 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 &&
----------------
camc wrote:

Ah yeah, it's never false.

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


More information about the cfe-commits mailing list