[clang] [llvm] [Driver][Hurd] Add AArch64 and RISCV64 support (PR #157212)

2025-09-13 Thread Brad Smith via cfe-commits
https://github.com/brad0 updated https://github.com/llvm/llvm-project/pull/157212 >From ea175ded6a97cfc184e9d81af231d96361c1e2db Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Sat, 24 May 2025 04:40:44 -0400 Subject: [PATCH] [Driver][Hurd] Add AArch64 and RISCV64 support --- clang/lib/Basic/

[clang-tools-extra] Fixes clangd/clangd#1797 (PR #158461)

2025-09-13 Thread via cfe-commits
https://github.com/JVApen updated https://github.com/llvm/llvm-project/pull/158461 >From d828397b1ece13b9617b54e5bd75f00c2c69fd64 Mon Sep 17 00:00:00 2001 From: JVApen Date: Sat, 13 Sep 2025 10:22:28 +0200 Subject: [PATCH 1/2] Fixes clangd/clangd#1797 Do not restrict HeaderSourceSwitch to swit

[clang-tools-extra] [clang-tidy] New bugprone-derived-method-shadowing-base-method (PR #154746)

2025-09-13 Thread via cfe-commits
https://github.com/t-a-james updated https://github.com/llvm/llvm-project/pull/154746 >From 39ad4945d05f3e88fd32dfdea585aa99c6ba985f Mon Sep 17 00:00:00 2001 From: Tom James Date: Thu, 21 Aug 2025 13:14:24 +0100 Subject: [PATCH 01/31] [clang-tidy] New bugprone-method-hiding check --- .../bugp

[clang] [Sema] Use llvm::is_contained instead of llvm::all_of (NFC) (PR #158213)

2025-09-13 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm approved this pull request. https://github.com/llvm/llvm-project/pull/158213 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Driver] Revise Cygwin ToolChain to call linker directly (PR #147960)

2025-09-13 Thread via cfe-commits
https://github.com/jeremyd2019 updated https://github.com/llvm/llvm-project/pull/147960 >From 5a02673773031f782ccef1a510a58cbb80681f76 Mon Sep 17 00:00:00 2001 From: Takashi Yano Date: Thu, 10 Jul 2025 21:55:05 +0900 Subject: [PATCH 1/2] [Clang][Driver] Revise Cygwin ToolChain to call linker d

[clang] [llvm] [clang] Remove shell requirements from tests (PR #156905)

2025-09-13 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi approved this pull request. LGTM. Windows has been opted out of all these tests thus far, so I don't see much reason to worry about the few that require symlinks. Probably confirm w Petr and Reid before landing though. https://github.com/llvm/llvm-project/pull/15690

[clang] [llvm] Clang: Add nsz to llvm.minnum and llvm.maxnum emitted from fmin and fmax (PR #113133)

2025-09-13 Thread YunQiang Su via cfe-commits
wzssyqa wrote: > It takes too long to take this decision. Since we cannot agree on the wording > of `nsz` now, and in fact we had some words in `maxnum/minnum` about nsz. I > prefer we can continue with this PR. We have got some complains: https://github.com/llvm/llvm-project/issues/138303 ht

[clang] [llvm] [lit] Make builtin cat work with stdin (PR #158447)

2025-09-13 Thread Aiden Grossman via cfe-commits
https://github.com/boomanaiden154 updated https://github.com/llvm/llvm-project/pull/158447 >From 5bd8d4f925f3b5f82d85ef693861b6b1067d9f38 Mon Sep 17 00:00:00 2001 From: Aiden Grossman Date: Sat, 13 Sep 2025 22:54:58 + Subject: [PATCH 1/4] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20i

[clang] [clang][bytecode] Use bytecode interpreter in EvaluateAsLValue (PR #158038)

2025-09-13 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik commented: "abort when initalizing a global temporary" vaguely sounds like change in behavior but there is no test. https://github.com/llvm/llvm-project/pull/158038 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http

[clang] [llvm] [AMDGPU] Add builtins and intrinsics for cluster attributes (PR #157877)

2025-09-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-ir Author: Shilei Tian (shiltian) Changes Co-authored-by: Ivan Kosarev --- Full diff: https://github.com/llvm/llvm-project/pull/157877.diff 3 Files Affected: - (modified) clang/include/clang/Basic/BuiltinsAMDGPU.def (+14)

[clang] [Sema] Use llvm::is_contained instead of llvm::all_of (NFC) (PR #158213)

2025-09-13 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/158213 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Clang: Add nsz to llvm.minnum and llvm.maxnum emitted from fmin and fmax (PR #113133)

2025-09-13 Thread YunQiang Su via cfe-commits
wzssyqa wrote: It takes too long to take this decision. Since we cannot agree on the wording of `nsz` now, and in fact we had some words in `maxnum/minnum` about nsz. I prefer we can continue with this PR. https://github.com/llvm/llvm-project/pull/113133 __

[clang] [Clang][Cygwin] Cygwin x86_64 should accept __stdcall (PR #158385)

2025-09-13 Thread via cfe-commits
https://github.com/jeremyd2019 approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/158385 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Allow __builtin_fma/fmaf/fmal to be used in a constant expression (PR #158048)

2025-09-13 Thread Chaitanya Koparkar via cfe-commits
ckoparkar wrote: Some libcxx tests in [constexpr-cxx23-clang.pass.cpp](https://github.com/llvm/llvm-project/blob/main/libcxx/test/libcxx/numerics/c.math/constexpr-cxx23-clang.pass.cpp#L197) are failing: ``` ASSERT_NOT_CONSTEXPR_CXX23(std::fma(1.0f, 1.0f, 1.0f) == 2.0f); ASSERT_NOT_CONSTEXPR_CX

[clang] [llvm] [lit] Make builtin cat work with stdin (PR #158447)

2025-09-13 Thread Aiden Grossman via cfe-commits
https://github.com/boomanaiden154 created https://github.com/llvm/llvm-project/pull/158447 cat with no files passed to it is supposed to read from STDIN according to POSIX. The builtin cat lacking this behavior led to the clang test in dev-fd-fs.c to fail because it expected this behavior. This

[clang] b642e8b - [analyzer] Improve messaging in security.VAList (#157846)

2025-09-13 Thread via cfe-commits
Author: Donát Nagy Date: 2025-09-11T17:57:22+02:00 New Revision: b642e8bfbb89c45ea7073ba9db5d1e31a6542e3c URL: https://github.com/llvm/llvm-project/commit/b642e8bfbb89c45ea7073ba9db5d1e31a6542e3c DIFF: https://github.com/llvm/llvm-project/commit/b642e8bfbb89c45ea7073ba9db5d1e31a6542e3c.diff LO

[clang] [clang-tools-extra] [lldb] [clang] AST: remove DependentTemplateSpecializationType (PR #158109)

2025-09-13 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov closed https://github.com/llvm/llvm-project/pull/158109 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] Fixed typo for bugprone-easily-swappable-parameters clang-tidy check (PR #158282)

2025-09-13 Thread via cfe-commits
https://github.com/0hDEADBEAF created https://github.com/llvm/llvm-project/pull/158282 I came across this little typo mistake while reading the docs, so I've fixed it :) >From d5b0df90b4cd05b743ec129226cfa248ee822603 Mon Sep 17 00:00:00 2001 From: 0xdeadbeaf <0xdeadb...@tutamail.com> Date: Fri

[libclc] libclc: Remove HAVE_LLVM version macros (PR #158257)

2025-09-13 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm updated https://github.com/llvm/llvm-project/pull/158257 >From 34e55fceed99df44d587d27ab4478e3b8500dd2b Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Fri, 12 Sep 2025 18:45:07 +0900 Subject: [PATCH 1/2] libclc: Remove HAVE_LLVM version macros This doesn't need t

[clang-tools-extra] Add bugprone-loop-variable-copied-then-modified clang-tidy check. (PR #157213)

2025-09-13 Thread Julia Hansbrough via cfe-commits
flowerhack wrote: Also, any chance I could get approval on the "build & test linux" + "build & test windows" workflows (or is there something I need to do to get those approved)? I've tested on my machine but would like to know things check out against CI as well. Thanks! https://github.com

[clang] a205695 - [Clang] Add template argument support for {con,de}structor attributes. (#151400)

2025-09-13 Thread via cfe-commits
Author: tynasello Date: 2025-09-08T20:48:23Z New Revision: a205695de4dce3c839dedbb78dd67e2a7758947a URL: https://github.com/llvm/llvm-project/commit/a205695de4dce3c839dedbb78dd67e2a7758947a DIFF: https://github.com/llvm/llvm-project/commit/a205695de4dce3c839dedbb78dd67e2a7758947a.diff LOG: [Cl

[clang] [compiler-rt] [llvm] Add a field in Coverage Mapping header for tracking coverage capabilities (PR #158059)

2025-09-13 Thread via cfe-commits
Dorian =?utf-8?q?Péron?= , Dorian =?utf-8?q?Péron?= , Dorian =?utf-8?q?Péron?= , Dorian =?utf-8?q?Péron?= Message-ID: In-Reply-To: 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 b

[libcxx] [libcxxabi] [libunwind] [libcxx][CI] Prepare ARM Picolibc builds for upgrade to clang 21 (PR #158300)

2025-09-13 Thread Louis Dionne via cfe-commits
https://github.com/ldionne approved this pull request. LGTM w/ passing CI! https://github.com/llvm/llvm-project/pull/158300 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Fix static local variables in consteval functions (PR #156933)

2025-09-13 Thread Mariya Podchishchaeva via cfe-commits
https://github.com/Fznamznon edited https://github.com/llvm/llvm-project/pull/156933 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][bytecode] Check builtin carryops for dummy pointers (PR #157490)

2025-09-13 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/157490 Fixes #157422 >From b8619e89a789c865c1ee00a4b4ea46457d79cbd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Mon, 8 Sep 2025 17:21:36 +0200 Subject: [PATCH] [clang][bytecode] Check builtin c

[clang] [Clang][Cygwin] Cygwin x86_64 should accept __stdcall (PR #158385)

2025-09-13 Thread Tomohiro Kashiwada via cfe-commits
https://github.com/kikairoya updated https://github.com/llvm/llvm-project/pull/158385 >From c6dd0311d579abe0eca0f8f5e1ab9d2f8f9db18c Mon Sep 17 00:00:00 2001 From: kikairoya Date: Fri, 12 Sep 2025 21:56:19 +0900 Subject: [PATCH 1/4] set calling conv list --- clang/lib/Basic/Targets/X86.h | 29

[clang] [clang][DebugInfo] Re-enable VTable debug info on COFF platforms (PR #158450)

2025-09-13 Thread Tomohiro Kashiwada via cfe-commits
kikairoya wrote: @jmorse @CarlosAlbertoEnciso @jalopezg-git @mstorsjo @jeremyd2019 This is the long-term fix. Thanks! https://github.com/llvm/llvm-project/pull/158450 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-b

[clang] Allow for custom code model in clang::Interpreter (PR #156977)

2025-09-13 Thread via cfe-commits
github-actions[bot] wrote: @jeaye 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, y

[clang] [Clang][OpenMP]Default clause variable category (PR #157063)

2025-09-13 Thread via cfe-commits
SunilKuravinakop wrote: > Update OpenMPSupport.rst and clang release notes OpenMPSupport.rst has entry: | variable-category on default clause | :part:`In Progress` | :none:`unclaimed` |

[clang] [libcxx] [Clang] Allow __builtin_fma/fmaf/fmal to be used in a constant expression (PR #158048)

2025-09-13 Thread Chaitanya Koparkar via cfe-commits
https://github.com/ckoparkar updated https://github.com/llvm/llvm-project/pull/158048 >From 7665f0d152250b327b93a8aedc2ed9410e22277c Mon Sep 17 00:00:00 2001 From: Chaitanya Koparkar Date: Thu, 11 Sep 2025 07:24:02 -0400 Subject: [PATCH 1/3] [Clang] Allow __builtin_fma/fmaf/fmal to be used in a

[clang] [clang][DebugInfo] Re-enable VTable debug info on COFF platforms (PR #158450)

2025-09-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-modules Author: Tomohiro Kashiwada (kikairoya) Changes The debug info for VTables introduced in #130255 was temporarily disabled on COFF platforms by #151684, due to the risk of emitting dangling relocations (see also: https://github.com/llvm/ll

[clang] [clang][DebugInfo] Re-enable VTable debug info on COFF platforms (PR #158450)

2025-09-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-debuginfo Author: Tomohiro Kashiwada (kikairoya) Changes The debug info for VTables introduced in #130255 was temporarily disabled on COFF platforms by #151684, due to the risk of emitting dangling relocations (see also: https://github.com/llvm/llvm-p

[clang] [clang][DebugInfo] Re-enable VTable debug info on COFF platforms (PR #158450)

2025-09-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-clang-codegen Author: Tomohiro Kashiwada (kikairoya) Changes The debug info for VTables introduced in #130255 was temporarily disabled on COFF platforms by #151684, due to the risk of emitting dangling relocations (see also:

[clang] [clang][DebugInfo] Re-enable VTable debug info on COFF platforms (PR #158450)

2025-09-13 Thread Tomohiro Kashiwada via cfe-commits
https://github.com/kikairoya created https://github.com/llvm/llvm-project/pull/158450 The debug info for VTables introduced in #130255 was temporarily disabled on COFF platforms by #151684, due to the risk of emitting dangling relocations (see also: https://github.com/llvm/llvm-project/issues

[clang] [clang][clang-scan-deps] Add LangOpts.ScanDeps to fix (#88896) (PR #158420)

2025-09-13 Thread Yifan Fang via cfe-commits
https://github.com/tsfn updated https://github.com/llvm/llvm-project/pull/158420 >From fa5a534fb56d6ca9fe92e9df7cc86cd76ef5c58d Mon Sep 17 00:00:00 2001 From: Yifan Fang Date: Sat, 13 Sep 2025 18:20:17 +0800 Subject: [PATCH] [clang] Add LangOpts.ScanDeps to fix #88896 --- clang/include/clang/B

[clang] [llvm] [lit] Make builtin cat work with stdin (PR #158447)

2025-09-13 Thread Aiden Grossman via cfe-commits
https://github.com/boomanaiden154 updated https://github.com/llvm/llvm-project/pull/158447 >From 5bd8d4f925f3b5f82d85ef693861b6b1067d9f38 Mon Sep 17 00:00:00 2001 From: Aiden Grossman Date: Sat, 13 Sep 2025 22:54:58 + Subject: [PATCH 1/3] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20i

[clang] [llvm] [lit] Make builtin cat work with stdin (PR #158447)

2025-09-13 Thread Aiden Grossman via cfe-commits
https://github.com/boomanaiden154 updated https://github.com/llvm/llvm-project/pull/158447 >From 5bd8d4f925f3b5f82d85ef693861b6b1067d9f38 Mon Sep 17 00:00:00 2001 From: Aiden Grossman Date: Sat, 13 Sep 2025 22:54:58 + Subject: [PATCH 1/2] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20i

[clang] [clang] VectorExprEvaluator::VisitCallExpr - add constant folding for X86 pslldqi/psrldqi infrinsics (PR #157403)

2025-09-13 Thread via cfe-commits
https://github.com/kimyounhoex1 updated https://github.com/llvm/llvm-project/pull/157403 >From 38b90ecc3dc30668860cc80a6c8f075536764b5e Mon Sep 17 00:00:00 2001 From: kimyounhoex1 Date: Thu, 4 Sep 2025 00:55:24 +0900 Subject: [PATCH 01/10] todo list --- clang/lib/AST/ExprConstant.cpp | 4

[clang] [clang-scan-deps] Move command-line generation out of critical section (PR #158187)

2025-09-13 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `sanitizer-x86_64-linux` running on `sanitizer-buildbot2` while building `clang` at step 2 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/66/builds/19218 Here is the relevant piece of the

[clang-tools-extra] [clang-tools-extra][docs] Add "Potentially Breaking Changes" section to ReleaseNotes (PR #158434)

2025-09-13 Thread via cfe-commits
https://github.com/EugeneZelenko approved this pull request. https://github.com/llvm/llvm-project/pull/158434 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Cygwin] Use correct mangling rule (PR #158404)

2025-09-13 Thread Martin Storsjö via cfe-commits
https://github.com/mstorsjo edited https://github.com/llvm/llvm-project/pull/158404 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Cygwin] Use correct mangling rule (PR #158404)

2025-09-13 Thread via cfe-commits
llvmbot wrote: /pull-request llvm/llvm-project#158442 https://github.com/llvm/llvm-project/pull/158404 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Cygwin] Use correct mangling rule (PR #158404)

2025-09-13 Thread Martin Storsjö via cfe-commits
mstorsjo wrote: /cherry-pick 4abcbb053f8adaf48dbfff677e8ccda1f6d52b33 https://github.com/llvm/llvm-project/pull/158404 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Cygwin] Use correct mangling rule (PR #158404)

2025-09-13 Thread Martin Storsjö via cfe-commits
https://github.com/mstorsjo milestoned https://github.com/llvm/llvm-project/pull/158404 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Cygwin] Use correct mangling rule (PR #158404)

2025-09-13 Thread Martin Storsjö via cfe-commits
https://github.com/mstorsjo closed https://github.com/llvm/llvm-project/pull/158404 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 4abcbb0 - [Clang][Cygwin] Use correct mangling rule (#158404)

2025-09-13 Thread via cfe-commits
Author: Tomohiro Kashiwada Date: 2025-09-14T00:40:12+03:00 New Revision: 4abcbb053f8adaf48dbfff677e8ccda1f6d52b33 URL: https://github.com/llvm/llvm-project/commit/4abcbb053f8adaf48dbfff677e8ccda1f6d52b33 DIFF: https://github.com/llvm/llvm-project/commit/4abcbb053f8adaf48dbfff677e8ccda1f6d52b33.

[clang] [Clang](NFC) Add coverage for VTable debug info (PR #151818)

2025-09-13 Thread Martin Storsjö via cfe-commits
https://github.com/mstorsjo closed https://github.com/llvm/llvm-project/pull/151818 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] bf156a2 - [Clang](NFC) Add coverage for VTable debug info (#151818)

2025-09-13 Thread via cfe-commits
Author: Tomohiro Kashiwada Date: 2025-09-14T00:39:33+03:00 New Revision: bf156a2087f4a6d251d57369f6bd363cfa7adb41 URL: https://github.com/llvm/llvm-project/commit/bf156a2087f4a6d251d57369f6bd363cfa7adb41 DIFF: https://github.com/llvm/llvm-project/commit/bf156a2087f4a6d251d57369f6bd363cfa7adb41.

[clang] [clang] fix partial ordering of NTTP packs (PR #134461)

2025-09-13 Thread Shafik Yaghmour via cfe-commits
@@ -7085,18 +7102,24 @@ ExprResult Sema::CheckTemplateArgument(NonTypeTemplateParmDecl *Param, ? Context.getIntWidth(IntegerType) : Context.getTypeSize(IntegerType)); - SugaredConverted = TemplateArgum

[clang] [clang] fix partial ordering of NTTP packs (PR #134461)

2025-09-13 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik commented: @mizvekov https://github.com/llvm/llvm-project/pull/134461 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] fix partial ordering of NTTP packs (PR #134461)

2025-09-13 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik edited https://github.com/llvm/llvm-project/pull/134461 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [mlir] [AArch64][SME] Improve codegen for aarch64.sme.cnts* when not in streaming mode (PR #154761)

2025-09-13 Thread Kerry McLaughlin via cfe-commits
@@ -6266,25 +6266,15 @@ SDValue AArch64TargetLowering::LowerINTRINSIC_WO_CHAIN(SDValue Op, case Intrinsic::aarch64_sve_clz: return DAG.getNode(AArch64ISD::CTLZ_MERGE_PASSTHRU, DL, Op.getValueType(), Op.getOperand(2), Op.getOperand(3), Op.getOperand

[clang] Remove spurious include of CompilerInstance.h (PR #157996)

2025-09-13 Thread via cfe-commits
https://github.com/jtstogel closed https://github.com/llvm/llvm-project/pull/157996 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Enable `modernize-return-braced-init-list`'s tests in C++11 (PR #158196)

2025-09-13 Thread Carlos Galvez via cfe-commits
carlosgalvezp wrote: > It will be c++11-or-later by default: That's sounds very fragile, if the standard is important, the test should be explicit about it. Otherwise anyone can bump that standard in run-clang-tidy.py in the future to something else and suddenly this test no longer tests C+

[clang] [analyzer] Correct crash in Z3 wrapper (PR #158276)

2025-09-13 Thread via cfe-commits
vabridgers wrote: I'll rework this change a bit more and update. Turns out the test case I chose to add these cases is for z3 as a constraint manager, not refutation. These cases were discovered using z3 for refutation, so will require some rework to the PR. Thanks for the comments. https://g

[clang] [analyzer] Correct crash in Z3 wrapper (PR #158276)

2025-09-13 Thread via cfe-commits
@@ -13,3 +13,29 @@ int negate(int x, int y) { return 0; return 1; } + +void c(); +void case004(int *a, int *b) { + void *e; + b != a; + c(e); // expected-warning{{1st function call argument is an uninitialized value}} +} + +void z3crash(int a, int b) { + b = a || b;

[clang] [analyzer] Correct crash in Z3 wrapper (PR #158276)

2025-09-13 Thread via cfe-commits
@@ -13,3 +13,29 @@ int negate(int x, int y) { return 0; return 1; } + +void c(); +void case004(int *a, int *b) { + void *e; + b != a; + c(e); // expected-warning{{1st function call argument is an uninitialized value}} +} vabridgers wrote: This test c

[clang] [compiler-rt] [llvm] [AIX] Implement the ifunc attribute. (PR #153049)

2025-09-13 Thread zhijian lin via cfe-commits
@@ -4,6 +4,8 @@ // RUN: %clang_cc1 -triple x86_64-apple-macosx -verify -emit-llvm-only %s // RUN: %clang_cc1 -triple aarch64-none-linux-gnu -verify -emit-llvm-only %s // RUN: %clang_cc1 -triple aarch64-pc-windows-msvcu -verify -emit-llvm-only %s +// RUN: %clang_cc1 -triple powe

[clang-tools-extra] [clang-tools-extra][docs] Add "Potentially Breaking Changes" section to ReleaseNotes (PR #158434)

2025-09-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Baranov Victor (vbvictor) Changes This implements: https://github.com/llvm/llvm-project/blob/30e9cbacab5b474de89992851f126fff300c1ab7/llvm/docs/DeveloperPolicy.rst?plain=1#L282-L286 >From LLVM developer policy. --- Full diff: h

[clang] [Clang][Driver] Revise Cygwin ToolChain to call linker directly (PR #147960)

2025-09-13 Thread via cfe-commits
jeremyd2019 wrote: ``` %{rdynamic: --export-all-symbols} %{!shared: %{!mdll: --large-address-aware --tsaware}} ``` https://github.com/llvm/llvm-project/pull/147960 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-b

[clang-tools-extra] [clang-tidy] Remove 'clang-analyzer-*' checks from default checks. (PR #157306)

2025-09-13 Thread Baranov Victor via cfe-commits
vbvictor wrote: > Perhaps having a section for "Breaking changes" or otherwise "Stuff you need > to take action on" would help. Filed https://github.com/llvm/llvm-project/pull/158434, once it is merged we could mark it as a breaking change. https://github.com/llvm/llvm-project/pull/157306 ___

[clang-tools-extra] [clang-tools-extra][docs] Add "Potentially Breaking Changes" section to ReleaseNotes (PR #158434)

2025-09-13 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor edited https://github.com/llvm/llvm-project/pull/158434 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tools-extra][docs] Add "Potentially Breaking Changes" section to ReleaseNotes (PR #158434)

2025-09-13 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor created https://github.com/llvm/llvm-project/pull/158434 This implements https://github.com/llvm/llvm-project/blob/30e9cbacab5b474de89992851f126fff300c1ab7/llvm/docs/DeveloperPolicy.rst?plain=1#L282-L286 >From LLVM developer policy. >From 48d649852c83807b80dfbd966bef

[clang] [APINotes] Support annotating safety of APIs (PR #157506)

2025-09-13 Thread Gábor Horváth via cfe-commits
@@ -291,6 +292,13 @@ static void ProcessAPINotes(Sema &S, Decl *D, }); } + // swift_safety + if (auto SafetyKind = Info.getSwiftSafety(); + SafetyKind != api_notes::SwiftSafetyKind::None) +D->addAttr(SwiftAttrAttr::Create( +S.Context, +Safe

[clang] [X86] Add F16C f16 -> f32 constexpr support (PR #158142)

2025-09-13 Thread Abhinav Pappu via cfe-commits
https://github.com/abhinavp5 updated https://github.com/llvm/llvm-project/pull/158142 >From e5c35b529c36c7c2670e9532db7da1d7a081b6e5 Mon Sep 17 00:00:00 2001 From: abhinavp5 Date: Wed, 20 Aug 2025 22:40:00 -0400 Subject: [PATCH 1/5] [clang] Update function attributes for F16C intrinsics to inc

[clang-tools-extra] [clang-tidy] Enable `modernize-return-braced-init-list`'s tests in C++11 (PR #158196)

2025-09-13 Thread Baranov Victor via cfe-commits
vbvictor wrote: > Maybe then we could fail test if `std` flag isn't passed to > `check_clang_tidy.py`? This will encourage all new developers to set c++ > standard explicitly all the time. This could be a problem for downstream users, but not a very significant one. To preserve current behavi

[clang-tools-extra] [clang-tidy] Enable `modernize-return-braced-init-list`'s tests in C++11 (PR #158196)

2025-09-13 Thread Baranov Victor via cfe-commits
vbvictor wrote: > > It will be c++11-or-later by default: > > That's sounds very fragile, if the standard is important, the test should be > explicit about it. > > Otherwise anyone can bump that standard in run-clang-tidy.py in the future to > something else and suddenly this test no longer t

[clang] [Clang][Driver] Revise Cygwin ToolChain to call linker directly (PR #147960)

2025-09-13 Thread via cfe-commits
jeremyd2019 wrote: There seems to be some other issue with this patch on 32-bit that I need to track down: when building llvm/clang/compiler-rt 21 with this patch with a clang 21 with this patch, I get errors building compiler-rt builtins (which uses the freshly-built clang). The fact that th

[clang] [clang] Initialize the file system explicitly (PR #158381)

2025-09-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Jan Svoboda (jansvoboda11) Changes This PR is a part of the effort to make the VFS used in the compiler more explicit and consistent. Instead of creating the VFS deep within the compiler (in `CompilerInstance::createFileManager()`), clie

[clang] 2f9a458 - [WebKit checkers] Treat asm brk as trivial (#155046)

2025-09-13 Thread via cfe-commits
Author: Ryosuke Niwa Date: 2025-09-11T14:49:59-07:00 New Revision: 2f9a458f35ccd0fc45067afda346fd59052d0c0c URL: https://github.com/llvm/llvm-project/commit/2f9a458f35ccd0fc45067afda346fd59052d0c0c DIFF: https://github.com/llvm/llvm-project/commit/2f9a458f35ccd0fc45067afda346fd59052d0c0c.diff

[clang] Disable -gsplit-dwarf as it is unsupported at the moment on AIX (PR #158199)

2025-09-13 Thread Aditya Chaudhary via cfe-commits
https://github.com/adityankit updated https://github.com/llvm/llvm-project/pull/158199 >From 5996e8542f9e5440f88d133e3d6751c8237e9f65 Mon Sep 17 00:00:00 2001 From: Aditya Chaudhary Date: Thu, 11 Sep 2025 12:16:31 -0400 Subject: [PATCH] Disable -gsplit-dwarf as it is unsupported at the moment o

[clang] [CIR][NFC] Remove Covered MissingFeatures flags for Complex (PR #158425)

2025-09-13 Thread Henrich Lauko via cfe-commits
@@ -1754,9 +1754,6 @@ LogicalResult cir::BinOp::verify() { return emitError() << "The nsw/nuw flags and the saturated flag are " "mutually exclusive"; - assert(!cir::MissingFeatures::complexType()); - // TODO(cir): verify for complex binops

[clang-tools-extra] [Clang-Tidy] Add google-runtime-float Clang-Tidy check (PR #156763)

2025-09-13 Thread Nicolas van Kempen via cfe-commits
nicovank wrote: Looking at it again, this is fine for parity with `google-runtime-int`. No preference. https://github.com/llvm/llvm-project/pull/156763 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/list

[clang] Disable -gsplit-dwarf as it is unsupported at the moment on AIX (PR #158199)

2025-09-13 Thread Aditya Chaudhary via cfe-commits
https://github.com/adityankit updated https://github.com/llvm/llvm-project/pull/158199 >From a14da943b0cfa4c18ccac1954ff3b16e0ddb9b56 Mon Sep 17 00:00:00 2001 From: Aditya Chaudhary Date: Thu, 11 Sep 2025 12:16:31 -0400 Subject: [PATCH] Disable -gsplit-dwarf as it is unsupported at the moment o

[clang] [webkit.UncountedLambdaCapturesChecker] Treat arguments of std::ranges::all_of as [[clang::noescape]] (PR #158419)

2025-09-13 Thread Ryosuke Niwa via cfe-commits
https://github.com/rniwa updated https://github.com/llvm/llvm-project/pull/158419 >From ee8c60bda6bc36328ea3255459507b1b64817913 Mon Sep 17 00:00:00 2001 From: Ryosuke Niwa Date: Sat, 13 Sep 2025 03:05:37 -0700 Subject: [PATCH 1/2] [webkit.UncountedLambdaCapturesChecker] Treat arguments of std

[clang] [CLANG][CUDA] Enable nan/nanf from libdevice in device code (PR #158301)

2025-09-13 Thread via cfe-commits
https://github.com/DenisGZM updated https://github.com/llvm/llvm-project/pull/158301 >From 100645ecb2f8d406fb8c1b59c3e4f3e85ca81100 Mon Sep 17 00:00:00 2001 From: Denis Gerasimov Date: Fri, 12 Sep 2025 17:13:21 +0300 Subject: [PATCH] [CLANG][CUDA] Enable nan/nanf from libdevice in device code

[clang] [compiler-rt] [llvm] [AIX] Implement the ifunc attribute. (PR #153049)

2025-09-13 Thread Wael Yehia via cfe-commits
https://github.com/w2yehia edited https://github.com/llvm/llvm-project/pull/153049 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [clang][OpenMP] Diagnose invalid allocator in `#pragma omp allocate`; avoid null deref (PR #158146)

2025-09-13 Thread Shafik Yaghmour via cfe-commits
@@ -3321,27 +3321,33 @@ SemaOpenMP::CheckOMPThreadPrivateDecl(SourceLocation Loc, } return D; } - static OMPAllocateDeclAttr::AllocatorTypeTy getAllocatorKind(Sema &S, DSAStackTy *Stack, Expr *Allocator) { + // No allocator expression → Null mem alloc (matches existing

[clang] [llvm] [mlir] [Flang][OpenMP] Enable no-loop kernels (PR #155818)

2025-09-13 Thread Sergio Afonso via cfe-commits
@@ -2590,13 +2590,27 @@ convertOmpWsloop(Operation &opInst, llvm::IRBuilderBase &builder, } builder.SetInsertPoint(*regionBlock, (*regionBlock)->begin()); + + bool noLoopMode = false; + omp::TargetOp targetOp = wsloopOp->getParentOfType(); + if (targetOp) { +Operat

[clang] [Clang][HIP][CUDA] Add `__cluster_dims__` and `__no_cluster__` attribute (PR #156686)

2025-09-13 Thread Shilei Tian via cfe-commits
@@ -7532,6 +7532,25 @@ A managed variable can be accessed in both device and host code. }]; } +def CUDAClusterDimsAttrDoc : Documentation { + let Category = DocCatDecl; + let Content = [{ +In CUDA/HIP programming, the ``__cluster_dims__`` attribute can be applied to a ke

[clang] [AMDGPU] Add sema check for global_atomic_fadd_v2f16 builtin (PR #158145)

2025-09-13 Thread Tim Gu via cfe-commits
https://github.com/tcgu-amd created https://github.com/llvm/llvm-project/pull/158145 Addresses https://github.com/ROCm/ROCm/issues/5253. The builtin expects a vector _Float16 of length 2, but clang does not emit errors when the wrong argument types is supplied (e.g. half2). This causes the c

[clang] [analyzer] In LivenessValues::equals also check liveBindings (PR #157645)

2025-09-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-static-analyzer-1 Author: Balazs Benics (steakhal) Changes This was likely accidentally omitted when `liveBindings` was introduced. I don't think in practice it matters. --- Full diff: https://github.com/llvm/llvm-project/pull/157645.diff 1 Fil

[clang] [analyzer][NFC] Rename LivenessValues::equals to LivenessValues::operator== (PR #157657)

2025-09-13 Thread Balazs Benics via cfe-commits
https://github.com/steakhal closed https://github.com/llvm/llvm-project/pull/157657 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL] Add the `Frs` `DXC` driver option (PR #157690)

2025-09-13 Thread Finn Plummer via cfe-commits
https://github.com/inbelic updated https://github.com/llvm/llvm-project/pull/157690 >From 0831e99798973a6d8c47ef6b257046640298142c Mon Sep 17 00:00:00 2001 From: Finn Plummer Date: Tue, 9 Sep 2025 15:09:28 + Subject: [PATCH 1/3] [HLSL] Add the `Frs` driver option This pr adds the `Frs` as

[clang] [webkit.UncountedLambdaCapturesChecker] Ignore DeclRefExpr to a lambda in an no-escape argument (PR #155025)

2025-09-13 Thread Ryosuke Niwa via cfe-commits
https://github.com/rniwa closed https://github.com/llvm/llvm-project/pull/155025 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Add support for __builtin_alloca (PR #157116)

2025-09-13 Thread Morris Hafner via cfe-commits
https://github.com/mmha closed https://github.com/llvm/llvm-project/pull/157116 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [DirectX] Removing dxbc DescriptorRange from mcbxdc (PR #154629)

2025-09-13 Thread via cfe-commits
@@ -209,6 +202,13 @@ inline bool isValidParameterType(uint32_t V) { return false; } +inline bool isValidRangeType(uint32_t V) { + static_assert(llvm::to_underlying(dxil::ResourceClass::Sampler) == 3, +"dxil::ResourceClass numeric values must match the Root "

[clang] [clang][NFC] Create CodeGenShared component for shared code with ClangIR (PR #157936)

2025-09-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Amr Hesham (AmrDeveloper) Changes In this refactor, I moved functions that are used in ItaniumRTTIBuilder implementation and not using LLVM IR classes into the CodeGenShared library that will contain shared code between Clang classical Co

[clang] 55bef46 - Reland "[clang] Delay normalization of `-fmodules-cache-path` (#150123)"

2025-09-13 Thread Jan Svoboda via cfe-commits
Author: Jan Svoboda Date: 2025-09-10T15:56:04-07:00 New Revision: 55bef46146f05e1911fcb98715716d914efd518c URL: https://github.com/llvm/llvm-project/commit/55bef46146f05e1911fcb98715716d914efd518c DIFF: https://github.com/llvm/llvm-project/commit/55bef46146f05e1911fcb98715716d914efd518c.diff L

[clang] [clang-format] Add IndentPPDirectives Leave option (PR #139750)

2025-09-13 Thread via cfe-commits
https://github.com/owenca approved this pull request. https://github.com/llvm/llvm-project/pull/139750 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] add option to control bin-packing keyworded parameters (PR #131605)

2025-09-13 Thread Eugene Shalygin via cfe-commits
https://github.com/zeule updated https://github.com/llvm/llvm-project/pull/131605 >From bdc4b9df9946eb2575a47d494768bfeed106eba4 Mon Sep 17 00:00:00 2001 From: Eugene Shalygin Date: Mon, 17 Mar 2025 11:23:35 +0100 Subject: [PATCH] [clang-format] option to control bin-packing keyworded paramete

[clang] Make -funwind-tables the default for SystemZ. (PR #139764)

2025-09-13 Thread via cfe-commits
https://github.com/anoopkg6 updated https://github.com/llvm/llvm-project/pull/139764 >From e0b15d83e04aebc8f7198af085c6fbe35f5ca7d4 Mon Sep 17 00:00:00 2001 From: anoopkg6 Date: Tue, 13 May 2025 18:33:15 +0200 Subject: [PATCH] Make -funwind-tables the default for SystemZ. --- clang/lib/Driver

[clang] [Clang][Cygwin] Cygwin x86_64 should accept __stdcall (PR #158385)

2025-09-13 Thread via cfe-commits
@@ -983,6 +983,7 @@ class LLVM_LIBRARY_VISIBILITY CygwinX86_64TargetInfo : public X86_64TargetInfo { : X86_64TargetInfo(Triple, Opts) { this->WCharType = TargetInfo::UnsignedShort; this->WIntType = TargetInfo::UnsignedInt; +this->UseMicrosoftManglingForC = tr

[clang] [Clang][Cygwin] Use correct mangling rule (PR #158404)

2025-09-13 Thread via cfe-commits
jeremyd2019 wrote: The description could use some improvement. How about something like > In 45ca613c135ea7b5fbc63bff003f20bf20f62081, whether to mangle names based on > calling conventions according to Microsoft conventions was refactored to a > bool in the TargetInfo. Cygwin targets also r

[clang] [CIR][NFC] Remove Covered MissingFeatures flags for Complex (PR #158425)

2025-09-13 Thread Amr Hesham via cfe-commits
@@ -1754,9 +1754,6 @@ LogicalResult cir::BinOp::verify() { return emitError() << "The nsw/nuw flags and the saturated flag are " "mutually exclusive"; - assert(!cir::MissingFeatures::complexType()); - // TODO(cir): verify for complex binops

[clang-tools-extra] [clang-tidy] Enable `modernize-return-braced-init-list`'s tests in C++11 (PR #158196)

2025-09-13 Thread Baranov Victor via cfe-commits
vbvictor wrote: > The change will make it test only in C++17, won't it? Don't we want > c++11-or-later instead? It will be c++11 by default: https://github.com/llvm/llvm-project/blob/111de45e838a7d33637da8807212284c988f7fae/clang-tools-extra/test/clang-tidy/check_clang_tidy.py#L392-L394 https:

[clang] [clang-scan-deps] Move command-line generation out of critical section (PR #158187)

2025-09-13 Thread Naveen Seth Hanig via cfe-commits
https://github.com/naveen-seth edited https://github.com/llvm/llvm-project/pull/158187 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][OpenMP]Default clause variable category (PR #157063)

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

[clang] [clang-format] add option to control bin-packing keyworded parameters (PR #131605)

2025-09-13 Thread Eugene Shalygin via cfe-commits
zeule wrote: @owenca, this now uses Context to capture the macro parameters. I hope I correctly understand what you asked for. https://github.com/llvm/llvm-project/pull/131605 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.

[clang-tools-extra] [clang-tidy] Enable `modernize-return-braced-init-list`'s tests in C++11 (PR #158196)

2025-09-13 Thread Carlos Galvez via cfe-commits
https://github.com/carlosgalvezp commented: The change will make it test only in C++17, won't it? Don't we want c++11-or-later instead? https://github.com/llvm/llvm-project/pull/158196 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://li

  1   2   3   4   >