[clang] [llvm] [clang][python][test] Move python binding tests to lit framework (PR #146844)

2025-07-08 Thread Jannick Kremer via cfe-commits
DeinAlptraum wrote: Thansk for the explainer! That gives me something to test, I will try a cross-compile with GCC and see if I can reproduce it locally. >It's not immediately obvious to me why the host compiler would make any >difference on this particular PR ... We are changing how the Clan

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

2025-07-08 Thread Kerry McLaughlin via cfe-commits
https://github.com/kmclaughlin-arm approved this pull request. https://github.com/llvm/llvm-project/pull/147086 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] include attribute scope in diagnostics (PR #144619)

2025-07-08 Thread Mikael Holmén via cfe-commits
mikaelholmen wrote: Hi @a-tarasyuk , With this patch I get the following when building clang-tidy: ``` ../../clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.cpp:504:13: error: enumeration value 'ak_attr_info' not handled in switch [-Werror,-Wswitch] 504 | switch (Kind) { |

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

2025-07-08 Thread Donát Nagy via cfe-commits
@@ -333,11 +333,55 @@ template static bool isStandardNewDelete(const T &FD) { return isStandardDelete(FD) || isStandardNew(FD); } +namespace { + //===--===// -// Definition of the MallocChecker class. +/

[clang] Sema: suppress deprecated field warnings in implicit special-member functions Fixes: https://github.com/llvm/llvm-project/issues/147293 (PR #147400)

2025-07-08 Thread Shashi Shankar via cfe-commits
shashi1687 wrote: Hello @zwuis/everyone, Thank you again for your thorough review. I’ve incorporated all suggestions: * Moved the suppression guard into the `case AR_Deprecated:` block * Used `dyn_cast_if_present` with a single `isImplicit() && isDefaulted()` check * Combined constructor & dest

[clang] [NFC] [C++] [Modules] Mark P2115 as implemented and add test (PR #147489)

2025-07-08 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 approved this pull request. https://github.com/llvm/llvm-project/pull/147489 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 1830b87 - [NFC] [C++] [Modules] Mark P2115 as implemented and add test (#147489)

2025-07-08 Thread via cfe-commits
Author: Ashwin Kishin Banwari Date: 2025-07-08T18:36:53+08:00 New Revision: 1830b870902e4632f91fa8b25e57bff6b09bd25e URL: https://github.com/llvm/llvm-project/commit/1830b870902e4632f91fa8b25e57bff6b09bd25e DIFF: https://github.com/llvm/llvm-project/commit/1830b870902e4632f91fa8b25e57bff6b09bd2

[clang] [NFC] [C++] [Modules] Mark P2115 as implemented and add test (PR #147489)

2025-07-08 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 closed https://github.com/llvm/llvm-project/pull/147489 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Fix pointer comparisons between pointers to constexpr-unknown (PR #147663)

2025-07-08 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic created https://github.com/llvm/llvm-project/pull/147663 A constexpr-unknown reference can be equal to an arbitrary value, except values allocated during constant evaluation. Fix the handling. The standard is unclear exactly which pointer comparisons count as "

[clang] [clang] Fix pointer comparisons between pointers to constexpr-unknown (PR #147663)

2025-07-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Eli Friedman (efriedma-quic) Changes A constexpr-unknown reference can be equal to an arbitrary value, except values allocated during constant evaluation. Fix the handling. The standard is unclear exactly which pointer comparisons count a

[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 1/3] Sema: filter out invalid base-specifiers before attaching

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

2025-07-08 Thread Corentin Jabot via cfe-commits
https://github.com/cor3ntin edited https://github.com/llvm/llvm-project/pull/147400 ___ 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 Corentin Jabot via cfe-commits
https://github.com/cor3ntin edited https://github.com/llvm/llvm-project/pull/147400 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] e55b194 - [Clang] Fix template arguments collection for out-of-line declarations (#147463)

2025-07-08 Thread via cfe-commits
Author: Younan Zhang Date: 2025-07-08T19:01:01+08:00 New Revision: e55b1949c50da1aadb416a833cce352ace7c2280 URL: https://github.com/llvm/llvm-project/commit/e55b1949c50da1aadb416a833cce352ace7c2280 DIFF: https://github.com/llvm/llvm-project/commit/e55b1949c50da1aadb416a833cce352ace7c2280.diff

[clang] [llvm] [NFC][OpenMP] Add tests for mapping pointers and their dereferences. (PR #146934)

2025-07-08 Thread Alexey Bataev via cfe-commits
https://github.com/alexey-bataev closed https://github.com/llvm/llvm-project/pull/146934 ___ 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 created https://github.com/llvm/llvm-project/pull/147503 This patch addresses missing support for forwarding `ak_attr_info` diagnostic arguments in `ClangTidyDiagnosticConsumer` >From 87401d6f985e85b50683027d1aa71dc326e7cf28 Mon Sep 17 00:00:00 2001 From: Oleksand

[clang] [llvm] [NFC][OpenMP] Add tests for mapping pointers and their dereferences. (PR #146934)

2025-07-08 Thread Alexey Bataev via cfe-commits
https://github.com/alexey-bataev approved this pull request. https://github.com/llvm/llvm-project/pull/146934 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] include attribute scope in diagnostics (PR #144619)

2025-07-08 Thread Oleksandr T. via cfe-commits
a-tarasyuk wrote: @mikaelholmen Thanks for pointing that out. I've opened PR https://github.com/llvm/llvm-project/pull/147503 to resolve this issue https://github.com/llvm/llvm-project/pull/144619 ___ cfe-commits mailing list cfe-commits@lists.llvm.or

[clang] [Clang] Fix template arguments collection for out-of-line declarations (PR #147463)

2025-07-08 Thread Corentin Jabot via cfe-commits
https://github.com/cor3ntin approved this pull request. Thanks! https://github.com/llvm/llvm-project/pull/147463 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libcxx] [libc++][Clang] Added explanation why is_constructible evaluated to false. Updated the diagnostics checks in libc++ tests. (PR #144220)

2025-07-08 Thread Corentin Jabot via cfe-commits
https://github.com/cor3ntin closed https://github.com/llvm/llvm-project/pull/144220 ___ 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 ready_for_review 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] [Clang][SME] Refactor checkArmStreamingBuiltin. (PR #145941)

2025-07-08 Thread Sander de Smalen via cfe-commits
https://github.com/sdesmalen-arm approved this pull request. 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-tools-extra] [clang-tidy] support ak_attr_info in diagnostic forwarding (PR #147503)

2025-07-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: Oleksandr T. (a-tarasyuk) Changes This patch addresses missing support for forwarding `ak_attr_info` diagnostic arguments in `ClangTidyDiagnosticConsumer` --- Full diff: https://github.com/llvm/llvm-project/pull/147503.diff 1 Files

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

2025-07-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Oleksandr T. (a-tarasyuk) Changes This patch addresses missing support for forwarding `ak_attr_info` diagnostic arguments in `ClangTidyDiagnosticConsumer` --- Full diff: https://github.com/llvm/llvm-project/pull/147503.diff

[clang] [Clang] Fix template arguments collection for out-of-line declarations (PR #147463)

2025-07-08 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 closed https://github.com/llvm/llvm-project/pull/147463 ___ 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
@@ -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] [llvm] [clang][python][test] Move python binding tests to lit framework (PR #146844)

2025-07-08 Thread Aaron Ballman via cfe-commits
AaronBallman wrote: > Thansk for the explainer! That gives me something to test, I will try a > cross-compile with GCC and see if I can reproduce it locally. > > > It's not immediately obvious to me why the host compiler would make any > > difference on this particular PR ... > > We are chang

[clang] [libcxx] [libc++][Clang] Added explanation why is_constructible evaluated to false. Updated the diagnostics checks in libc++ tests. (PR #144220)

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

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

2025-07-08 Thread Paul Walker via cfe-commits
@@ -264,22 +264,22 @@ let SVETargetGuard = "sve,bf16", SMETargetGuard = "sme,bf16" in { def SVLD1RQ_BF : SInst<"svld1rq[_{2}]", "dPc", "b", MergeNone, "aarch64_sve_ld1rq", [VerifyRuntimeMode]>; } -multiclass StructLoad { - def : SInst; +multiclass StructLoad f = []> { +

[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 edited 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] e476f96 - [libc++][Clang] Added explanation why is_constructible evaluated to false. Updated the diagnostics checks in libc++ tests. (#144220)

2025-07-08 Thread via cfe-commits
Author: Shamshura Egor Date: 2025-07-08T12:58:34+02:00 New Revision: e476f968bc8e438a0435d10934f148de570db8eb URL: https://github.com/llvm/llvm-project/commit/e476f968bc8e438a0435d10934f148de570db8eb DIFF: https://github.com/llvm/llvm-project/commit/e476f968bc8e438a0435d10934f148de570db8eb.diff

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

2025-07-08 Thread Oleksandr T. 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] [Clang][SME] Refactor checkArmStreamingBuiltin. (PR #145941)

2025-07-08 Thread Sander de Smalen via cfe-commits
@@ -264,22 +264,22 @@ let SVETargetGuard = "sve,bf16", SMETargetGuard = "sme,bf16" in { def SVLD1RQ_BF : SInst<"svld1rq[_{2}]", "dPc", "b", MergeNone, "aarch64_sve_ld1rq", [VerifyRuntimeMode]>; } -multiclass StructLoad { - def : SInst; +multiclass StructLoad f = []> { +

[clang] [Clang] disallow # operators in attribute argument lists (PR #147308)

2025-07-08 Thread Aaron Ballman via cfe-commits
@@ -477,3 +477,8 @@ namespace P2361 { } alignas(int) struct AlignAsAttribute {}; // expected-error {{misplaced attributes; expected attributes here}} + +namespace GH147217 { + [[clang::annotate(#)]] void a(); // expected-error {{'#' is not allowed in attribute argument

[clang] [Clang] disallow # operators in attribute argument lists (PR #147308)

2025-07-08 Thread Aaron Ballman via cfe-commits
@@ -678,6 +678,8 @@ Improvements to Clang's diagnostics - Clang now accepts ``@tparam`` comments on variable template partial specializations. (#GH144775) +- Clang now rejects ``#`` operators in attribute argument lists. (#GH147217) AaronBallman wrote: ```s

[clang] [Clang] disallow # operators in attribute argument lists (PR #147308)

2025-07-08 Thread Aaron Ballman via cfe-commits
@@ -477,3 +477,10 @@ namespace P2361 { } alignas(int) struct AlignAsAttribute {}; // expected-error {{misplaced attributes; expected attributes here}} + +namespace GH147217 { + [[clang::annotate(#)]] void a();// expected-error {{'#' is not allowed in an attribute argume

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

2025-07-08 Thread Mikael Holmén via cfe-commits
mikaelholmen wrote: This solves the compilation warning/error I reported in https://github.com/llvm/llvm-project/pull/144619#issuecomment-3048327120 https://github.com/llvm/llvm-project/pull/147503 ___ cfe-commits mailing list cfe-commits@lists.llvm.

[libclc] [libclc] Remove catch-all opencl/clc.h (PR #147490)

2025-07-08 Thread Fraser Cormack via cfe-commits
https://github.com/frasercrmck created https://github.com/llvm/llvm-project/pull/147490 This commit finishes the work started in #146840 and #147276. It makes each OpenCL header self-contained and each implementation file include only the header it needs. It removes the need for a catch-all in

[clang] [llvm] [AMDGPU] Add support for `v_cvt_f16_bf8` on gfx1250 (PR #146305)

2025-07-08 Thread Mariusz Sikora via cfe-commits
@@ -2,51 +2,41 @@ # RUN: llvm-mc -triple=amdgcn -mcpu=gfx1250 -mattr=+real-true16 -disassemble -show-encoding < %s | FileCheck -check-prefixes=GFX1250,GFX1250-REAL16 %s # RUN: llvm-mc -triple=amdgcn -mcpu=gfx1250 -mattr=-real-true16 -disassemble -show-encoding < %s | FileCheck

[clang] [llvm] [AMDGPU] Add alignment attr & propagate alignment through make.buffer.rsrc inst (PR #145278)

2025-07-08 Thread via cfe-commits
https://github.com/Shoreshen updated https://github.com/llvm/llvm-project/pull/145278 >From 888df5412b37bd3f232bdb38c9f89786d042fe75 Mon Sep 17 00:00:00 2001 From: shore <372660...@qq.com> Date: Mon, 23 Jun 2025 14:12:15 +0800 Subject: [PATCH 1/6] Add alignment attr & propagate alignment through

[clang] [llvm] [Clang-Repl] Add pipe-based redirection and fetch PID of launched executor (PR #147478)

2025-07-08 Thread Abhinav Kumar via cfe-commits
https://github.com/kr-2003 updated https://github.com/llvm/llvm-project/pull/147478 >From fbe4344831538480be33accd35ef618c6d0e50b3 Mon Sep 17 00:00:00 2001 From: kr-2003 Date: Tue, 1 Jul 2025 18:55:21 +0530 Subject: [PATCH 1/5] pipes for redirection in oop jit --- .../clang/Interpreter/Remote

[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
@@ -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][SME] Refactor checkArmStreamingBuiltin. (PR #145941)

2025-07-08 Thread Kerry McLaughlin via cfe-commits
@@ -264,22 +264,22 @@ let SVETargetGuard = "sve,bf16", SMETargetGuard = "sme,bf16" in { def SVLD1RQ_BF : SInst<"svld1rq[_{2}]", "dPc", "b", MergeNone, "aarch64_sve_ld1rq", [VerifyRuntimeMode]>; } -multiclass StructLoad { - def : SInst; +multiclass StructLoad f = []> { +

[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 859bdf07278fef79780b833fc998810219ca1d27 Mon Sep 17 00:00:00 2001 From: Tony Varghese Date: Tue, 8 Jul 2025 05:04:12 -0400 Subject: [PATCH] [PowerPC][clang] Fix triple constructor ambiguity causing "un

[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] [PowerPC][clang] Fix triple constructor ambiguity causing "un

[clang] Sema: suppress deprecated field warnings in implicit special-member functions Fixes: https://github.com/llvm/llvm-project/issues/147293 (PR #147400)

2025-07-08 Thread Yanzuo Liu via cfe-commits
@@ -547,6 +547,20 @@ static void DoEmitAvailabilityWarning(Sema &S, AvailabilityResult K, return; } case AR_Deprecated: +// Suppress -Wdeprecated-declarations in purely implicit special-member functions. +if (const FunctionDecl *FD = S.getCurFunctionDecl()) {

[clang] [NFC] [C++] [Modules] Mark P2115 as implemented and add test (PR #147489)

2025-07-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Ashwin Kishin Banwari (kish1n) Changes This is already implemented. Proposal: https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2020/p2115r0.html --- Full diff: https://github.com/llvm/llvm-project/pull/147489.diff 2 Files Affected:

[clang] [llvm] Triple: Forward declare Twine and remove include (PR #145685)

2025-07-08 Thread Tony Varghese via cfe-commits
tonykuttai wrote: @hubert-reinterpretcast @arsenm I have raised a follow-up PR for fixing the issue on AIX. [[PowerPC][clang] Fix triple constructor ambiguity causing "unknown" target triple on AIX](https://github.com/llvm/llvm-project/pull/147488#top) https://github.com/llvm/llvm-project/pul

[clang] [Clang][AArch64] Add missing builtins for __ARM_FEATURE_SME2p1. (PR #147362)

2025-07-08 Thread Jonathan Thackray via cfe-commits
https://github.com/jthackray approved this pull request. A long diff. I can't see anything obviously wrong, so LGTM. https://github.com/llvm/llvm-project/pull/147362 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin

[clang] [llvm] [AMDGPU] Add alignment attr & propagate alignment through make.buffer.rsrc inst (PR #145278)

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 cl,h,cpp -- clang/test/CodeGenOpenCL/builtins-amdgcn-make-bu

[libclc] [libclc] Remove catch-all opencl/clc.h (PR #147490)

2025-07-08 Thread Fraser Cormack via cfe-commits
https://github.com/frasercrmck edited https://github.com/llvm/llvm-project/pull/147490 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libclc] [libclc] Remove catch-all opencl/clc.h (PR #147490)

2025-07-08 Thread Wenju He via cfe-commits
https://github.com/wenju-he approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/147490 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libclc] 9d11bd0 - [libclc] Remove catch-all opencl/clc.h (#147490)

2025-07-08 Thread via cfe-commits
Author: Fraser Cormack Date: 2025-07-08T10:37:06+01:00 New Revision: 9d11bd0db8bb96a106b2ea9018be52b20582e2f0 URL: https://github.com/llvm/llvm-project/commit/9d11bd0db8bb96a106b2ea9018be52b20582e2f0 DIFF: https://github.com/llvm/llvm-project/commit/9d11bd0db8bb96a106b2ea9018be52b20582e2f0.diff

[libclc] [libclc] Remove catch-all opencl/clc.h (PR #147490)

2025-07-08 Thread Fraser Cormack via cfe-commits
https://github.com/frasercrmck closed https://github.com/llvm/llvm-project/pull/147490 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][CompundLiteralExpr] Don't defer evaluation for CLEs (PR #137163)

2025-07-08 Thread kadir çetinkaya via cfe-commits
https://github.com/kadircet updated https://github.com/llvm/llvm-project/pull/137163 From 3453a392b98e05c7d259ebf1741767f7e36a6be9 Mon Sep 17 00:00:00 2001 From: Kadir Cetinkaya Date: Thu, 24 Apr 2025 11:12:00 +0200 Subject: [PATCH 1/7] [clang][CompundLiteralExpr] Don't defer evaluation for CL

[clang] [Clang] Allow vanilla C function symbol name to be used in __attribute__((alias)) when -funique-internal-linkage-names is specified (PR #145652)

2025-07-08 Thread via cfe-commits
https://github.com/HighW4y2H3ll updated https://github.com/llvm/llvm-project/pull/145652 >From 9a29dd6fa3f28bf507f047a22597f8510bd096b3 Mon Sep 17 00:00:00 2001 From: h2h Date: Tue, 24 Jun 2025 23:24:32 -0700 Subject: [PATCH 1/6] [Clang] Allow vanilla C function symbol name to be used in __att

[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 d6c634b95ac85171d9472094c76e137be93179cf Mon Sep 17 00:00:00 2001 From: Tony Varghese Date: Tue, 8 Jul 2025 05:04:12 -0400 Subject: [PATCH] [PowerPC][clang] Fix triple constructor ambiguity causing "un

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

2025-07-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Tony Varghese (tonykuttai) Changes PR #145685 introduced constructor overload ambiguity in the Triple class, causing `updateTripleOSVersion()` to construct Triple objects with `unknown` instead of the configured target triple (e.g., `pow

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

2025-07-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Tony Varghese (tonykuttai) Changes PR #145685 introduced constructor overload ambiguity in the Triple class, causing `updateTripleOSVersion()` to construct Triple objects with `unknown` instead of the configured target triple (e.g.

[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
@@ -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][SME] Refactor checkArmStreamingBuiltin. (PR #145941)

2025-07-08 Thread Paul Walker via cfe-commits
@@ -264,22 +264,22 @@ let SVETargetGuard = "sve,bf16", SMETargetGuard = "sme,bf16" in { def SVLD1RQ_BF : SInst<"svld1rq[_{2}]", "dPc", "b", MergeNone, "aarch64_sve_ld1rq", [VerifyRuntimeMode]>; } -multiclass StructLoad { - def : SInst; +multiclass StructLoad f = []> { +

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

2025-07-08 Thread Kerry McLaughlin via cfe-commits
https://github.com/kmclaughlin-arm approved this pull request. 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] [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 Message-ID: In-Reply-To: @@ -333,11 +333,55 @@ template static bool isStandardNewDelete(const T &FD) { return isStandardDelet

[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 Message-ID: In-Reply-To: @@ -333,11 +333,55 @@ template static bool isStandardNewDelete(const T &FD) { return isStandardDelet

[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 Message-ID: In-Reply-To: @@ -333,11 +333,55 @@ template static bool isStandardNewDelete(const T &FD) { return isStandardDelet

[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 Message-ID: In-Reply-To: https://github.com/steakhal commented: Thanks for the reviews already done. I think as I skimmed through, I didn't have a

[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 Message-ID: In-Reply-To: https://github.com/steakhal edited https://github.com/llvm/llvm-project/pull/147080 _

[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 created https://github.com/llvm/llvm-project/pull/147498 ```cpp struct A { constexpr int f() const { return 1; } // #1 }; struct B : A { using A::f; constexpr int f(this A) { return 2; } }; static_assert(B{}.f() == 1); ``` In the above scenario, we fai

[clang] [llvm] [clang][python][test] Move python binding tests to lit framework (PR #146844)

2025-07-08 Thread Jannick Kremer via cfe-commits
DeinAlptraum wrote: It seems that the `clang-s390x-linux-multistage` and `clang-s390x-linux-lnt` builders use the exact same cmake settings, so only one of them failing seems quite strange... @uweigand can you tell me what the difference between these two is/do you have any idea what might cau

[clang] c6776bb - [PS5][Driver] Fix bad negative check in ps5-linker.c test case (#147484)

2025-07-08 Thread via cfe-commits
Author: Edd Dawson Date: 2025-07-08T11:06:36+01:00 New Revision: c6776bbe192e16fe4fe7dc97db934750287df599 URL: https://github.com/llvm/llvm-project/commit/c6776bbe192e16fe4fe7dc97db934750287df599 DIFF: https://github.com/llvm/llvm-project/commit/c6776bbe192e16fe4fe7dc97db934750287df599.diff LO

[clang] [PS5][Driver] Fix bad negative check in ps5-linker.c test case (PR #147484)

2025-07-08 Thread Edd Dawson via cfe-commits
https://github.com/playstation-edd closed https://github.com/llvm/llvm-project/pull/147484 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-07-08 Thread Kerry McLaughlin via cfe-commits
@@ -569,34 +569,39 @@ static bool checkArmStreamingBuiltin(Sema &S, CallExpr *TheCall, // * When compiling for SVE only, the caller must be in non-streaming mode. // * When compiling for both SVE and SME, the caller can be in either mode. if (BuiltinType == SemaARM::Veri

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

2025-07-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Corentin Jabot (cor3ntin) Changes ```cpp struct A { constexpr int f() const { return 1; } // #1 }; struct B : A { using A::f; constexpr int f(this A) { return 2; } }; static_assert(B{}.f() == 1); ``` In the above scenario, w

[clang] Sema: suppress deprecated field warnings in implicit special-member functions Fixes: https://github.com/llvm/llvm-project/issues/147293 (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] Sema: suppress deprecated field warnings in implicit special-member functions Fixes: https://github.com/llvm/llvm-project/issues/147293 (PR #147400)

2025-07-08 Thread Shashi Shankar via cfe-commits
@@ -547,6 +547,20 @@ static void DoEmitAvailabilityWarning(Sema &S, AvailabilityResult K, return; } case AR_Deprecated: +// Suppress -Wdeprecated-declarations in purely implicit special-member functions. +if (const FunctionDecl *FD = S.getCurFunctionDecl()) {

[clang] Sema: suppress deprecated field warnings in implicit special-member functions Fixes: https://github.com/llvm/llvm-project/issues/147293 (PR #147400)

2025-07-08 Thread Shashi Shankar via cfe-commits
@@ -547,6 +547,20 @@ static void DoEmitAvailabilityWarning(Sema &S, AvailabilityResult K, return; } case AR_Deprecated: +// Suppress -Wdeprecated-declarations in purely implicit special-member functions. +if (const FunctionDecl *FD = S.getCurFunctionDecl()) {

[clang] [llvm] [clang][python][test] Move python binding tests to lit framework (PR #146844)

2025-07-08 Thread Ulrich Weigand via cfe-commits
uweigand wrote: Both `clang-s390x-linux` and `clang-s390x-linux-lnt` failed with the same `Clang::bindings.sh` error: https://lab.llvm.org/buildbot/#/builders/42/builds/5208 https://lab.llvm.org/buildbot/#/builders/136/builds/4462 The `clang-s390x-linux-multistage` run including this change did

[clang-tools-extra] [clang-tidy][NFC] fix compilation by disambiguating equality operator (PR #147048)

2025-07-08 Thread Gregor Jasny via cfe-commits
https://github.com/gjasny edited https://github.com/llvm/llvm-project/pull/147048 ___ 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: The goal is as an alternative to `EMULATE_FUNCTION_POINTER_CASTS` for projects like Python and GLib that do dispatch with sometimes-incorrect function pointers. In particular, rather than having to `call_indirect` a function pointer and find out whether or not we trap, I want a

[clang] [clang][CompundLiteralExpr] Don't defer evaluation for CLEs (PR #137163)

2025-07-08 Thread kadir çetinkaya via cfe-commits
https://github.com/kadircet updated https://github.com/llvm/llvm-project/pull/137163 From 3453a392b98e05c7d259ebf1741767f7e36a6be9 Mon Sep 17 00:00:00 2001 From: Kadir Cetinkaya Date: Thu, 24 Apr 2025 11:12:00 +0200 Subject: [PATCH 1/6] [clang][CompundLiteralExpr] Don't defer evaluation for CL

[libclc] [libclc] Tighten OpenCL builtin include strategy (PR #147276)

2025-07-08 Thread Fraser Cormack via cfe-commits
https://github.com/frasercrmck closed https://github.com/llvm/llvm-project/pull/147276 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy][NFC] fix compilation by disambiguating equality operator (PR #147048)

2025-07-08 Thread Gregor Jasny via cfe-commits
gjasny wrote: Hello Victor, > I see you are a member, but it seems like this is your first contribution. Do > you need help to land it? You're right. Besides some bug reports I never landed a commit in llvm. Is there anything I could do right now (besides waiting for reviews)? > Also, I'd rem

[clang] [llvm] [Clang-Repl] Add pipe-based redirection and fetch PID of launched executor (PR #147478)

2025-07-08 Thread Abhinav Kumar via cfe-commits
https://github.com/kr-2003 created https://github.com/llvm/llvm-project/pull/147478 This PR introduces: 1. Pipe based redirection for ``stdin``, ``stdout`` and ``stderr`` for out-of-process(OOP) JIT execution. 2. Fetching PID of the launched out-of-process(OOP) JIT executor. >From fbe434483153

[clang] [llvm] [Clang-Repl] Add pipe-based redirection and fetch PID of launched executor (PR #147478)

2025-07-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Abhinav Kumar (kr-2003) Changes This PR introduces: 1. Pipe based redirection for ``stdin``, ``stdout`` and ``stderr`` for out-of-process(OOP) JIT execution. 2. Fetching PID of the launched out-of-process(OOP) JIT executor. --- Full diff:

[clang-tools-extra] 4d07c7f - [clang-tidy][NFC] fix compilation by disambiguating equality operator (#147048)

2025-07-08 Thread via cfe-commits
Author: Gregor Jasny Date: 2025-07-08T11:08:45+03:00 New Revision: 4d07c7f9a08b94b894f29a0010ae5b4861c5f033 URL: https://github.com/llvm/llvm-project/commit/4d07c7f9a08b94b894f29a0010ae5b4861c5f033 DIFF: https://github.com/llvm/llvm-project/commit/4d07c7f9a08b94b894f29a0010ae5b4861c5f033.diff

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

2025-07-08 Thread Endre Fülöp via cfe-commits
https://github.com/gamesh411 approved this pull request. https://github.com/llvm/llvm-project/pull/147080 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy][NFC] fix compilation by disambiguating equality operator (PR #147048)

2025-07-08 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor closed https://github.com/llvm/llvm-project/pull/147048 ___ 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
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/147480 None >From e064acdb14edeb4e70463ccdb1726317e81a1a18 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_

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

2025-07-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/147480.diff 3 Files Affected: - (modified) clang/lib/AST/ByteCode/Compiler.cpp (+1-1) - (modified) clang/lib/AST/ByteCode/InterpBuiltin.cpp (+13-1

[clang-tools-extra] [clang-tidy][NFC] fix compilation by disambiguating equality operator (PR #147048)

2025-07-08 Thread via cfe-commits
github-actions[bot] wrote: @gjasny Congratulations on having your first Pull Request (PR) merged into the LLVM Project! Your changes will be combined with recent changes from other authors, then tested by our [build bots](https://lab.llvm.org/buildbot/). If there is a problem with a build,

[clang] [llvm] [Clang-Repl] Add pipe-based redirection and fetch PID of launched executor (PR #147478)

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/include/clang/Interpreter/RemoteJITUtils.h c

[clang] [llvm] [Clang-Repl] Add pipe-based redirection and fetch PID of launched executor (PR #147478)

2025-07-08 Thread Abhinav Kumar via cfe-commits
https://github.com/kr-2003 updated https://github.com/llvm/llvm-project/pull/147478 >From fbe4344831538480be33accd35ef618c6d0e50b3 Mon Sep 17 00:00:00 2001 From: kr-2003 Date: Tue, 1 Jul 2025 18:55:21 +0530 Subject: [PATCH 1/4] pipes for redirection in oop jit --- .../clang/Interpreter/Remote

[clang] [Clang] Allow vanilla C function symbol name to be used in __attribute__((alias)) when -funique-internal-linkage-names is specified (PR #145652)

2025-07-08 Thread via cfe-commits
https://github.com/HighW4y2H3ll updated https://github.com/llvm/llvm-project/pull/145652 >From 9a29dd6fa3f28bf507f047a22597f8510bd096b3 Mon Sep 17 00:00:00 2001 From: h2h Date: Tue, 24 Jun 2025 23:24:32 -0700 Subject: [PATCH 1/5] [Clang] Allow vanilla C function symbol name to be used in __att

[clang] 18f7655 - [Clang][Wasm] Set __float128 alignment to 64 for emscripten (#146494)

2025-07-08 Thread via cfe-commits
Author: Nikita Popov Date: 2025-07-08T10:20:43+02:00 New Revision: 18f7655178a69daa52f4d4ef56169b90efc7f601 URL: https://github.com/llvm/llvm-project/commit/18f7655178a69daa52f4d4ef56169b90efc7f601 DIFF: https://github.com/llvm/llvm-project/commit/18f7655178a69daa52f4d4ef56169b90efc7f601.diff

[clang] [Clang][Wasm] Set __float128 alignment to 64 for emscripten (PR #146494)

2025-07-08 Thread Nikita Popov via cfe-commits
https://github.com/nikic closed https://github.com/llvm/llvm-project/pull/146494 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [PowerPC][AIX] Specify correct ABI alignment for double (PR #144673)

2025-07-08 Thread Nikita Popov via cfe-commits
nikic wrote: @amy-kwan Just wanted to check back whether you found out anything more about the test issues? https://github.com/llvm/llvm-project/pull/144673 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman

[clang] [PS5][Driver] Fix bad negative check in ps5-linker.c test case (PR #147484)

2025-07-08 Thread Jeremy Morse via cfe-commits
https://github.com/jmorse approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/147484 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Sema: suppress deprecated field warnings in implicit special-member functions Fixes: https://github.com/llvm/llvm-project/issues/147293 (PR #147400)

2025-07-08 Thread Yanzuo Liu via cfe-commits
@@ -547,6 +547,20 @@ static void DoEmitAvailabilityWarning(Sema &S, AvailabilityResult K, return; } case AR_Deprecated: +// Suppress -Wdeprecated-declarations in purely implicit special-member functions. +if (const FunctionDecl *FD = S.getCurFunctionDecl()) {

[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,59 @@ +// RUN: %check_clang_tidy %s misc-bool-bitwise-operation %t \ +// RUN: -config="{CheckOptions: { \ +// RUN: misc-bool-bitwise-operation.IgnoreMacros: true }}" + +#define MY_OR | +#define MY_AND & +#define MY_OR_ASSIGN |= +#define MY_AND_ASSIGN &= +#define M

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

2025-07-08 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat updated https://github.com/llvm/llvm-project/pull/147080 From c0e669a4f31702a871fce4c8c3805b322c331afd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Don=C3=A1t=20Nagy?= Date: Wed, 2 Jul 2025 15:09:42 +0200 Subject: [PATCH 1/7] [analyzer] Connversion to CheckerFamily: Mal

<    1   2   3   4   >