[clang] [Modules] Don't const eval VarDecls with dependent type (PR #147378)

2025-07-08 Thread via cfe-commits
bgra8 wrote: Thanks for the quick fix @hnrklssn !! https://github.com/llvm/llvm-project/pull/147378 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 2837557 - [win][clang] Do not inject static_assert macro definition (#147030)

2025-07-08 Thread via cfe-commits
Author: Mariya Podchishchaeva Date: 2025-07-08T09:34:13+02:00 New Revision: 28375572f6679b659bb2e8a6535b4b2101b4410e URL: https://github.com/llvm/llvm-project/commit/28375572f6679b659bb2e8a6535b4b2101b4410e DIFF: https://github.com/llvm/llvm-project/commit/28375572f6679b659bb2e8a6535b4b2101b441

[clang] [win][clang] Do not inject static_assert macro definition (PR #147030)

2025-07-08 Thread Mariya Podchishchaeva via cfe-commits
https://github.com/Fznamznon closed https://github.com/llvm/llvm-project/pull/147030 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 6d14483 - [NFC][clang] Fix CodeGenSYCL::unique_stable_name_windows_diff test (#146854)

2025-07-08 Thread via cfe-commits
Author: Mariya Podchishchaeva Date: 2025-07-08T09:33:19+02:00 New Revision: 6d14483912807072d35714538ae41123686d7abd URL: https://github.com/llvm/llvm-project/commit/6d14483912807072d35714538ae41123686d7abd DIFF: https://github.com/llvm/llvm-project/commit/6d14483912807072d35714538ae41123686d7a

[clang] [NFC][clang] Fix CodeGenSYCL::unique_stable_name_windows_diff test (PR #146854)

2025-07-08 Thread Mariya Podchishchaeva via cfe-commits
https://github.com/Fznamznon closed https://github.com/llvm/llvm-project/pull/146854 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer] Enforce not making overly complicated symbols (PR #144327)

2025-07-08 Thread Balázs Benics via cfe-commits
https://github.com/balazs-benics-sonarsource updated https://github.com/llvm/llvm-project/pull/144327 From bc7dfc2b4f143c2caa1189db096bf9e4ea76f053 Mon Sep 17 00:00:00 2001 From: Balazs Benics Date: Mon, 16 Jun 2025 12:14:06 +0200 Subject: [PATCH 1/5] [analyzer] Enforce not making overly compli

[clang] [analyzer] Enforce not making overly complicated symbols (PR #144327)

2025-07-08 Thread Balázs Benics via cfe-commits
balazs-benics-sonarsource wrote: > > > So, I think if we go with the evalbinop approach, then it should work as > > > efficiently as my original proposal, while sacreficing the special cases > > > that fold away the binop. I'm fine with either of the approaches. > > > I scheduled a measurement

[clang-tools-extra] [clang-tidy] support ak_attr_info in diagnostic forwarding (PR #147503)

2025-07-08 Thread Mikael Holmén via cfe-commits
@@ -544,6 +544,9 @@ void ClangTidyDiagnosticConsumer::forwardDiagnostic(const Diagnostic &Info) { case clang::DiagnosticsEngine::ak_attr: Builder << reinterpret_cast(Info.getRawArg(Index)); break; +case clang::DiagnosticsEngine::ak_attr_info: --

[clang] [analyzer] Conversion to CheckerFamily: MallocChecker (PR #147080)

2025-07-08 Thread Balazs Benics via cfe-commits
=?utf-8?q?Donát?= Nagy , =?utf-8?q?Donát?= Nagy , =?utf-8?q?Donát?= Nagy , =?utf-8?q?Donát?= Nagy , =?utf-8?q?Donát?= Nagy , =?utf-8?q?Donát?= Nagy , =?utf-8?q?Donát?= Nagy , =?utf-8?q?Donát?= Nagy , =?utf-8?q?Donát?= Nagy Message-ID: In-Reply-To: @@ -333,11 +333,55 @@ template

[clang] [clang][bytecode] Fix __builtin_is_within_lifetime in initializers (PR #147480)

2025-07-08 Thread Corentin Jabot via cfe-commits
@@ -2208,15 +2208,27 @@ static bool interp__builtin_is_within_lifetime(InterpState &S, CodePtr OpPC, if (Ptr.isOnePastEnd()) return Error(1); - bool Result = true; + bool Result = Ptr.getLifetime() != Lifetime::Ended; if (!Ptr.isActive()) { Result = false;

[clang] [analyzer] Conversion to CheckerFamily: MallocChecker (PR #147080)

2025-07-08 Thread Balazs Benics via cfe-commits
=?utf-8?q?Don=C3=A1t?= Nagy , =?utf-8?q?Don=C3=A1t?= Nagy , =?utf-8?q?Don=C3=A1t?= Nagy , =?utf-8?q?Don=C3=A1t?= Nagy , =?utf-8?q?Don=C3=A1t?= Nagy , =?utf-8?q?Don=C3=A1t?= Nagy , =?utf-8?q?Don=C3=A1t?= Nagy , =?utf-8?q?Don=C3=A1t?= Nagy , =?utf-8?q?Don=C3=A1t?= Nagy Message-ID: In-Reply-To: ht

[clang] [APINotes] Add support for capturing all possible versioned APINotes without applying them (PR #147405)

2025-07-08 Thread Egor Zhdan via cfe-commits
https://github.com/egorzhdan approved this pull request. LGTM! https://github.com/llvm/llvm-project/pull/147405 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] support ak_attr_info in diagnostic forwarding (PR #147503)

2025-07-08 Thread Mikael Holmén via cfe-commits
https://github.com/mikaelholmen approved this pull request. LGTM since it solves the warning/error. https://github.com/llvm/llvm-project/pull/147503 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo

[clang-tools-extra] [clang-tidy] support ak_attr_info in diagnostic forwarding (PR #147503)

2025-07-08 Thread Baranov Victor via cfe-commits
vbvictor wrote: Did any of the builders caught this, or it is some local configuration? Asking just in case if we should create one for catching such CE's. https://github.com/llvm/llvm-project/pull/147503 ___ cfe-commits mailing list cfe-commits@lists

[clang-tools-extra] [clang-tidy] Add misc-bool-bitwise-operation check (PR #142324)

2025-07-08 Thread Denis Mikhailov via cfe-commits
@@ -0,0 +1,197 @@ +//===--- BoolBitwiseOperationCheck.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] [llvm] [openmp] [clang][OpenMP] New OpenMP 6.0 threadset clause (PR #135807)

2025-07-08 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 HEAD~1 HEAD --extensions cpp,h -- clang/test/OpenMP/task_threadset_messages.cpp clan

[clang] [clang][SYCL] Add sycl_external attribute and restrict emitting device code (PR #140282)

2025-07-08 Thread Mariya Podchishchaeva via cfe-commits
@@ -25,20 +40,29 @@ int main() { auto lambda2 = [](int){}; auto lambda3 = [](double){}; - kernel(lambda1); - kernel2(lambda2); - kernel3(lambda3); + kernel_wrapper(lambda1); + kernel2_wrapper(lambda2); + kernel3_wrapper(lambda3); // Ensure the kernels are named

[clang] [Sema] Remove an unnecessary cast (NFC) (PR #147546)

2025-07-08 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/147546 D is already of CXXMethodDecl *. >From fac2b8100d07fa36191caf3643218ff95adc5e9a Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Tue, 8 Jul 2025 07:18:59 -0700 Subject: [PATCH] [Sema] Remove an unnecess

[clang] 65f94d7 - [clang][bytecode] Don't crash on erroneous switch conditions (#147533)

2025-07-08 Thread via cfe-commits
Author: Timm Baeder Date: 2025-07-08T17:14:02+02:00 New Revision: 65f94d75187bdab5c853e31fbf35267258f0be67 URL: https://github.com/llvm/llvm-project/commit/65f94d75187bdab5c853e31fbf35267258f0be67 DIFF: https://github.com/llvm/llvm-project/commit/65f94d75187bdab5c853e31fbf35267258f0be67.diff L

[clang] [clang][bytecode] Don't crash on erroneous switch conditions (PR #147533)

2025-07-08 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr closed https://github.com/llvm/llvm-project/pull/147533 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Sema] Remove an unnecessary cast (NFC) (PR #147546)

2025-07-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes D is already of CXXMethodDecl *. --- Full diff: https://github.com/llvm/llvm-project/pull/147546.diff 1 Files Affected: - (modified) clang/lib/Sema/SemaTemplateInstantiateDecl.cpp (+1-1)

[clang] [clang][SYCL] Add sycl_external attribute and restrict emitting device code (PR #140282)

2025-07-08 Thread Mariya Podchishchaeva via cfe-commits
@@ -25,20 +40,29 @@ int main() { auto lambda2 = [](int){}; auto lambda3 = [](double){}; - kernel(lambda1); - kernel2(lambda2); - kernel3(lambda3); + kernel_wrapper(lambda1); + kernel2_wrapper(lambda2); + kernel3_wrapper(lambda3); // Ensure the kernels are named

[clang] 5cefb9a - [clang][bytecode] Fix __builtin_is_within_lifetime in initializers (#147480)

2025-07-08 Thread via cfe-commits
Author: Timm Baeder Date: 2025-07-08T17:17:15+02:00 New Revision: 5cefb9a367c80a69a6d80956bf8822ee0e5dd766 URL: https://github.com/llvm/llvm-project/commit/5cefb9a367c80a69a6d80956bf8822ee0e5dd766 DIFF: https://github.com/llvm/llvm-project/commit/5cefb9a367c80a69a6d80956bf8822ee0e5dd766.diff L

[clang] [clang][bytecode] Fix __builtin_is_within_lifetime in initializers (PR #147480)

2025-07-08 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr closed https://github.com/llvm/llvm-project/pull/147480 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][bytecode][NFC] Don't push anything in OffsetHelper (PR #147550)

2025-07-08 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/147550 Instead, return the new Pointer. This was weird before because some callers had to get the value from the stack again to perform further operations. >From e0dc4095477f345470a37e3b826385822448078e Mon Sep 17 00

[clang] [clang][bytecode][NFC] Don't push anything in OffsetHelper (PR #147550)

2025-07-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes Instead, return the new Pointer. This was weird before because some callers had to get the value from the stack again to perform further operations. --- Full diff: https://github.com/llvm/llvm-project/pull/1

[clang] [Clang] suppress deprecated field warnings in implicit special-member functions (PR #147400)

2025-07-08 Thread Shashi Shankar via cfe-commits
https://github.com/shashi1687 updated https://github.com/llvm/llvm-project/pull/147400 >From 29c3c9c6d25cc7c47d01a9d819ea37e92361aea2 Mon Sep 17 00:00:00 2001 From: Shashi Shankar Date: Mon, 7 Jul 2025 22:54:22 +0200 Subject: [PATCH 1/3] Sema: suppress deprecated field warnings in implicit spe

[clang] [analyzer] Remove redundant bug type DoubleDelete (PR #147542)

2025-07-08 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat updated https://github.com/llvm/llvm-project/pull/147542 From 21d04521ec866b1d7850e2d7b758ceaa891359da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Don=C3=A1t=20Nagy?= Date: Tue, 8 Jul 2025 16:44:04 +0200 Subject: [PATCH 1/2] [analyzer] Remove redundant bug type DoubleD

[clang] [KeyInstrs] Disable key-instructions for coroutine scopes (PR #147551)

2025-07-08 Thread Jeremy Morse via cfe-commits
https://github.com/jmorse created https://github.com/llvm/llvm-project/pull/147551 At this time (immediately prior to llvm21 branching) we haven't instrumented coroutine generation to identify the "key" instructions of things like co_return and similar. This will lead to worse stepping behavio

[clang] [clang][SYCL] Add sycl_external attribute and restrict emitting device code (PR #140282)

2025-07-08 Thread via cfe-commits
@@ -25,20 +40,29 @@ int main() { auto lambda2 = [](int){}; auto lambda3 = [](double){}; - kernel(lambda1); - kernel2(lambda2); - kernel3(lambda3); + kernel_wrapper(lambda1); + kernel2_wrapper(lambda2); + kernel3_wrapper(lambda3); // Ensure the kernels are named

[clang] [Clang] WIP: Take libstdc++ into account during GCC detection (PR #145056)

2025-07-08 Thread Frederik Harwath via cfe-commits
https://github.com/frederik-h updated https://github.com/llvm/llvm-project/pull/145056 >From 87c03ace23467a7d6cb7e466a02309b5b287a013 Mon Sep 17 00:00:00 2001 From: Frederik Harwath Date: Wed, 19 Feb 2025 16:01:56 +0100 Subject: [PATCH 1/3] [Clang] Take libstdc++ into account during GCC detecti

[clang] [KeyInstrs] Disable key-instructions for coroutine scopes (PR #147551)

2025-07-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-debuginfo Author: Jeremy Morse (jmorse) Changes At this time (immediately prior to llvm21 branching) we haven't instrumented coroutine generation to identify the "key" instructions of things like co_return and similar. This will lead to worse stepping

[clang] [llvm] [PowerPC][clang] Fix triple constructor ambiguity causing "unknown" target triple on AIX (PR #147488)

2025-07-08 Thread Hubert Tong via cfe-commits
@@ -55,7 +55,7 @@ static std::string updateTripleOSVersion(std::string TargetTripleString) { // On AIX, the AIX version and release should be that of the current host // unless if the version has already been specified. if (Triple(LLVM_HOST_TRIPLE).getOS() == Triple::AIX

[clang] [clang][SYCL] Add sycl_external attribute and restrict emitting device code (PR #140282)

2025-07-08 Thread Mariya Podchishchaeva via cfe-commits
@@ -25,20 +40,29 @@ int main() { auto lambda2 = [](int){}; auto lambda3 = [](double){}; - kernel(lambda1); - kernel2(lambda2); - kernel3(lambda3); + kernel_wrapper(lambda1); + kernel2_wrapper(lambda2); + kernel3_wrapper(lambda3); // Ensure the kernels are named

[clang] [Clang] WIP: Take libstdc++ into account during GCC detection (PR #145056)

2025-07-08 Thread Frederik Harwath via cfe-commits
https://github.com/frederik-h updated https://github.com/llvm/llvm-project/pull/145056 >From 87c03ace23467a7d6cb7e466a02309b5b287a013 Mon Sep 17 00:00:00 2001 From: Frederik Harwath Date: Wed, 19 Feb 2025 16:01:56 +0100 Subject: [PATCH 1/5] [Clang] Take libstdc++ into account during GCC detecti

[clang-tools-extra] [clang-tidy] added `RespectOpaqueTypes` option to `readability-qualified-auto check` (PR #147060)

2025-07-08 Thread Juan Besa via cfe-commits
https://github.com/JuanBesa updated https://github.com/llvm/llvm-project/pull/147060 >From d176aa31c18a4293be9b49da671270d349a323b7 Mon Sep 17 00:00:00 2001 From: juanbesa Date: Thu, 26 Jun 2025 07:42:55 -0700 Subject: [PATCH 1/3] Copied over everything --- .../readability/QualifiedAutoCheck.

[clang-tools-extra] [clang-tidy] added `RespectOpaqueTypes` option to `readability-qualified-auto check` (PR #147060)

2025-07-08 Thread Juan Besa via cfe-commits
https://github.com/JuanBesa updated https://github.com/llvm/llvm-project/pull/147060 >From d176aa31c18a4293be9b49da671270d349a323b7 Mon Sep 17 00:00:00 2001 From: juanbesa Date: Thu, 26 Jun 2025 07:42:55 -0700 Subject: [PATCH 1/4] Copied over everything --- .../readability/QualifiedAutoCheck.

[clang-tools-extra] [clang-tidy] added `RespectOpaqueTypes` option to `readability-qualified-auto check` (PR #147060)

2025-07-08 Thread Juan Besa via cfe-commits
https://github.com/JuanBesa updated https://github.com/llvm/llvm-project/pull/147060 >From d176aa31c18a4293be9b49da671270d349a323b7 Mon Sep 17 00:00:00 2001 From: juanbesa Date: Thu, 26 Jun 2025 07:42:55 -0700 Subject: [PATCH 1/5] Copied over everything --- .../readability/QualifiedAutoCheck.

[clang] bbefd33 - [CIR] Implement CXXScalarValueInitExpr for ComplexType (#147143)

2025-07-08 Thread via cfe-commits
Author: Amr Hesham Date: 2025-07-08T17:36:40+02:00 New Revision: bbefd33ae619977d44b221e9917143e7f92aab94 URL: https://github.com/llvm/llvm-project/commit/bbefd33ae619977d44b221e9917143e7f92aab94 DIFF: https://github.com/llvm/llvm-project/commit/bbefd33ae619977d44b221e9917143e7f92aab94.diff LO

[clang] [CIR] Implement CXXScalarValueInitExpr for ComplexType (PR #147143)

2025-07-08 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper closed https://github.com/llvm/llvm-project/pull/147143 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer] Remove redundant bug type DoubleDelete (PR #147542)

2025-07-08 Thread Balazs Benics via cfe-commits
=?utf-8?q?Don=C3=A1t?= Nagy Message-ID: In-Reply-To: @@ -412,7 +412,7 @@ class DerefClass{ void testDoubleDeleteClassInstance() { DerefClass *foo = new DerefClass(); delete foo; - delete foo; // newdelete-warning {{Attempt to delete released memory}} + delete foo; // n

[clang] [analyzer] Remove redundant bug type DoubleDelete (PR #147542)

2025-07-08 Thread Balazs Benics via cfe-commits
=?utf-8?q?Donát?= Nagy Message-ID: In-Reply-To: @@ -3324,7 +3298,7 @@ void MallocChecker::checkUseZeroAllocated(SymbolRef Sym, CheckerContext &C, bool MallocChecker::checkDoubleDelete(SymbolRef Sym, CheckerContext &C) const { if (isReleased(Sym, C)) { -HandleDoubleDe

[clang-tools-extra] [clang-tidy][NFC] Do less unnecessary work in `NoLintDirectiveHandler` (PR #147553)

2025-07-08 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook created https://github.com/llvm/llvm-project/pull/147553 I plan to do more work in this area, but I feel this is a good first set of changes. Summary: - `NoLintBlockToken` is too big: it stores a whole `NoLintToken` inside itself, when all it needs from that `NoL

[clang-tools-extra] [clang-tidy] added `RespectOpaqueTypes` option to `readability-qualified-auto check` (PR #147060)

2025-07-08 Thread Juan Besa via cfe-commits
@@ -174,6 +176,21 @@ void QualifiedAutoCheck::registerMatchers(MatchFinder *Finder) { void QualifiedAutoCheck::check(const MatchFinder::MatchResult &Result) { if (const auto *Var = Result.Nodes.getNodeAs("auto")) { +if (RespectOpaqueTypes) { JuanBesa wr

[clang-tools-extra] [clang-tidy][NFC] Do less unnecessary work in `NoLintDirectiveHandler` (PR #147553)

2025-07-08 Thread Victor Chernyakin via cfe-commits
@@ -31,8 +31,6 @@ class NoLintDirectiveHandler { public: NoLintDirectiveHandler(); ~NoLintDirectiveHandler(); - NoLintDirectiveHandler(const NoLintDirectiveHandler &) = delete; - NoLintDirectiveHandler &operator=(const NoLintDirectiveHandler &) = delete;

[clang-tools-extra] [clang-tidy][NFC] Do less unnecessary work in `NoLintDirectiveHandler` (PR #147553)

2025-07-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: Victor Chernyakin (localspook) Changes I plan to do more work in this area, but I feel this is a good first set of changes. Summary: - `NoLintBlockToken` is too big: it stores a whole `NoLintToken` inside itself, when all it needs f

[clang-tools-extra] [clang-tidy][NFC] Do less unnecessary work in `NoLintDirectiveHandler` (PR #147553)

2025-07-08 Thread via cfe-commits
github-actions[bot] wrote: Thank you for submitting a Pull Request (PR) to the LLVM Project! This PR will be automatically labeled and the relevant teams will be notified. If you wish to, you can add reviewers by using the "Reviewers" section on this page. If this is not working for you, it

[clang] 5adb9a2 - [Clang] Fix crash on `void{}` (#147514)

2025-07-08 Thread via cfe-commits
Author: Corentin Jabot Date: 2025-07-08T17:40:43+02:00 New Revision: 5adb9a2936855a27d4325a7a73b691f8aa67f35c URL: https://github.com/llvm/llvm-project/commit/5adb9a2936855a27d4325a7a73b691f8aa67f35c DIFF: https://github.com/llvm/llvm-project/commit/5adb9a2936855a27d4325a7a73b691f8aa67f35c.diff

[clang] [Clang] Fix crash on `void{}` (PR #147514)

2025-07-08 Thread Corentin Jabot via cfe-commits
https://github.com/cor3ntin closed https://github.com/llvm/llvm-project/pull/147514 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer] Remove redundant bug type DoubleDelete (PR #147542)

2025-07-08 Thread Balazs Benics via cfe-commits
=?utf-8?q?Donát?= Nagy Message-ID: In-Reply-To: @@ -412,7 +412,7 @@ class DerefClass{ void testDoubleDeleteClassInstance() { DerefClass *foo = new DerefClass(); delete foo; - delete foo; // newdelete-warning {{Attempt to delete released memory}} + delete foo; // newdel

[clang] [AMDGPU][Clang] Support bfloat16 arithmetic. (PR #147541)

2025-07-08 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm approved this pull request. I thought this was enabled a long time ago? https://github.com/llvm/llvm-project/pull/147541 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/

[clang] e29ac9b - [Clang] Do not mark ambiguous specialization invalid. (#147275)

2025-07-08 Thread via cfe-commits
Author: Corentin Jabot Date: 2025-07-08T17:41:11+02:00 New Revision: e29ac9bc2e0ae8871dccea939554b39589cc07bd URL: https://github.com/llvm/llvm-project/commit/e29ac9bc2e0ae8871dccea939554b39589cc07bd DIFF: https://github.com/llvm/llvm-project/commit/e29ac9bc2e0ae8871dccea939554b39589cc07bd.diff

[clang] [analyzer][NFC] Remove irrelevant overcomplicated test (PR #147536)

2025-07-08 Thread Balazs Benics via cfe-commits
https://github.com/steakhal approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/147536 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Do not mark ambiguous specialization invalid. (PR #147275)

2025-07-08 Thread Corentin Jabot via cfe-commits
https://github.com/cor3ntin closed https://github.com/llvm/llvm-project/pull/147275 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] support ak_attr_info in diagnostic forwarding (PR #147503)

2025-07-08 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk closed https://github.com/llvm/llvm-project/pull/147503 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer] Enforce not making overly complicated symbols (PR #144327)

2025-07-08 Thread Balázs Benics via cfe-commits
https://github.com/balazs-benics-sonarsource closed https://github.com/llvm/llvm-project/pull/144327 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [HLSL][DXIL] Implement `refract` intrinsic (PR #147342)

2025-07-08 Thread Farzon Lotfi via cfe-commits
@@ -475,6 +475,65 @@ reflect(__detail::HLSL_FIXED_VECTOR I, return __detail::reflect_vec_impl(I, N); } +//===--===// +// refract builtin +//===

[clang] [Clang][SME] Refactor checkArmStreamingBuiltin. (PR #145941)

2025-07-08 Thread Paul Walker via cfe-commits
https://github.com/paulwalker-arm closed https://github.com/llvm/llvm-project/pull/145941 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] e4d0068 - [Clang][SME] Refactor checkArmStreamingBuiltin. (#145941)

2025-07-08 Thread via cfe-commits
Author: Paul Walker Date: 2025-07-08T13:55:22+01:00 New Revision: e4d00683c3285ccd1f8d5053efe691e980a54576 URL: https://github.com/llvm/llvm-project/commit/e4d00683c3285ccd1f8d5053efe691e980a54576 DIFF: https://github.com/llvm/llvm-project/commit/e4d00683c3285ccd1f8d5053efe691e980a54576.diff L

[clang] [C23][Parser] Diagnostic for attribute declaration where statement is required (PR #146224)

2025-07-08 Thread via cfe-commits
https://github.com/yronglin updated https://github.com/llvm/llvm-project/pull/146224 >From 43e2dc670d7c9ed5e23b5d26dff1e273c84b5a53 Mon Sep 17 00:00:00 2001 From: yronglin Date: Thu, 3 Jul 2025 02:15:22 +0800 Subject: [PATCH 1/7] [C23][Parser] Diagnostic for attribute declaration where stateme

[clang] [Clang] Do not mark ambiguous specialization invalid. (PR #147275)

2025-07-08 Thread Corentin Jabot via cfe-commits
@@ -4111,7 +4111,10 @@ static ActionResult getPatternForClassTemplateSpecialization( if (Ambiguous) { // Partial ordering did not produce a clear winner. Complain. Inst.Clear(); - ClassTemplateSpec->setInvalidDecl(); + + if (!S.isS

[clang] [Clang] Do not mark ambiguous specialization invalid. (PR #147275)

2025-07-08 Thread Corentin Jabot via cfe-commits
https://github.com/cor3ntin edited https://github.com/llvm/llvm-project/pull/147275 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Fix crash on `void{}` (PR #147514)

2025-07-08 Thread Corentin Jabot via cfe-commits
https://github.com/cor3ntin updated https://github.com/llvm/llvm-project/pull/147514 >From 4b536efe500f3b9099d1cf1a1a8775633e193249 Mon Sep 17 00:00:00 2001 From: Corentin Jabot Date: Tue, 8 Jul 2025 14:34:16 +0200 Subject: [PATCH 1/2] [Clang] Fix crash on `void{}` Caused by an incorrect asser

[clang] [clang] CTAD alias: Respect explicit deduction guides defined after the first use of the alias template. (PR #125478)

2025-07-08 Thread Adrian Vogelsgesang via cfe-commits
vogelsgesang wrote: @hokein is there still anything missing to set the feature test macro and mark P1814 as done on https://clang.llvm.org/cxx_status.html#cxx26? https://github.com/llvm/llvm-project/pull/125478 ___ cfe-commits mailing list cfe-commits

[clang] [llvm] [PowerPC][clang] Fix triple constructor ambiguity causing "unknown" target triple on AIX (PR #147488)

2025-07-08 Thread Tony Varghese via cfe-commits
@@ -0,0 +1,15 @@ +// Test for the Triple constructor ambiguity fix on AIX +// This test verifies that the default target triple is correctly resolved +// and doesn't fall back to "unknown" due to constructor ambiguity. + +// REQUIRES: system-aix +// RUN: %clang -v %s -c 2>&1 | Fil

[clang-tools-extra] [clang-tidy] added `RespectOpaqueTypes` option to `readability-qualified-auto check` (PR #147060)

2025-07-08 Thread Juan Besa via cfe-commits
JuanBesa wrote: I updated the Check to only modify the matcher. Will update tests + option name soon. I have found a case which I don't know how to manage. The case is as follows (following tests format): ``` namespace std { template class vector { // dummy impl T _data[1]; public: T *b

[clang] [Clang][NFC] Add alias target for amdgpu-arch-tool and nvptx-arch-tool (PR #147558)

2025-07-08 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 created https://github.com/llvm/llvm-project/pull/147558 Summary: These commands both do the same thing and behave like the same tool. Now, the `nvptx-arch` and `amdgpu-arch` tools cause it to only emit architectures for that name. >From a24b068349265b2741763711afdcb

[clang] [llvm] [HLSL][DXIL] Implement `refract` intrinsic (PR #147342)

2025-07-08 Thread Farzon Lotfi via cfe-commits
@@ -71,6 +71,42 @@ constexpr vector reflect_vec_impl(vector I, vector N) { #endif } +template constexpr T refract_impl(T I, T N, T Eta) { + T Mul = N * I; + T K = 1 - Eta * Eta * (1 - (Mul * Mul)); + T Result = (Eta * I - (Eta * Mul + sqrt(K)) * N); + return select(K < 0

[clang] [Clang][NFC] Add alias target for amdgpu-arch-tool and nvptx-arch-tool (PR #147558)

2025-07-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-clang-driver Author: Joseph Huber (jhuber6) Changes Summary: These commands both do the same thing and behave like the same tool. Now, the `nvptx-arch` and `amdgpu-arch` tools cause it to only emit architectures for that name.

[clang] [llvm] [openmp] [clang][OpenMP] New OpenMP 6.0 threadset clause (PR #135807)

2025-07-08 Thread via cfe-commits
@@ -3700,6 +3700,7 @@ CGOpenMPRuntime::emitTaskInit(CodeGenFunction &CGF, SourceLocation Loc, DestructorsFlag = 0x8, PriorityFlag = 0x20, DetachableFlag = 0x40, +FreeAgentFlag = 0x100, jprotze wrote: According to the runtime patch, this should

[clang] [llvm] [PowerPC][clang] Fix triple constructor ambiguity causing "unknown" target triple on AIX (PR #147488)

2025-07-08 Thread Tony Varghese via cfe-commits
https://github.com/tonykuttai updated https://github.com/llvm/llvm-project/pull/147488 >From 9d9ed1f239e4e156effcd7c46487c4aeb1201660 Mon Sep 17 00:00:00 2001 From: Tony Varghese Date: Tue, 8 Jul 2025 05:04:12 -0400 Subject: [PATCH 1/2] [PowerPC][clang] Fix triple constructor ambiguity causing

[clang] [llvm] [openmp] [clang][OpenMP] New OpenMP 6.0 threadset clause (PR #135807)

2025-07-08 Thread via cfe-commits
https://github.com/Ritanya-B-Bharadwaj updated https://github.com/llvm/llvm-project/pull/135807 >From 9c56e59ba9984c14c15a8d5a95a02e7192a64e8f Mon Sep 17 00:00:00 2001 From: Ritanya B Bharadwaj Date: Sun, 6 Apr 2025 09:33:06 -0500 Subject: [PATCH 1/8] [OpenMP] Parsing Support of ThreadSets in T

[clang] [llvm] [HLSL][DXIL] Implement `refract` intrinsic (PR #147342)

2025-07-08 Thread Farzon Lotfi via cfe-commits
https://github.com/farzonl edited https://github.com/llvm/llvm-project/pull/147342 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [HLSL][DXIL] Implement `refract` intrinsic (PR #147342)

2025-07-08 Thread Farzon Lotfi via cfe-commits
@@ -475,6 +475,65 @@ reflect(__detail::HLSL_FIXED_VECTOR I, return __detail::reflect_vec_impl(I, N); } +//===--===// +// refract builtin +//===

[clang] [Clang] Take libstdc++ into account during GCC detection (PR #145056)

2025-07-08 Thread Frederik Harwath via cfe-commits
https://github.com/frederik-h edited https://github.com/llvm/llvm-project/pull/145056 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Fix crash on `void{}` (PR #147514)

2025-07-08 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik commented: I guess we missed a release note? https://github.com/llvm/llvm-project/pull/147514 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] bd6e904 - [LLVM][AArch64] Relax SVE codegen predicates for sm4 instructions (#147524)

2025-07-08 Thread via cfe-commits
Author: Elvina Yakubova Date: 2025-07-08T17:04:21+01:00 New Revision: bd6e9047dda95f0acf0207094bbc8c0f6ce27eb7 URL: https://github.com/llvm/llvm-project/commit/bd6e9047dda95f0acf0207094bbc8c0f6ce27eb7 DIFF: https://github.com/llvm/llvm-project/commit/bd6e9047dda95f0acf0207094bbc8c0f6ce27eb7.dif

[clang] [llvm] [LLVM][AArch64] Relax SVE codegen predicates for sm4 instructions (PR #147524)

2025-07-08 Thread Elvina Yakubova via cfe-commits
https://github.com/ElvinaYakubova closed https://github.com/llvm/llvm-project/pull/147524 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [WebAssembly,llvm] Add llvm.wasm.ref.test.func intrinsic (PR #147076)

2025-07-08 Thread Hood Chatham via cfe-commits
hoodmane wrote: Closing in favor of #147486. https://github.com/llvm/llvm-project/pull/147076 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [WebAssembly,llvm] Add llvm.wasm.ref.test.func intrinsic (PR #147076)

2025-07-08 Thread Hood Chatham via cfe-commits
https://github.com/hoodmane closed https://github.com/llvm/llvm-project/pull/147076 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] suppress deprecated field warnings in implicit special-member functions (PR #147400)

2025-07-08 Thread Shashi Shankar via cfe-commits
https://github.com/shashi1687 updated https://github.com/llvm/llvm-project/pull/147400 >From 29c3c9c6d25cc7c47d01a9d819ea37e92361aea2 Mon Sep 17 00:00:00 2001 From: Shashi Shankar Date: Mon, 7 Jul 2025 22:54:22 +0200 Subject: [PATCH 1/3] Sema: suppress deprecated field warnings in implicit spe

[clang] [Clang] suppress deprecated field warnings in implicit special-member functions (PR #147400)

2025-07-08 Thread Corentin Jabot via cfe-commits
@@ -547,6 +547,15 @@ static void DoEmitAvailabilityWarning(Sema &S, AvailabilityResult K, return; } case AR_Deprecated: +// Suppress -Wdeprecated-declarations in purely implicit special-member functions. +if (auto *MD = dyn_cast_if_present(S.getCurFunctionDecl

[clang] Sema: filter out invalid base-specifiers before attaching (PR #147213)

2025-07-08 Thread Shashi Shankar via cfe-commits
https://github.com/shashi1687 updated https://github.com/llvm/llvm-project/pull/147213 >From 05211dac479bf25aaf6d8ecc3a53871a51f7ffdd Mon Sep 17 00:00:00 2001 From: Shashi Shankar Date: Sun, 6 Jul 2025 22:25:48 +0200 Subject: [PATCH] Sema: filter out invalid base-specifiers before attaching Ac

[clang] [clang][test] Avoid some C++14 warnings in discrim-union.cpp (PR #146829)

2025-07-08 Thread Timm Baeder via cfe-commits
tbaederr wrote: Ping https://github.com/llvm/llvm-project/pull/146829 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] 0ff01ef - [clang-tidy] support ak_attr_info in diagnostic forwarding (#147503)

2025-07-08 Thread via cfe-commits
Author: Oleksandr T. Date: 2025-07-08T15:08:42+03:00 New Revision: 0ff01ef9d457820eb5c670461b15084e2ac962a0 URL: https://github.com/llvm/llvm-project/commit/0ff01ef9d457820eb5c670461b15084e2ac962a0 DIFF: https://github.com/llvm/llvm-project/commit/0ff01ef9d457820eb5c670461b15084e2ac962a0.diff

[clang-tools-extra] [clang-tidy] Add new check `llvm-prefer-static-over-anonymous-namespace` (PR #142839)

2025-07-08 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor updated https://github.com/llvm/llvm-project/pull/142839 >From d9ecaedefd6d98c653affc76e375fa1f8644a0df Mon Sep 17 00:00:00 2001 From: Victor Baranov Date: Wed, 4 Jun 2025 22:29:51 +0300 Subject: [PATCH 1/4] [clang-tidy] Add new check `llvm-prefer-static-over-anonym

[clang] [Clang] Fix crash on `void{}` (PR #147514)

2025-07-08 Thread Erich Keane via cfe-commits
@@ -5,3 +5,12 @@ void f() // CHECK: store i32 0 int i{}; } + + +namespace GH116440 { +void f() { + void{}; + void(); +} erichkeane wrote: Just the function header then `CHECK-NEXT: ret void` confirms that it actually does nothing/makes it through codege

[clang-tools-extra] [clang-tidy] Add new check `llvm-prefer-static-over-anonymous-namespace` (PR #142839)

2025-07-08 Thread Baranov Victor via cfe-commits
vbvictor wrote: Ping if anyone else what to review this new check. https://github.com/llvm/llvm-project/pull/142839 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Better handle overload of explicit object member functions (PR #147498)

2025-07-08 Thread Erich Keane via cfe-commits
@@ -1536,10 +1536,19 @@ static bool IsOverloadOrOverrideImpl(Sema &SemaRef, FunctionDecl *New, !F->isExplicitObjectMemberFunction(); }; - if (IsImplicitWithNoRefQual(Old) != IsImplicitWithNoRefQual(New) && - CompareType(OldObjectType.getNonR

[clang] [libclang][Cygwin] Provide unversioned DLL file alongside versioned one (PR #147132)

2025-07-08 Thread Tomohiro Kashiwada via cfe-commits
kikairoya wrote: I'm thinking about each DLLs: - libLLVM: - On Linux: `libLLVM.so`(symlink) and `libLLVM.so.21.0git` are built and installed. `libLLVM-21git.so`(symlink) is installed but doesn't appear in build-tree. - On Cygwin: Only `libLLVM-21git.dll.a` and `cygLLVM-21git.dll`

[clang] [Clang] Fix crash on `void{}` (PR #147514)

2025-07-08 Thread Erich Keane via cfe-commits
@@ -5,3 +5,12 @@ void f() // CHECK: store i32 0 int i{}; } + + +namespace GH116440 { +void f() { + void{}; + void(); +} erichkeane wrote: Can you add check-lines to this one? https://github.com/llvm/llvm-project/pull/147514 _

[clang-tools-extra] [clang-tidy] Add new check `llvm-prefer-static-over-anonymous-namespace` (PR #142839)

2025-07-08 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor updated https://github.com/llvm/llvm-project/pull/142839 >From d9ecaedefd6d98c653affc76e375fa1f8644a0df Mon Sep 17 00:00:00 2001 From: Victor Baranov Date: Wed, 4 Jun 2025 22:29:51 +0300 Subject: [PATCH 1/3] [clang-tidy] Add new check `llvm-prefer-static-over-anonym

[clang] [Clang] Fix crash on `void{}` (PR #147514)

2025-07-08 Thread Corentin Jabot via cfe-commits
@@ -5,3 +5,12 @@ void f() // CHECK: store i32 0 int i{}; } + + +namespace GH116440 { +void f() { + void{}; + void(); +} cor3ntin wrote: What do you want me to check? noting is emitted https://github.com/llvm/llvm-project/pull/147514 ___

[clang] [Clang][AArch64] Fix feature guards for SVE2p1 builtins available in SME{2}. (PR #147086)

2025-07-08 Thread Paul Walker via cfe-commits
https://github.com/paulwalker-arm updated https://github.com/llvm/llvm-project/pull/147086 >From 4efe257b27e6a76740a425ca93dd35cfac38919b Mon Sep 17 00:00:00 2001 From: Paul Walker Date: Thu, 26 Jun 2025 17:28:11 +0100 Subject: [PATCH] [Clang][AArch64] Fix feature guards for SVE2p1 builtins av

[clang] [Clang] Better handle overload of explicit object member functions (PR #147498)

2025-07-08 Thread Corentin Jabot via cfe-commits
https://github.com/cor3ntin updated https://github.com/llvm/llvm-project/pull/147498 >From 90648944f6e27de2b150f33887798c221bbb19b4 Mon Sep 17 00:00:00 2001 From: Corentin Jabot Date: Tue, 8 Jul 2025 11:53:21 +0200 Subject: [PATCH 1/2] [Clang] Better handle overload of explicit object member f

[clang] [Clang] suppress deprecated field warnings in implicit special-member functions (PR #147400)

2025-07-08 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 HEAD~1 HEAD --extensions cpp -- clang/test/Sema/implicit-special-member-deprecated.cp

[clang] [flang] [flang] Add -fcomplex-arithmetic= option and select complex division algorithm (PR #146641)

2025-07-08 Thread Tarun Prabhu via cfe-commits
https://github.com/tarunprabhu approved this pull request. https://github.com/llvm/llvm-project/pull/146641 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][bytecode] Fix __builtin_is_within_lifetime in initializers (PR #147480)

2025-07-08 Thread Timm Baeder via cfe-commits
@@ -2208,15 +2208,27 @@ static bool interp__builtin_is_within_lifetime(InterpState &S, CodePtr OpPC, if (Ptr.isOnePastEnd()) return Error(1); - bool Result = true; + bool Result = Ptr.getLifetime() != Lifetime::Ended; if (!Ptr.isActive()) { Result = false;

[clang] [clang][bytecode] Fix __builtin_is_within_lifetime in initializers (PR #147480)

2025-07-08 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/147480 >From 65064c550da607bc4550c5764932d0160d53c3ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Tue, 8 Jul 2025 09:32:37 +0200 Subject: [PATCH] [clang][bytecode] Fix __builtin_is_within_lifeti

[clang] [llvm] [LLVM][AArch64] Relax SVE codegen predicates for sm4 instructions (PR #147524)

2025-07-08 Thread Paul Walker via cfe-commits
@@ -370,8 +370,11 @@ def FeatureSVEAES : ExtensionWithMArch<"sve-aes", "SVEAES", def FeatureAliasSVE2AES : ExtensionWithMArch<"sve2-aes", "SVE2AES", "", "Shorthand for +sve2+sve-aes", [FeatureSVE2, FeatureSVEAES]>; -def FeatureSVE2SM4 : ExtensionWithMArch<"sve2-sm4", "SVE2SM

<    1   2   3   4   >