[clang] [Clang] Add C++11 spelling support for guarded_by attribute (PR #167048)

2025-11-19 Thread Pranjal Prajapati via cfe-commits
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

[clang] [Clang] Add C++11 spelling support for guarded_by attribute (PR #167048)

2025-11-14 Thread Pranjal Prajapati via cfe-commits
@@ -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

[clang] [C2y] Allow static local variables in inline functions with external … (PR #167086)

2025-11-10 Thread Pranjal Prajapati via cfe-commits
@@ -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

[clang] [C2y] Allow static local variables in inline functions with external … (PR #167086)

2025-11-10 Thread Pranjal Prajapati via cfe-commits
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

[clang] [Clang] Add C++11 spelling support for guarded_by attribute (PR #167048)

2025-11-09 Thread Pranjal Prajapati via cfe-commits
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

[clang] [Clang] Add C++11 spelling support for guarded_by attribute (PR #167048)

2025-11-08 Thread Pranjal Prajapati via cfe-commits
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

[clang] [C2y] Allow static local variables in inline functions with external … (PR #167086)

2025-11-08 Thread Pranjal Prajapati via cfe-commits
@@ -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

[clang] [C2y] Allow static local variables in inline functions with external … (PR #167086)

2025-11-07 Thread Pranjal Prajapati via cfe-commits
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