https://github.com/Pranjal095 updated
https://github.com/llvm/llvm-project/pull/167048
>From aa901d58c5d5d294d342ee079d2389b2c67ec8ba Mon Sep 17 00:00:00 2001
From: Pranjal095
Date: Sat, 8 Nov 2025 04:37:26 +0530
Subject: [PATCH 1/4] [Clang] Add C++11 spelling support for guarded_by
attribute
@@ -394,6 +394,13 @@ til::SExpr *SExprBuilder::translateDeclRefExpr(const
DeclRefExpr *DRE,
if (const auto *VarD = dyn_cast(VD))
return translateVariable(VarD, Ctx);
+ if (const auto *FD = dyn_cast(VD)) {
Pranjal095 wrote:
I understand. Should I handl
@@ -0,0 +1,25 @@
+// RUN: %clang_cc1 -verify=good -pedantic -Wall -std=c2y %s
+// RUN: %clang_cc1 -verify=compat,expected -pedantic -Wall -Wpre-c2y-compat
-std=c2y %s
+// RUN: %clang_cc1 -verify=ped,expected -pedantic -Wall -std=c23 %s
+// RUN: %clang_cc1 -verify=ped,expected -pe
https://github.com/Pranjal095 updated
https://github.com/llvm/llvm-project/pull/167086
>From f459a9776e57739277ea4c42618db09a03c1bfd4 Mon Sep 17 00:00:00 2001
From: Pranjal095
Date: Sat, 8 Nov 2025 09:33:42 +0530
Subject: [PATCH 1/2] [C2y] Allow static local variables in inline functions
with
https://github.com/Pranjal095 updated
https://github.com/llvm/llvm-project/pull/167048
>From aa901d58c5d5d294d342ee079d2389b2c67ec8ba Mon Sep 17 00:00:00 2001
From: Pranjal095
Date: Sat, 8 Nov 2025 04:37:26 +0530
Subject: [PATCH 1/3] [Clang] Add C++11 spelling support for guarded_by
attribute
https://github.com/Pranjal095 updated
https://github.com/llvm/llvm-project/pull/167048
>From aa901d58c5d5d294d342ee079d2389b2c67ec8ba Mon Sep 17 00:00:00 2001
From: Pranjal095
Date: Sat, 8 Nov 2025 04:37:26 +0530
Subject: [PATCH 1/2] [Clang] Add C++11 spelling support for guarded_by
attribute
@@ -8111,6 +8111,11 @@ NamedDecl *Sema::ActOnVariableDeclarator(
// An inline definition of a function with external linkage shall
// not contain a definition of a modifiable object with static or
// thread storage duration...
+ //
+ // WG14 N3622 which removed th
https://github.com/Pranjal095 created
https://github.com/llvm/llvm-project/pull/167086
…linkage (N3622)
This allows static local variables to be declared in inline functions with
external linkage, a constraint that was removed in WG14 N3622. Such
declarations are now allowed in C2y mode, and