[clang] [llvm] [clang][DebugInfo] Emit unified (Itanium) mangled name to structor declarations (PR #154142)

2025-10-09 Thread Michael Buch via cfe-commits
Michael137 wrote: > Is it expected that `-gno-structor-decl-linkage-names` enables debug > information (i.e. it has an effect of `-g -gno-structor-decl-linkage-names`)? > I was quite surprised by this, but maybe it's a common behavior of clang > options controlling debug information? > > http

[clang] [Clang] Add __builtin_bswapg (PR #162433)

2025-10-09 Thread Alexander Richardson via cfe-commits
@@ -14030,6 +13982,15 @@ bool IntExprEvaluator::VisitBuiltinCallExpr(const CallExpr *E, return Success(Val.reverseBits(), E); } + case Builtin::BI__builtin_bswapg: { +APSInt Val; +if (!EvaluateInteger(E->getArg(0), Val, Info)) + return false; +if (Val.

[clang] 0df4e63 - [OpenCL] update address-spaces.cl (#162785)

2025-10-09 Thread via cfe-commits
Author: Henrik G. Olsson Date: 2025-10-10T05:56:37Z New Revision: 0df4e63798d208d7e0fe1f4693046bbe7f7ca704 URL: https://github.com/llvm/llvm-project/commit/0df4e63798d208d7e0fe1f4693046bbe7f7ca704 DIFF: https://github.com/llvm/llvm-project/commit/0df4e63798d208d7e0fe1f4693046bbe7f7ca704.diff L

[clang] [Sema] Keep attribute lists in the order the attributes were parsed (PR #162714)

2025-10-09 Thread Henrik G. Olsson via cfe-commits
hnrklssn wrote: Failures in `SemaOpenCL/address-spaces.cl` seem unrelated, so merging this. https://github.com/llvm/llvm-project/pull/162714 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-com

[clang] Fix use of funified-lto and save-temps flags together (PR #162763)

2025-10-09 Thread Alexey Bader via cfe-commits
https://github.com/bader updated https://github.com/llvm/llvm-project/pull/162763 >From 1db7dc4d96deb01e7a03b4a9068a005789da1352 Mon Sep 17 00:00:00 2001 From: Alexey Bader Date: Thu, 9 Oct 2025 19:41:04 -0700 Subject: [PATCH 1/2] Fix use of funified-lto and save-temps flags together > clang -

[clang] [Driver] Remove special handling for older Ubuntu (PR #162518)

2025-10-09 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-armv8-quick` running on `linaro-clang-armv8-quick` while building `clang` at step 5 "ninja check 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/154/builds/22553 Here is the relevant piece o

[clang] [OpenACC] Sema changes for +*&|^ reduction combiner recipes (PR #162740)

2025-10-09 Thread Erich Keane via cfe-commits
@@ -2946,5 +2955,161 @@ OpenACCReductionRecipe SemaOpenACC::CreateReductionInitRecipe( AllocaDecl->setInit(Init.get()); AllocaDecl->setInitStyle(VarDecl::CallInit); } - return OpenACCReductionRecipe(AllocaDecl, {}); + + return OpenACCReductionRecipe(AllocaDecl, Com

[clang] [llvm] [Clang] VectorExprEvaluator::VisitCallExpr / InterpretBuiltin - allow AVX/AVX512 subvector extraction intrinsics to be used in constexpr #157712 (PR #158853)

2025-10-09 Thread via cfe-commits
@@ -678,6 +678,30 @@ static bool interp__builtin_popcount(InterpState &S, CodePtr OpPC, return true; } +static bool interp__builtin_parity(InterpState &S, CodePtr OpPC, + const InterpFrame *Frame, + const C

[clang] fix: C++ empty record with align lead to va_list out of sync (PR #72197)

2025-10-09 Thread via cfe-commits
https://github.com/hstk30-hw updated https://github.com/llvm/llvm-project/pull/72197 >From 4c356e1d02ba2d0dbbfe0064173ba95db41fc698 Mon Sep 17 00:00:00 2001 From: hstk30 Date: Fri, 10 Oct 2025 00:17:09 +0800 Subject: [PATCH] fix: C++ empty record with align break aarch64 AAPCS64 --- clang/lib

[clang] [llvm] [clang][docs] Update doc and release note for probe instrumentation (PR #162606)

2025-10-09 Thread Haohai Wen via cfe-commits
https://github.com/HaohaiWen edited https://github.com/llvm/llvm-project/pull/162606 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][doc] Simplify Sampling-PGO use example (PR #162588)

2025-10-09 Thread Haohai Wen via cfe-commits
https://github.com/HaohaiWen updated https://github.com/llvm/llvm-project/pull/162588 >From c72d01cead8d1c348d2e9df2bcd27e4e1ca739dc Mon Sep 17 00:00:00 2001 From: Haohai Wen Date: Thu, 9 Oct 2025 10:52:30 +0800 Subject: [PATCH 1/3] [clang][doc] Simplify Sampling-PGO use example The -fprofile-

[clang] [docs][coroutines] Update gdb debugger script (PR #162145)

2025-10-09 Thread Adrian Vogelsgesang via cfe-commits
https://github.com/vogelsgesang closed https://github.com/llvm/llvm-project/pull/162145 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [OpenACC] Sema changes for +*&|^ reduction combiner recipes (PR #162740)

2025-10-09 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor edited https://github.com/llvm/llvm-project/pull/162740 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Sema] Keep attribute lists in the order the attributes were parsed (PR #162714)

2025-10-09 Thread Henrik G. Olsson via cfe-commits
https://github.com/hnrklssn updated https://github.com/llvm/llvm-project/pull/162714 >From dfb1520de70f3c56a74ee798180f9a82934fe40f Mon Sep 17 00:00:00 2001 From: "Henrik G. Olsson" Date: Wed, 8 Oct 2025 23:10:18 -0700 Subject: [PATCH 1/9] [attrs] Rename allAll, takeAllFrom etc. for clarity (NF

[clang] [clang][Sema] Add fortify warnings for `unistd.h` (PR #161737)

2025-10-09 Thread Oliver Hunt via cfe-commits
https://github.com/ojhunt requested changes to this pull request. I don't think that this is the best approach, it requires a lot of duplicated checks, and those checks are significantly removed from the primary bound check. I think a better approach would be to instead change this code to reco

[clang] [HLSL] Add matrix constructors using initalizer lists (PR #162743)

2025-10-09 Thread Farzon Lotfi via cfe-commits
https://github.com/farzonl created https://github.com/llvm/llvm-project/pull/162743 fixes #159434 In HLSL matrices are matrix_type in all respects except that they support a constructor style syntax for initializing matrices. This change adds a translation of vector constructor arguments into

[clang-tools-extra] [clang-tidy] add modernize-use-constexpr check (PR #146553)

2025-10-09 Thread Julian Schmidt via cfe-commits
5chmidti wrote: > > hopefully addressed all outstanding review comments > > Did you have a chance to add C23 support? (And by extension Objective-C, > which is what most of my code is :)) I have not yet added C23 support, but what I had read-up on, it seemed to be straight-forward to do. > A

[clang-tools-extra] [clang-tidy] add modernize-use-constexpr check (PR #146553)

2025-10-09 Thread via cfe-commits
@@ -142,6 +142,11 @@ New checks Finds unscoped (non-class) ``enum`` declarations and suggests using ``enum class`` instead. +- New :doc:`modernize-use-constexpr + ` check. + + Finds functions and variables that can be declared `constexpr`. EugeneZelenko

[clang-tools-extra] [clang-tidy] add modernize-use-constexpr check (PR #146553)

2025-10-09 Thread via cfe-commits
@@ -0,0 +1,47 @@ +//===--- UseUseConstexprCheck.h - clang-tidy *- C++ -*-===// EugeneZelenko wrote: ```suggestion //===--===// ``` https://github.com/llvm/llvm-project/pull/

[clang] Support HLSL matrix initializers (PR #160960)

2025-10-09 Thread Farzon Lotfi via cfe-commits
https://github.com/farzonl closed https://github.com/llvm/llvm-project/pull/160960 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] add misc-constexpr check (PR #162741)

2025-10-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: Julian Schmidt (5chmidti) Changes This check finds all functions and variables that can be declared as `constexpr`, using the specified standard version to check if the requirements are met. This is part 1/N, adding only the C++11 r

[clang] [OpenACC] Sema changes for +*&|^ reduction combiner recipes (PR #162740)

2025-10-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangir Author: Erich Keane (erichkeane) Changes As a followup to the previous AST changes, the next step is to generate the proper expressions in Sema. This patch does so for +,*,&,|,^ by modeling them as compound operators. This also causes the leg

[clang] Sort attributes according to source position before printing (PR #162556)

2025-10-09 Thread Giuliano Belinassi via cfe-commits
giulianobelinassi wrote: > Rather than sorting, can we figure out why our existing order isn't lexical? > We made a few changes a few years ago with the intent of ensuring that these > are in lexical order. > > We intentionally visit instantiations in that order, and we ensure we're > creatin

[clang-tools-extra] [clang-tidy] add modernize-use-constexpr check (PR #146553)

2025-10-09 Thread Julian Schmidt via cfe-commits
@@ -0,0 +1,972 @@ +//===--- UseConstexprCheck.cpp - clang-tidy===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[clang] [alpha.webkit.NoUnretainedMemberChecker] Allow a retaining property synthesis (PR #162576)

2025-10-09 Thread Ryosuke Niwa via cfe-commits
rniwa wrote: Thanks for the review! https://github.com/llvm/llvm-project/pull/162576 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] b7e256d - [alpha.webkit.NoUnretainedMemberChecker] Allow a retaining property synthesis (#162576)

2025-10-09 Thread via cfe-commits
Author: Ryosuke Niwa Date: 2025-10-09T14:28:11-07:00 New Revision: b7e256dce9b86ff35e38c4d0bf590969f689a8c5 URL: https://github.com/llvm/llvm-project/commit/b7e256dce9b86ff35e38c4d0bf590969f689a8c5 DIFF: https://github.com/llvm/llvm-project/commit/b7e256dce9b86ff35e38c4d0bf590969f689a8c5.diff

[clang-tools-extra] [clang-tidy] add modernize-use-constexpr check (PR #146553)

2025-10-09 Thread Julian Schmidt via cfe-commits
@@ -0,0 +1,1038 @@ +//===--- UseConstexprCheck.cpp - clang-tidy===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: A

[clang] [Sema] Keep attribute lists in the order the attributes were parsed (PR #162714)

2025-10-09 Thread Saleem Abdulrasool via cfe-commits
@@ -2647,8 +2647,8 @@ class Declarator { /// __attribute__((common,deprecated)); /// /// Also extends the range of the declarator. - void takeAttributes(ParsedAttributes &attrs) { -Attrs.takeAllFrom(attrs); + void takeAttributesAppend

[clang] [Sema] Keep attribute lists in the order the attributes were parsed (PR #162714)

2025-10-09 Thread Henrik G. Olsson via cfe-commits
@@ -2638,7 +2638,7 @@ class Declarator { return InventedTemplateParameterList; } - /// takeAttributes - Takes attributes from the given parsed-attributes + /// takeAttributesPrepend - Takes attributes from the given parsed-attributes hnrklssn wrote: T

[clang] [Sema] Keep attribute lists in the order the attributes were parsed (PR #162714)

2025-10-09 Thread Henrik G. Olsson via cfe-commits
https://github.com/hnrklssn updated https://github.com/llvm/llvm-project/pull/162714 >From dfb1520de70f3c56a74ee798180f9a82934fe40f Mon Sep 17 00:00:00 2001 From: "Henrik G. Olsson" Date: Wed, 8 Oct 2025 23:10:18 -0700 Subject: [PATCH 1/5] [attrs] Rename allAll, takeAllFrom etc. for clarity (NF

[clang] [Sema] Keep attribute lists in the order the attributes were parsed (PR #162714)

2025-10-09 Thread Henrik G. Olsson via cfe-commits
@@ -20,7 +20,7 @@ struct __attribute__((internal_linkage)) S { // expected-warning{{'internal_link __attribute__((internal_linkage("foo"))) int g(void) {} // expected-error{{'internal_linkage' attribute takes no arguments}} int var6 [[clang::internal_linkage]]; -int var7 [[c

[clang] Sort attributes according to source position before printing (PR #162556)

2025-10-09 Thread Giuliano Belinassi via cfe-commits
https://github.com/giulianobelinassi updated https://github.com/llvm/llvm-project/pull/162556 >From a1607b6fec842af2160a484a025805a50662b7e2 Mon Sep 17 00:00:00 2001 From: Giuliano Belinassi Date: Wed, 8 Oct 2025 19:02:48 -0300 Subject: [PATCH] Sort attributes according to source position befor

[libunwind] libunwind: Implement the unw_strerror function for better nongnu libunwind compatibility (PR #160887)

2025-10-09 Thread Gleb Popov via cfe-commits
arrowd wrote: I just remembered that these strings are already present in the LLVM codebase: https://github.com/llvm/llvm-project/blob/a4015d98d2ad3faba12d8c1a82942330852b9efd/libunwind/include/libunwind.h#L54-L67 https://github.com/llvm/llvm-project/pull/160887

[libcxx] [libcxxabi] [libunwind] [runtimes][NFC] Consistently declare main() functions in tests (PR #162548)

2025-10-09 Thread Oliver Hunt via cfe-commits
ojhunt wrote: > > LGTM, only question is whether this should be `const char**` > > I'm not sure it's legal. You can do `char argv[]` or `char** argv` or omit it > entirely: https://eel.is/c++draft/basic.start.main#2. Clang doesn't emit a > diagnostic so I'm not 100% certain. > > Either way, w

[clang] [Clang] Add __builtin_bswapg (PR #162433)

2025-10-09 Thread Oliver Hunt via cfe-commits
@@ -130,7 +130,7 @@ int main(void) { P(object_size, (s0, 3)); // Whatever - + P(bswapg, (N)); P(bswap16, (N)); P(bswap32, (N)); P(bswap64, (N)); ojhunt wrote: Ok, I don't know why the existing ones don't have output tests, I think you should pr

[clang] [Clang] Add __builtin_bswapg (PR #162433)

2025-10-09 Thread Oliver Hunt via cfe-commits
ojhunt wrote: Haha, I just saw the file list and thought "that's an odd file for you to add" but I see constant-builtins-2.c already exists \o/ :D That aside, please add C++ tests :D The C++ tests should include explicit template parameters, auto typed param

[clang] [Sema] Keep attribute lists in the order the attributes were parsed (PR #162714)

2025-10-09 Thread Saleem Abdulrasool via cfe-commits
@@ -20,7 +20,7 @@ struct __attribute__((internal_linkage)) S { // expected-warning{{'internal_link __attribute__((internal_linkage("foo"))) int g(void) {} // expected-error{{'internal_linkage' attribute takes no arguments}} int var6 [[clang::internal_linkage]]; -int var7 [[c

[clang] [Sema] Keep attribute lists in the order the attributes were parsed (PR #162714)

2025-10-09 Thread Saleem Abdulrasool via cfe-commits
@@ -835,16 +835,16 @@ class DeclSpec { /// \endcode /// void addAttributes(const ParsedAttributesView &AL) { -Attrs.addAll(AL.begin(), AL.end()); +Attrs.addAllPrepend(AL.begin(), AL.end()); } bool hasAttributes() const { return !Attrs.empty(); } Parse

[clang] [clang-tools-extra] [clang-tidy] Add readability-avoid-default-lambda-capture (PR #160150)

2025-10-09 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor edited https://github.com/llvm/llvm-project/pull/160150 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [clang-tidy] Add readability-avoid-default-lambda-capture (PR #160150)

2025-10-09 Thread Baranov Victor via cfe-commits
@@ -0,0 +1,71 @@ +//===--===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apac

[clang] [clang-tools-extra] [clang-tidy] Add readability-avoid-default-lambda-capture (PR #160150)

2025-10-09 Thread Baranov Victor via cfe-commits
@@ -0,0 +1,71 @@ +//===--===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apac

[clang] [clang-tools-extra] [clang-tidy] Add readability-avoid-default-lambda-capture (PR #160150)

2025-10-09 Thread Baranov Victor via cfe-commits
@@ -0,0 +1,143 @@ +// RUN: %check_clang_tidy %s readability-avoid-default-lambda-capture %t -- -- -Wno-vla-extension vbvictor wrote: Why do we need `-Wno-vla-extension`? What happens when user have vla-extension? Could we remove it or add a second run without t

[clang] [C2y] Support WG14 N3457, the __COUNTER__ macro (PR #162662)

2025-10-09 Thread Timm Baeder via cfe-commits
@@ -90,6 +90,14 @@ def err_unterminated___pragma : Error<"missing terminating ')' character">; def err_conflict_marker : Error<"version control conflict marker in file">; +def err_counter_overflow : Error< + "'__COUNTER__' value cannot exceed 2147483647">;

[clang] [RISCV][NO-MERGE] Discussions on passing tuning features from the Clang driver (PR #162716)

2025-10-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver @llvm/pr-subscribers-clang @llvm/pr-subscribers-backend-risc-v Author: Min-Yih Hsu (mshockwave) Changes Following up the discussions in the [RISC-V LLVM Syncup Meeting](https://docs.google.com/document/d/1G3ocHm2zE6AYTS2N3_3w2UxFnSEyKkcF57s

[clang] [RISCV][NO-MERGE] Discussions on passing tuning features from the Clang driver (PR #162716)

2025-10-09 Thread Min-Yih Hsu via cfe-commits
https://github.com/mshockwave created https://github.com/llvm/llvm-project/pull/162716 Following up the discussions in the [RISC-V LLVM Syncup Meeting](https://docs.google.com/document/d/1G3ocHm2zE6AYTS2N3_3w2UxFnSEyKkcF57siLWe-NVs/edit?tab=t.0#heading=h.1jq17mylab94) on Oct 9, I'm summarizing

[clang] [llvm] [LLVM] Add GNU make jobserver support (PR #145131)

2025-10-09 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-with-lto-ubuntu` running on `as-worker-91` while building `clang,llvm` at step 7 "test-stage1-compiler". Full details are available at: https://lab.llvm.org/buildbot/#/builders/49/builds/2341 Here is the relevant piec

[clang] [Sema] Keep attribute lists in the order the attributes were parsed (PR #162714)

2025-10-09 Thread Henrik G. Olsson via cfe-commits
https://github.com/hnrklssn created https://github.com/llvm/llvm-project/pull/162714 This renames some attribute list related functions, to make callers think about whether they want to append or prepend to the list, instead of defaulting to prepending which is often not the desired behaviour

[clang] [llvm] [OpenMP] Adds omp_target_is_accessible routine (PR #138294)

2025-10-09 Thread Shilei Tian via cfe-commits
@@ -196,6 +196,34 @@ EXTERN int omp_target_is_present(const void *Ptr, int DeviceNum) { return Rc; } +/// Check whether a pointer is accessible from a device. +/// Returns true when accessibility is guaranteed otherwise returns false. +EXTERN int omp_target_is_accessible(co

[clang] [Clang] Fix a regression introduced by #161163. (PR #162612)

2025-10-09 Thread Andrey Ali Khan Bolshakov via cfe-commits
@@ -1165,14 +1165,30 @@ static bool EvaluateUnaryTypeTrait(Sema &Self, TypeTrait UTT, const CXXDestructorDecl *Dtor = RD->getDestructor(); if (UnqualT->isAggregateType() && (!Dtor || !Dtor->isUserProvided())) return true; -if (RD->hasTrivialDestructor() && (!

[clang] [Clang] Fix a regression introduced by #161163. (PR #162612)

2025-10-09 Thread Andrey Ali Khan Bolshakov via cfe-commits
@@ -2066,7 +2066,27 @@ class UserProvidedConstructor { UserProvidedConstructor(const UserProvidedConstructor&)= delete; UserProvidedConstructor& operator=(const UserProvidedConstructor&) = delete; }; +struct Ctr { +Ctr(); +}; +struct Ctr2 { +Ctr2()

[clang] [Clang] Fix a regression introduced by #161163. (PR #162612)

2025-10-09 Thread Andrey Ali Khan Bolshakov via cfe-commits
@@ -1167,16 +1167,22 @@ static bool EvaluateUnaryTypeTrait(Sema &Self, TypeTrait UTT, return true; if (!(RD->hasTrivialDestructor() && (!Dtor || !Dtor->isDeleted( return false; +if (RD->hasTrivialDefaultConstructor()) + return true; bool Found

[clang-tools-extra] [llvm] [llvm][mustache] Use BumpPtrAllocator to save ASTNodes (PR #159194)

2025-10-09 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi closed https://github.com/llvm/llvm-project/pull/159194 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Call base class destructors (PR #162562)

2025-10-09 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor updated https://github.com/llvm/llvm-project/pull/162562 >From 0afc1386b97d407f5277b75b9dcc770955dd9bbf Mon Sep 17 00:00:00 2001 From: Andy Kaylor Date: Mon, 6 Oct 2025 15:43:39 -0700 Subject: [PATCH 1/2] [CIR] Call base class destructors This adds handling for ca

[clang] [Clang] Add __builtin_bswapg (PR #162433)

2025-10-09 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff origin/main HEAD --extensions c,cpp -- clang/lib/AST/ByteCode/InterpBuiltin.cpp clang

[clang] 263345b - [CIR] Implement zero-initialization of padding in constant records (#162483)

2025-10-09 Thread via cfe-commits
Author: Morris Hafner Date: 2025-10-09T19:07:05+02:00 New Revision: 263345b1b2f7967319fc943597e0a01846e9c186 URL: https://github.com/llvm/llvm-project/commit/263345b1b2f7967319fc943597e0a01846e9c186 DIFF: https://github.com/llvm/llvm-project/commit/263345b1b2f7967319fc943597e0a01846e9c186.diff

[clang-tools-extra] [clang-tidy][NFC] Update list.rst (PR #162698)

2025-10-09 Thread Victor Chernyakin via cfe-commits
localspook wrote: This check has two aliases, neither of which is documented as providing fix-its. Presumably those should be updated as well? https://github.com/llvm/llvm-project/blob/cfd52bcc2eac64ca03d3f2853745ab52676f3c8e/clang-tools-extra/docs/clang-tidy/checks/list.rst?plain=1#L574 https:/

[clang-tools-extra] [clang-tidy][NFC] Update list.rst (PR #162698)

2025-10-09 Thread Davide Cunial via cfe-commits
https://github.com/capitan-davide updated https://github.com/llvm/llvm-project/pull/162698 >From fac9b777f3c17ef212cc664cbebf1615b5a72684 Mon Sep 17 00:00:00 2001 From: Davide Cunial Date: Thu, 9 Oct 2025 18:51:09 +0200 Subject: [PATCH] [clang-tidy][NFC] Update list.rst The check 'readability-

[clang] [CIR] Implement handling for VectorType with size 3 (PR #161232)

2025-10-09 Thread Andy Kaylor via cfe-commits
andykaylor wrote: > To the extend of supporting the same llvm output as OG, are you suggesting we > should emit different LLVM? Or that OG also needs to be fixed? Regardless of what we do here, I'd like to see the handling of vector-3 loads and stores clarified in the LLVM Language Reference.

[clang] [C2y] Support WG14 N3457, the __COUNTER__ macro (PR #162662)

2025-10-09 Thread Aaron Ballman via cfe-commits
@@ -90,6 +90,14 @@ def err_unterminated___pragma : Error<"missing terminating ')' character">; def err_conflict_marker : Error<"version control conflict marker in file">; +def err_counter_overflow : Error< + "'__COUNTER__' value cannot exceed 2147483647">;

[clang] [llvm] [AllocToken, Clang] Infer type hints from sizeof expressions and casts (PR #156841)

2025-10-09 Thread Marco Elver via cfe-commits
https://github.com/melver edited https://github.com/llvm/llvm-project/pull/156841 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFCI][analyzer] Make CallEvent::getState protected (PR #162673)

2025-10-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-static-analyzer-1 Author: Donát Nagy (NagyDonat) Changes `CallEvent` instances have a reference to a state object instead having separate data members for storing the arguments (as `SVal` instances), the return value (as `SVal`, if available), th

[clang] [llvm] [clang][docs] Update doc and release note for probe instrumentation (PR #162606)

2025-10-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Haohai Wen (HaohaiWen) Changes -fpseudo-probe-for-profiling is supported for COFF in #123870. llvm-profgen supports decoding pseudo probe in #158207. This PR updates release note and adds an example to use it in UsersManual.rst. --- Full

[clang] [LLVM] Fix clang to emit llvm-ir for fadd/fsub atomics (PR #162679)

2025-10-09 Thread Amina Chabane via cfe-commits
https://github.com/Amichaxx edited https://github.com/llvm/llvm-project/pull/162679 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Sema] Fix incomplete C mode incompatible ExtInfo/ExtProtoInfo conversion diagnostic (PR #160477)

2025-10-09 Thread via cfe-commits
https://github.com/Sirraide closed https://github.com/llvm/llvm-project/pull/160477 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFCI][analyzer] Make CallEvent::getState protected (PR #162673)

2025-10-09 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat created https://github.com/llvm/llvm-project/pull/162673 `CallEvent` instances have a reference to a state object instead having separate data members for storing the arguments (as `SVal` instances), the return value (as `SVal`, if available), the dynamic type info

[clang] [llvm] Remove GtestMatchers and GtestMatchersTest (PR #162524)

2025-10-09 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman approved this pull request. LGTM, thank you for the cleanup! Do you need someone to land this on your behalf? https://github.com/llvm/llvm-project/pull/162524 ___ cfe-commits mailing list [email protected] http

[clang] Sort attributes according to source position before printing (PR #162556)

2025-10-09 Thread Erich Keane via cfe-commits
erichkeane wrote: > @erichkeane So, looking why the `asm` attribute is written after the > visibility attribute, I see on > > https://github.com/llvm/llvm-project/blob/92266681bfc89b71d1846b68da296186cd8bfbec/clang/lib/Sema/SemaDecl.cpp#L8128 > : > > ``` > ProcessDeclAttributes(S, NewVD, D);

[clang-tools-extra] [clang-tidy] Add more constexpr options to `readability-identifier-naming` (PR #162160)

2025-10-09 Thread via cfe-commits
@@ -381,6 +381,10 @@ Changes in existing checks declarations and macros in system headers. The documentation is also improved to differentiate the general options from the specific ones. +- Improved :doc:`readability-identifier-naming EugeneZelenko wrote:

[clang-tools-extra] [clang-tidy] Add more constexpr options to `readability-identifier-naming` (PR #162160)

2025-10-09 Thread Alex White via cfe-commits
https://github.com/MilkeeyCat updated https://github.com/llvm/llvm-project/pull/162160 >From e2b34ec455769291324f4a61129efffbc50faf88 Mon Sep 17 00:00:00 2001 From: MilkeeyCat Date: Mon, 6 Oct 2025 22:38:59 +0300 Subject: [PATCH] [clang-tidy] Add more constexpr options to `readability-identifi

[clang-tools-extra] [clang-tidy] Add more constexpr options to `readability-identifier-naming` (PR #162160)

2025-10-09 Thread via cfe-commits
@@ -389,6 +389,10 @@ Changes in existing checks ` check to recognize literal suffixes added in C++23 and C23. +- Improved :doc:`readability-identifier-naming EugeneZelenko wrote: Please keep alphabetical order (by check name) in this list. https://github

[clang] [SPIRV][HLSL] Add Sema and CodeGen for implicit typed buffer counters (PR #162291)

2025-10-09 Thread Steven Perron via cfe-commits
https://github.com/s-perron updated https://github.com/llvm/llvm-project/pull/162291 >From 35d1352be297163a8f4ec508db03d7c4efdc29d8 Mon Sep 17 00:00:00 2001 From: Steven Perron Date: Wed, 27 Aug 2025 14:54:28 -0400 Subject: [PATCH 1/2] [SPIRV][HLSL] Add Sema and CodeGen for implicit typed buff

[clang] [clang-tools-extra] [clang-tidy] Add readability-avoid-default-lambda-capture (PR #160150)

2025-10-09 Thread JJ Marr via cfe-commits
@@ -0,0 +1,57 @@ +.. title:: clang-tidy - readability-avoid-default-lambda-capture + +readability-avoid-default-lambda-capture + + +Warns on default lambda captures (e.g. ``[&](){ ... }``, ``[=](){ ... }``). + +Captures can lead to subtle

[clang-tools-extra] [NFC][clang-tidy] Fix potential constant overflow (PR #162647)

2025-10-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Zahira Ammarguellat (zahiraam) Changes This is a find from static analysis tool complaining about potential constant overflow for `Index`. --- Full diff: https://github.com/llvm/llvm-project/pull/162647.diff 1 Files Affecte

[clang] [clang][analyzer] Make per-entry-point metric rows uniquely identifiable (PR #161663)

2025-10-09 Thread Donát Nagy via cfe-commits
NagyDonat wrote: That sounds plausible, thanks for the answer/guess! > I don't think I'd escalate this. Maybe if we are bitten by this again in the > future. I agree, I was just curious. https://github.com/llvm/llvm-project/pull/161663 ___ cfe-commi

[clang] [llvm] Enable WPD without lto (PR #141777)

2025-10-09 Thread Hassnaa Hamdi via cfe-commits
hassnaaHamdi wrote: Closing this as we have started applying it. First patch in series: https://github.com/llvm/llvm-project/pull/159048 https://github.com/llvm/llvm-project/pull/141777 ___ cfe-commits mailing list [email protected] https://li

[clang] [OpenCL] Allow undefining cl_khr_integer_dot_product features macros (PR #162055)

2025-10-09 Thread Dr. Moritz Lehmann via cfe-commits
ProjectPhysX wrote: @wenju-he this does unfortunately not fix https://github.com/intel/compute-runtime/issues/817 as this PR is not applied to frozen Gen9 iGPUs. It only fixes https://github.com/KhronosGroup/OpenCL-Docs/issues/1328#issuecomment-2741764348 https://github.com/llvm/llvm-project/

[clang] f8dd127 - [clang][analyzer] Remove a copy in a loop in VAListChecker (#162620)

2025-10-09 Thread via cfe-commits
Author: Gábor Horváth Date: 2025-10-09T12:46:00+01:00 New Revision: f8dd127842419d85c41674699fcd8d3e6db622a7 URL: https://github.com/llvm/llvm-project/commit/f8dd127842419d85c41674699fcd8d3e6db622a7 DIFF: https://github.com/llvm/llvm-project/commit/f8dd127842419d85c41674699fcd8d3e6db622a7.diff

[clang] [AMDGPU] Support for type inferring image load/store builtins for AMDGPU (PR #140210)

2025-10-09 Thread Rana Pratap Reddy via cfe-commits
@@ -181,6 +184,92 @@ static Value *EmitAMDGCNBallotForExec(CodeGenFunction &CGF, const CallExpr *E, return Call; } +static bool IsImageSampleBuiltIn(unsigned BuiltinID) { + switch (BuiltinID) { + case clang::AMDGPU::BI__builtin_amdgcn_image_sample_1d_v4f32_f32: + case cl

[clang] [llvm] [OpenMP] Adds omp_target_is_accessible routine (PR #138294)

2025-10-09 Thread Nicole Aschenbrenner via cfe-commits
@@ -3027,6 +3027,29 @@ struct AMDGPUDeviceTy : public GenericDeviceTy, AMDGenericDeviceTy { return ((IsAPU || OMPX_ApuMaps) && IsXnackEnabled); } + bool isAccessiblePtrImpl(const void *Ptr, size_t Size) override { +hsa_amd_pointer_info_t Info; +Info.size = size

[clang] [CIR] Upstream Exception CXXTryStmt (PR #162528)

2025-10-09 Thread Amr Hesham via cfe-commits
@@ -64,3 +65,157 @@ void CIRGenFunction::emitAnyExprToExn(const Expr *e, Address addr) { // Deactivate the cleanup block. assert(!cir::MissingFeatures::ehCleanupScope()); } + +mlir::LogicalResult CIRGenFunction::emitCXXTryStmt(const CXXTryStmt &s) { + auto loc = getLoc(s.

[clang] [llvm] [Clang] VectorExprEvaluator::VisitCallExpr / InterpretBuiltin - allow AVX/AVX512 subvector extraction intrinsics to be used in constexpr #157712 (PR #158853)

2025-10-09 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon requested changes to this pull request. it looks like a merge has gone wrong at some point - as you've altered a lot of recent code changes by other commits - you might have to consider a rebase or start a new PR https://github.com/llvm/llvm-project/pull/158853 _

[clang] [X86] Add MMX/SSE/AVX PHADD/SUB & HADDPS/D intrinsics to be used in constexpr (PR #156822)

2025-10-09 Thread Simon Pilgrim via cfe-commits
@@ -579,6 +594,8 @@ let Features = "avx", Attributes = [NoThrow, Const, Constexpr, RequiredVectorWid let Features = "avx2", Attributes = [NoThrow, Const, RequiredVectorWidth<256>] in { def mpsadbw256 : X86Builtin<"_Vector<32, char>(_Vector<32, char>, _Vector<32, char>, _Con

[clang] [Clang] Ensure compound requirements do not contain placeholder expressions (PR #162618)

2025-10-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Corentin Jabot (cor3ntin) Changes The name of an overload set is not a valid id expression. Fixes #51246 --- Full diff: https://github.com/llvm/llvm-project/pull/162618.diff 4 Files Affected: - (modified) clang/docs/ReleaseNotes.rst (+

[clang] [Clang] Ensure compound requirements do not contain placeholder expressions (PR #162618)

2025-10-09 Thread Corentin Jabot via cfe-commits
https://github.com/cor3ntin created https://github.com/llvm/llvm-project/pull/162618 The name of an overload set is not a valid id expression. Fixes #51246 >From fd65f0c8fac920562c5a4a5fb238e50f293c160d Mon Sep 17 00:00:00 2001 From: Corentin Jabot Date: Thu, 9 Oct 2025 11:06:10 +0200 Subject

[clang] [Darwin][Driver] Avoid duplicate -lc++ with -fsanitize=fuzzer (PR #161304)

2025-10-09 Thread Dan Blackwell via cfe-commits
https://github.com/DanBlackwell closed https://github.com/llvm/llvm-project/pull/161304 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [LifetimeSafety] Reorganize code into modular components (PR #162474)

2025-10-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-clang-analysis Author: Utkarsh Saxena (usx95) Changes Restructure the C++ Lifetime Safety Analysis into modular components with clear separation of concerns. This PR reorganizes the C++ Lifetime Safety Analysis code by: 1. B

[clang] [llvm] [LifetimeSafety] Reorganize code into modular components (PR #162474)

2025-10-09 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 edited https://github.com/llvm/llvm-project/pull/162474 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [LifetimeSafety] Reorganize code into modular components (PR #162474)

2025-10-09 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 edited https://github.com/llvm/llvm-project/pull/162474 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Fix a regression introduced by #161163. (PR #162612)

2025-10-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Corentin Jabot (cor3ntin) Changes Classes with a user provided constructor are still implicit lifetime if they have an implicit, trivial copy ctr. --- Full diff: https://github.com/llvm/llvm-project/pull/162612.diff 2 Files Affected: -

[clang] [HIP][SPIRV] Enable the SPIRV backend instead of the translator through an experimental flag. (PR #162282)

2025-10-09 Thread Manuel Carrasco via cfe-commits
Juan Manuel Martinez =?utf-8?q?Caamaño?= ,Manuel Carrasco ,Manuel Carrasco ,Manuel Carrasco ,Manuel Carrasco ,Manuel Carrasco ,Manuel Carrasco ,Manuel Carrasco ,Manuel Carrasco ,Manuel Carrasco ,Manuel Carrasco ,Manuel Carrasco Message-ID: In-Reply-To: @@ -995,7 +995

[clang] [llvm] [clang][DWARF] Add DW_AT_bit_stride for SVE predicate types (PR #161409)

2025-10-09 Thread Sander de Smalen via cfe-commits
https://github.com/sdesmalen-arm approved this pull request. https://github.com/llvm/llvm-project/pull/161409 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits