[clang] [clang][bytecode] Fix bit casts to IntAP types (PR #158509)

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

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

2025-09-14 Thread via cfe-commits
JVApen wrote: Can @kadircet and/or @llvm-beanz be added as reviewer? (https://discord.com/channels/636084430946959380/649134148723802113/1416928414241259670) https://github.com/llvm/llvm-project/pull/158461 ___ cfe-commits mailing list cfe-commits@li

[clang] [clang][bytecode][NFC] Surround Pointer diagram in \verbatim (PR #158550)

2025-09-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes See if this fixes the documentation. --- Full diff: https://github.com/llvm/llvm-project/pull/158550.diff 1 Files Affected: - (modified) clang/lib/AST/ByteCode/Pointer.h (+2-1) ``diff diff --git

[clang] [clang][bytecode][NFC] Surround Pointer diagram in \verbatim (PR #158550)

2025-09-14 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/158550 See if this fixes the documentation. >From 932ed7eabf7e040ed7b2d40a6c5dff3392de7fa0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Mon, 15 Sep 2025 08:40:40 +0200 Subject: [PATCH] [clang][b

[clang] [clang][bytecode] Fix bit casts to IntAP types (PR #158509)

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

[clang] [libcxx] [Clang] Normalize constraints before checking for satisfaction (PR #141776)

2025-09-14 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 edited https://github.com/llvm/llvm-project/pull/141776 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-09-14 Thread Matt Arsenault via cfe-commits
@@ -436,4 +440,32 @@ void SemaAMDGPU::handleAMDGPUMaxNumWorkGroupsAttr(Decl *D, addAMDGPUMaxNumWorkGroupsAttr(D, AL, AL.getArgAsExpr(0), YExpr, ZExpr); } + +bool SemaAMDGPU::checkAMDGCNAtomicFaddV2F16Type(CallExpr *TheCall) { + // Check that the pointer argument is a pointe

[clang] [clang][bytecode] Check for dummy pointers in CopyArray op (PR #158543)

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

[clang] 7b0d910 - [clang][bytecode] Check for dummy pointers in CopyArray op (#158543)

2025-09-14 Thread via cfe-commits
Author: Timm Baeder Date: 2025-09-15T08:33:34+02:00 New Revision: 7b0d91002691e6fe4ad421682f7d2a12c21d9055 URL: https://github.com/llvm/llvm-project/commit/7b0d91002691e6fe4ad421682f7d2a12c21d9055 DIFF: https://github.com/llvm/llvm-project/commit/7b0d91002691e6fe4ad421682f7d2a12c21d9055.diff L

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

2025-09-14 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-m68k-linux-cross` running on `suse-gary-m68k-cross` while building `clang` at step 5 "ninja check 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/27/builds/16051 Here is the relevant piece

[clang] [libcxx] [Clang] Normalize constraints before checking for satisfaction (PR #141776)

2025-09-14 Thread Younan Zhang via cfe-commits
@@ -1379,216 +1890,327 @@ static void diagnoseWellFormedUnsatisfiedConstraintExpr(Sema &S, S.DiagnoseTypeTraitDetails(SubstExpr); } -template static void diagnoseUnsatisfiedConstraintExpr( -Sema &S, const llvm::PointerUnion &Record, -bool First = true) { - if (a

[clang] 6931bad - [clang][bytecode] Fix bit casts to IntAP types (#158509)

2025-09-14 Thread via cfe-commits
Author: Timm Baeder Date: 2025-09-15T08:20:24+02:00 New Revision: 6931bad36c0ddae441d115814022fd5d3cbc554b URL: https://github.com/llvm/llvm-project/commit/6931bad36c0ddae441d115814022fd5d3cbc554b DIFF: https://github.com/llvm/llvm-project/commit/6931bad36c0ddae441d115814022fd5d3cbc554b.diff L

[clang] [clang][bytecode] Pass initializer along in `evaluateAsInitializer()` (PR #158056)

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

[clang] [OpenMP 5.2] New syntax for 'uses_allocators' clause (PR #157025)

2025-09-14 Thread Urvi Rav via cfe-commits
https://github.com/ravurvi20 updated https://github.com/llvm/llvm-project/pull/157025 >From 1efc6c0d9418d5aa4299595b5008b4b580e556b1 Mon Sep 17 00:00:00 2001 From: urvi-rav Date: Thu, 4 Sep 2025 04:47:06 -0500 Subject: [PATCH 1/6] Implement new syntax for uses_allocators clause --- .../clang/

[clang] 4a11cce - [Clang][OpenMP]Default clause variable category (#157063)

2025-09-14 Thread via cfe-commits
Author: SunilKuravinakop Date: 2025-09-15T10:40:37+05:30 New Revision: 4a11ccee497a3e266c38eb6e9279f75cc61cfb9d URL: https://github.com/llvm/llvm-project/commit/4a11ccee497a3e266c38eb6e9279f75cc61cfb9d DIFF: https://github.com/llvm/llvm-project/commit/4a11ccee497a3e266c38eb6e9279f75cc61cfb9d.di

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

2025-09-14 Thread Aditya Chaudhary via cfe-commits
https://github.com/adityankit updated https://github.com/llvm/llvm-project/pull/158199 >From 4f58d192cb423bf3a546c5dab307a4064707cd13 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] [clang][bytecode] Check for dummy pointers in CopyArray op (PR #158543)

2025-09-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes They can't be written to or read from. Fixes #158535 --- Full diff: https://github.com/llvm/llvm-project/pull/158543.diff 2 Files Affected: - (modified) clang/lib/AST/ByteCode/Interp.h (+3) - (modified)

[clang] [OpenMP 5.2] New syntax for 'uses_allocators' clause (PR #157025)

2025-09-14 Thread Urvi Rav via cfe-commits
ravurvi20 wrote: > Also update clang release notes document done!! https://github.com/llvm/llvm-project/pull/157025 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][bytecode] Pass initializer along in `evaluateAsInitializer()` (PR #158056)

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

[clang] 03c356c - [clang][bytecode] Pass initializer along in `evaluateAsInitializer()` (#158056)

2025-09-14 Thread via cfe-commits
Author: Timm Baeder Date: 2025-09-15T07:39:11+02:00 New Revision: 03c356c5544fad1890cc9abd0c1a9b7bab6f2a6b URL: https://github.com/llvm/llvm-project/commit/03c356c5544fad1890cc9abd0c1a9b7bab6f2a6b DIFF: https://github.com/llvm/llvm-project/commit/03c356c5544fad1890cc9abd0c1a9b7bab6f2a6b.diff L

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

2025-09-14 Thread Aditya Chaudhary via cfe-commits
https://github.com/adityankit updated https://github.com/llvm/llvm-project/pull/158199 >From 4f58d192cb423bf3a546c5dab307a4064707cd13 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] [OpenMP 5.2] New syntax for 'uses_allocators' clause (PR #157025)

2025-09-14 Thread Urvi Rav via cfe-commits
https://github.com/ravurvi20 updated https://github.com/llvm/llvm-project/pull/157025 >From 1efc6c0d9418d5aa4299595b5008b4b580e556b1 Mon Sep 17 00:00:00 2001 From: urvi-rav Date: Thu, 4 Sep 2025 04:47:06 -0500 Subject: [PATCH 1/6] Implement new syntax for uses_allocators clause --- .../clang/

[clang] [clang][bytecode] Check for dummy pointers in CopyArray op (PR #158543)

2025-09-14 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/158543 They can't be written to or read from. Fixes #158535 >From 614a2f42bab39fd0b7d40172f328aa8596d617fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Mon, 15 Sep 2025 07:34:21 +0200 Subject:

[clang] [libcxx] [Clang] Normalize constraints before checking for satisfaction (PR #141776)

2025-09-14 Thread Matheus Izvekov via cfe-commits
@@ -1379,216 +1890,327 @@ static void diagnoseWellFormedUnsatisfiedConstraintExpr(Sema &S, S.DiagnoseTypeTraitDetails(SubstExpr); } -template static void diagnoseUnsatisfiedConstraintExpr( -Sema &S, const llvm::PointerUnion &Record, -bool First = true) { - if (a

[clang] [clang] WIP: remove workaround for SubstNonTypeTemplateParmExpr transform (PR #158541)

2025-09-14 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov created https://github.com/llvm/llvm-project/pull/158541 None >From 297953bedf93135420d86e8289b4a9d59598f4a2 Mon Sep 17 00:00:00 2001 From: Matheus Izvekov Date: Mon, 15 Sep 2025 01:58:01 -0300 Subject: [PATCH] [clang] WIP: remove workaround for SubstNonTypeTemplat

[clang] [OpenMP 5.2] New syntax for 'uses_allocators' clause (PR #157025)

2025-09-14 Thread Urvi Rav via cfe-commits
https://github.com/ravurvi20 updated https://github.com/llvm/llvm-project/pull/157025 >From 1efc6c0d9418d5aa4299595b5008b4b580e556b1 Mon Sep 17 00:00:00 2001 From: urvi-rav Date: Thu, 4 Sep 2025 04:47:06 -0500 Subject: [PATCH 1/6] Implement new syntax for uses_allocators clause --- .../clang/

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

2025-09-14 Thread CHANDRA GHALE via cfe-commits
https://github.com/chandraghale closed 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] [llvm] [RISCV] Remove experimental from Zicfilp and Zicfiss (PR #157015)

2025-09-14 Thread Sam Elliott via cfe-commits
lenary wrote: Paging some things back into my head (sorry, I was on vacation). The codegen for shadow stack and landing pads is guarded by a different feature, right? These just control whether the underlying instructions are supported? If so, this seems fine to me. https://github.com/llvm/ll

[clang] Add unique_ptr accesses to -Wunsafe-buffer-usage (PR #156773)

2025-09-14 Thread via cfe-commits
shreya-jain wrote: @jkorous-apple Modified the `-Wunsafe-buffer-usage` to flag use of `operator[]` for `unique_ptr`. https://github.com/llvm/llvm-project/pull/156773 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi

[clang] [clang] Add the candiscard attribute to suppress nodiscard (PR #154943)

2025-09-14 Thread Yanzuo Liu via cfe-commits
zwuis wrote: > I don't know what an RFC is. https://clang.llvm.org/get_involved.html#criteria https://github.com/llvm/llvm-project/pull/154943 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-

[clang] [libcxx] [Clang] Normalize constraints before checking for satisfaction (PR #141776)

2025-09-14 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 edited https://github.com/llvm/llvm-project/pull/141776 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libcxx] [Clang] Normalize constraints before checking for satisfaction (PR #141776)

2025-09-14 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 edited https://github.com/llvm/llvm-project/pull/141776 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libcxx] [Clang] Normalize constraints before checking for satisfaction (PR #141776)

2025-09-14 Thread Younan Zhang via cfe-commits
@@ -1379,216 +1890,327 @@ static void diagnoseWellFormedUnsatisfiedConstraintExpr(Sema &S, S.DiagnoseTypeTraitDetails(SubstExpr); } -template static void diagnoseUnsatisfiedConstraintExpr( -Sema &S, const llvm::PointerUnion &Record, -bool First = true) { - if (a

[clang] [libcxx] [Clang] Normalize constraints before checking for satisfaction (PR #141776)

2025-09-14 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 deleted https://github.com/llvm/llvm-project/pull/141776 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libcxx] [Clang] Normalize constraints before checking for satisfaction (PR #141776)

2025-09-14 Thread Younan Zhang via cfe-commits
@@ -1379,216 +1890,327 @@ static void diagnoseWellFormedUnsatisfiedConstraintExpr(Sema &S, S.DiagnoseTypeTraitDetails(SubstExpr); } -template static void diagnoseUnsatisfiedConstraintExpr( -Sema &S, const llvm::PointerUnion &Record, -bool First = true) { - if (a

[libclc] [libclc][NFC] Update README.md to use runtime build (PR #158283)

2025-09-14 Thread Wenju He via cfe-commits
https://github.com/wenju-he closed https://github.com/llvm/llvm-project/pull/158283 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libclc] fef88d2 - [libclc][NFC] Update README.md to use runtime build (#158283)

2025-09-14 Thread via cfe-commits
Author: Wenju He Date: 2025-09-15T10:10:07+08:00 New Revision: fef88d2ef21edc83660968e0134e28dda88d4a11 URL: https://github.com/llvm/llvm-project/commit/fef88d2ef21edc83660968e0134e28dda88d4a11 DIFF: https://github.com/llvm/llvm-project/commit/fef88d2ef21edc83660968e0134e28dda88d4a11.diff LOG:

[clang] Add table to track OpenMP 5.2 Support; Update status of task graph (PR #158322)

2025-09-14 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `ppc64le-flang-rhel-clang` running on `ppc64le-flang-rhel-test` while building `clang` at step 6 "test-build-unified-tree-check-flang". Full details are available at: https://lab.llvm.org/buildbot/#/builders/157/builds/39736

[clang] [llvm] [WIP] ABI Lowering Library (PR #140112)

2025-09-14 Thread Nikita Popov via cfe-commits
@@ -0,0 +1,531 @@ +//===- ABI/Types.h --*- C++ -*-===// +// +// 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-tools-extra] Fixes clangd/clangd#1797 (PR #158461)

2025-09-14 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] [clang] VectorExprEvaluator::VisitCallExpr - add constant folding for X86 pslldqi/psrldqi infrinsics (PR #157403)

2025-09-14 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 1/5] todo list --- clang/lib/AST/ExprConstant.cpp | 4

[clang] [HLSL] Add support for input semantics in structs (PR #153224)

2025-09-14 Thread Nathan Gauër via cfe-commits
https://github.com/Keenuts updated https://github.com/llvm/llvm-project/pull/153224 From 7b09222a9792d9e83c68acea3429e6bd1622e0b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nathan=20Gau=C3=ABr?= Date: Tue, 12 Aug 2025 18:06:17 +0200 Subject: [PATCH 1/2] [HLSL] Add support for input semantics in s

[clang] [libcxx] [clang][libc++] Fix spelling of "synthesize" (PR #158523)

2025-09-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-libcxx Author: None (halbi2) Changes --- Patch is 23.78 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/158523.diff 8 Files Affected: - (modified) clang/docs/LanguageExtensions.rst (+3-3) - (modified) cl

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

2025-09-14 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor closed 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] [libcxx] [clang][libc++] Fix spelling of "synthesize" (PR #158523)

2025-09-14 Thread via cfe-commits
https://github.com/halbi2 created https://github.com/llvm/llvm-project/pull/158523 None >From d63b4cf5258de608c6a42259082057b03811ca18 Mon Sep 17 00:00:00 2001 From: halbi2 Date: Sun, 14 Sep 2025 21:45:51 -0400 Subject: [PATCH] [clang][libc++] Fix spelling of "synthesize" --- clang/docs/Lang

[clang] [libcxx] [Clang] Normalize constraints before checking for satisfaction (PR #141776)

2025-09-14 Thread Matheus Izvekov via cfe-commits
@@ -1257,4 +1256,35 @@ template concept PerfectSquare = [](){} // expected-note 2{{here}} ([](auto) { return true; }) < PerfectSquare ; // expected-error@-1 {{declaration of 'T' shadows template parameter}} \ // expected-error@-1 {{a concept definition cannot refer to itself}

[clang] [clang] NFC: non-type template argument check cleanup (PR #158515)

2025-09-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Matheus Izvekov (mizvekov) Changes This is a follow-up to #134461, reverting some unnecessary changes. This cleans up some checks around the assumption that a pack expansion on the argument side could appear when checking non-type templat

[clang] [clang-format] Add option AllowShortRecordOnASingleLine (PR #154580)

2025-09-14 Thread via cfe-commits
=?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= S

[clang] [libcxx] [Clang] Normalize constraints before checking for satisfaction (PR #141776)

2025-09-14 Thread Matheus Izvekov via cfe-commits
@@ -1379,216 +1890,327 @@ static void diagnoseWellFormedUnsatisfiedConstraintExpr(Sema &S, S.DiagnoseTypeTraitDetails(SubstExpr); } -template static void diagnoseUnsatisfiedConstraintExpr( -Sema &S, const llvm::PointerUnion &Record, -bool First = true) { - if (a

[clang] [clang-format] Add option AllowShortRecordOnASingleLine (PR #154580)

2025-09-14 Thread Tomáš Slanina via cfe-commits
https://github.com/itzexpoexpo updated https://github.com/llvm/llvm-project/pull/154580 From 877d155b65a054a240490d3c7e2015673f964466 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Slanina?= Date: Wed, 20 Aug 2025 19:28:23 +0200 Subject: [PATCH 01/17] [clang-format] Add option Allo

[clang] [libcxx] [Clang] Normalize constraints before checking for satisfaction (PR #141776)

2025-09-14 Thread Matheus Izvekov via cfe-commits
@@ -1257,4 +1256,35 @@ template concept PerfectSquare = [](){} // expected-note 2{{here}} ([](auto) { return true; }) < PerfectSquare ; // expected-error@-1 {{declaration of 'T' shadows template parameter}} \ // expected-error@-1 {{a concept definition cannot refer to itself}

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

2025-09-14 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] [clang] fix partial ordering of NTTP packs (PR #134461)

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

[clang] [Sema] Fix missing warnings for unused args with invalid printf specs. (PR #158514)

2025-09-14 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] [clang] NFC: non-type template argument check cleanup (PR #158515)

2025-09-14 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov created https://github.com/llvm/llvm-project/pull/158515 This is a follow-up to #134461, reverting some unnecessary changes. This cleans up some checks around the assumption that a pack expansion on the argument side could appear when checking non-type template argu

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

2025-09-14 Thread via cfe-commits
owenca wrote: > As to the implementation, it can be simplified and probably made less > brittle. I would do something like the following instead: > > * Name the option as `AllowBreakBeforeQtProperty`. > * Use `Q_PROPERTY` for a new context `Context::QtProperty`. (See `_Generic` > and `Context:

[clang] [Sema] Fix missing warnings for unused args with invalid printf specs. (PR #158514)

2025-09-14 Thread via cfe-commits
https://github.com/lakreite updated https://github.com/llvm/llvm-project/pull/158514 >From ef99801b67c51694186b5c872a75c4b6dab406a3 Mon Sep 17 00:00:00 2001 From: lakreite Date: Sun, 14 Sep 2025 23:46:45 +0300 Subject: [PATCH] [Sema] Fix missing warnings for unused args with invalid printf spe

[clang] [Sema] Fix missing warnings for unused args with invalid printf specs. (PR #158514)

2025-09-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Lakreite (lakreite) Changes Before this change, the analyzer didn't emit warnings for unused arguments when the format string contained invalid `printf` specifier (printf, os_log, NSLog) at the end of the format string. Before: ```c p

[clang] [Sema] Fix missing warnings for unused args with invalid printf specs. (PR #158514)

2025-09-14 Thread via cfe-commits
https://github.com/lakreite updated https://github.com/llvm/llvm-project/pull/158514 >From ef99801b67c51694186b5c872a75c4b6dab406a3 Mon Sep 17 00:00:00 2001 From: lakreite Date: Sun, 14 Sep 2025 23:46:45 +0300 Subject: [PATCH] [Sema] Fix missing warnings for unused args with invalid printf spe

[clang] [Sema] Fix missing warnings for unused args with invalid printf specs. (PR #158514)

2025-09-14 Thread via cfe-commits
https://github.com/lakreite created https://github.com/llvm/llvm-project/pull/158514 Before this change, the analyzer didn't emit warnings for unused arguments when the format string contained invalid `printf` specifier (printf, os_log, NSLog) at the end of the format string. Before: ```c

[clang] [clang-format] Handle C digit separators (PR #158418)

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

[clang] 30f4781 - [clang-format] Handle C digit separators (#158418)

2025-09-14 Thread via cfe-commits
Author: owenca Date: 2025-09-14T14:20:59-07:00 New Revision: 30f4781eef567b99214e02137a57c7ac91279a48 URL: https://github.com/llvm/llvm-project/commit/30f4781eef567b99214e02137a57c7ac91279a48 DIFF: https://github.com/llvm/llvm-project/commit/30f4781eef567b99214e02137a57c7ac91279a48.diff LOG: [

[clang] [Sema] Diagnose by-value copy constructors in template instantiations (PR #130866)

2025-09-14 Thread Avi Kivity via cfe-commits
avikivity wrote: > This error is [produced for the following > code](https://github.com/carbon-language/carbon-lang/pull/5170): > > ```c++ > template > class SetView { > SetView(SetView> other_view) > requires(!std::same_as>); > }; > ``` > > ... which is never an eligible copy construct

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

2025-09-14 Thread via cfe-commits
https://github.com/owenca closed 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] 7dd2f1c - [clang-format] Add IndentPPDirectives Leave option (#139750)

2025-09-14 Thread via cfe-commits
Author: Gedare Bloom Date: 2025-09-14T13:47:06-07:00 New Revision: 7dd2f1cc10902e632c0c78c75a30432a53eb59dc URL: https://github.com/llvm/llvm-project/commit/7dd2f1cc10902e632c0c78c75a30432a53eb59dc DIFF: https://github.com/llvm/llvm-project/commit/7dd2f1cc10902e632c0c78c75a30432a53eb59dc.diff

[clang] [Clang][OpenMP] Add an additional class to hold data that will be shared between all loop transformations (PR #155849)

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

[clang] [Headers][X86] Enable constexpr handling for MMX/SSE/AVX/AVX512 avg intrinsics (PR #157464)

2025-09-14 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon closed https://github.com/llvm/llvm-project/pull/157464 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][bytecode] Fix bit casts to IntAP types (PR #158509)

2025-09-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes They were left out. Fixes #153920 --- Full diff: https://github.com/llvm/llvm-project/pull/158509.diff 2 Files Affected: - (modified) clang/lib/AST/ByteCode/InterpBuiltinBitCast.cpp (+21-7) - (modified)

[clang] [clang][bytecode] Fix bit casts to IntAP types (PR #158509)

2025-09-14 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/158509 They were left out. Fixes #153920 >From 7ec071c268f2fd13e190fff38e302c7aec3c1b0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sun, 14 Sep 2025 22:20:38 +0200 Subject: [PATCH] [clang][byt

[clang-tools-extra] [clang-tidy][NFC] Fix a couple of suspicious StringRef::data() usages (PR #158480)

2025-09-14 Thread via cfe-commits
@@ -99,7 +99,10 @@ void yamlize(IO &IO, ClangTidyOptions::OptionMap &Val, bool, for (auto &Option : SortedOptions) { bool UseDefault = false; void *SaveInfo = nullptr; + // NOLINTBEGIN(bugprone-suspicious-stringview-data-usage): Requires + // updates t

[clang-tools-extra] [clang-tidy][NFC] Switch to new file header style (PR #158497)

2025-09-14 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook closed https://github.com/llvm/llvm-project/pull/158497 ___ 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 a couple of suspicious StringRef::data() usages (PR #158480)

2025-09-14 Thread Baranov Victor via cfe-commits
@@ -99,7 +99,10 @@ void yamlize(IO &IO, ClangTidyOptions::OptionMap &Val, bool, for (auto &Option : SortedOptions) { bool UseDefault = false; void *SaveInfo = nullptr; + // NOLINTBEGIN(bugprone-suspicious-stringview-data-usage): Requires + // updates t

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

2025-09-14 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-ppc64le-linux-test-suite` running on `ppc64le-clang-test-suite` while building `clang` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/95/builds/182

[clang-tools-extra] [clang-tidy][NFC] Fix a couple of suspicious StringRef::data() usages (PR #158480)

2025-09-14 Thread via cfe-commits
https://github.com/capitan-davide updated https://github.com/llvm/llvm-project/pull/158480 >From d70698939c4a7bb43c2eba139852079b6d3b3bcd Mon Sep 17 00:00:00 2001 From: Davide Cunial Date: Sun, 14 Sep 2025 15:16:17 +0200 Subject: [PATCH 1/2] [clang-tidy] Fix a couple of suspicious StringRef::da

[clang-tools-extra] [clang-tidy][NFC] Fix a couple of suspicious StringRef::data() usages (PR #158480)

2025-09-14 Thread via cfe-commits
https://github.com/capitan-davide updated https://github.com/llvm/llvm-project/pull/158480 >From d70698939c4a7bb43c2eba139852079b6d3b3bcd Mon Sep 17 00:00:00 2001 From: Davide Cunial Date: Sun, 14 Sep 2025 15:16:17 +0200 Subject: [PATCH 1/2] [clang-tidy] Fix a couple of suspicious StringRef::da

[clang-tools-extra] [clang-tidy][NFC] Fix a couple of suspicious StringRef::data() usages (PR #158480)

2025-09-14 Thread Baranov Victor via cfe-commits
vbvictor wrote: > > LGTM But there are still some violations left? > > Yes, two more. Unfortunately, they require some refactoring as > `llvm::yaml::IO` API uses C-strings only. We can use a `// NOLINT(bugprone-suspicious-stringview-data-usage)` or `// NOLINTNEXTLINE(bugprone-suspicious-strin

[clang-tools-extra] [clang-tidy][NFC] Fix a couple of suspicious StringRef::data() usages (PR #158480)

2025-09-14 Thread Baranov Victor via cfe-commits
@@ -99,7 +99,10 @@ void yamlize(IO &IO, ClangTidyOptions::OptionMap &Val, bool, for (auto &Option : SortedOptions) { bool UseDefault = false; void *SaveInfo = nullptr; + // NOLINTBEGIN(bugprone-suspicious-stringview-data-usage): Requires + // updates t

[clang-tools-extra] [clang-tidy][NFC] Fix a couple of suspicious StringRef::data() usages (PR #158480)

2025-09-14 Thread Baranov Victor via cfe-commits
@@ -116,7 +119,10 @@ void yamlize(IO &IO, ClangTidyOptions::OptionMap &Val, bool, } else if (isa(I.getCurrentNode())) { IO.beginMapping(); for (StringRef Key : IO.keys()) { +// NOLINTNEXTLINE(bugprone-suspicious-stringview-data-usage): Requires +

[clang-tools-extra] [clang-tidy][NFC] Fix a couple of suspicious StringRef::data() usages (PR #158480)

2025-09-14 Thread Baranov Victor via cfe-commits
@@ -116,7 +119,10 @@ void yamlize(IO &IO, ClangTidyOptions::OptionMap &Val, bool, } else if (isa(I.getCurrentNode())) { IO.beginMapping(); for (StringRef Key : IO.keys()) { +// NOLINTNEXTLINE(bugprone-suspicious-stringview-data-usage): Requires +

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

2025-09-14 Thread via cfe-commits
Author: Baranov Victor Date: 2025-09-14T11:45:55+03:00 New Revision: 9c91d4a31d758cbddc0fc6347470604c2040ab2f URL: https://github.com/llvm/llvm-project/commit/9c91d4a31d758cbddc0fc6347470604c2040ab2f DIFF: https://github.com/llvm/llvm-project/commit/9c91d4a31d758cbddc0fc6347470604c2040ab2f.diff

[clang] [clang-format] Handle C digit separators (PR #158418)

2025-09-14 Thread Björn Schäpers via cfe-commits
https://github.com/HazardyKnusperkeks approved this pull request. https://github.com/llvm/llvm-project/pull/158418 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Interp] Assert on virtual func call from array elem (PR #158502)

2025-09-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: marius doerner (mariusdr) Changes Fixes #152893. An assert was raised when a constexpr virtual function was called from an constexpr array element with -fexperimental-new-constant-interpreter set. --- Full diff: https://github.com/llvm/l

[clang] [Clang][Interp] Assert on virtual func call from array elem (PR #158502)

2025-09-14 Thread marius doerner via cfe-commits
https://github.com/mariusdr created https://github.com/llvm/llvm-project/pull/158502 Fixes #152893. An assert was raised when a constexpr virtual function was called from an constexpr array element with -fexperimental-new-constant-interpreter set. >From 26e222a60af111c638d87176c20e9cb6a11a4ce

[clang-tools-extra] [clang-tidy][NFC] Fix a couple of suspicious StringRef::data() usages (PR #158480)

2025-09-14 Thread via cfe-commits
https://github.com/capitan-davide updated https://github.com/llvm/llvm-project/pull/158480 >From d70698939c4a7bb43c2eba139852079b6d3b3bcd Mon Sep 17 00:00:00 2001 From: Davide Cunial Date: Sun, 14 Sep 2025 15:16:17 +0200 Subject: [PATCH 1/2] [clang-tidy] Fix a couple of suspicious StringRef::da

[clang-tools-extra] [clang-tidy] Add new check `modernize-use-structured-binding` (PR #158462)

2025-09-14 Thread via cfe-commits
https://github.com/flovent updated https://github.com/llvm/llvm-project/pull/158462 >From a1941312179171a8752c27f886158ce4fd90db33 Mon Sep 17 00:00:00 2001 From: flovent Date: Sun, 14 Sep 2025 14:33:59 +0800 Subject: [PATCH 01/19] [clang-tidy] Add new check `modernize-use-structured-binding`

[clang-tools-extra] [clang-tidy] Add new check `modernize-use-structured-binding` (PR #158462)

2025-09-14 Thread via cfe-commits
https://github.com/flovent updated https://github.com/llvm/llvm-project/pull/158462 >From a1941312179171a8752c27f886158ce4fd90db33 Mon Sep 17 00:00:00 2001 From: flovent Date: Sun, 14 Sep 2025 14:33:59 +0800 Subject: [PATCH 01/18] [clang-tidy] Add new check `modernize-use-structured-binding`

[clang-tools-extra] [clang-tidy] Add new check `modernize-use-structured-binding` (PR #158462)

2025-09-14 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor edited https://github.com/llvm/llvm-project/pull/158462 ___ 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] Switch to new file header style (PR #158497)

2025-09-14 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor approved this pull request. https://github.com/llvm/llvm-project/pull/158497 ___ 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 a couple of suspicious StringRef::data() usages (PR #158480)

2025-09-14 Thread via cfe-commits
capitan-davide wrote: > LGTM But there are still some violations left? Yes, two more. Unfortunately, they require some refactoring as `llvm::yaml::IO` API uses C-strings only. ```sh clang-tools-extra/clang-tidy/ClangTidyOptions.cpp:102:36: warning: result of a `data()` call may not be null te

[clang-tools-extra] [clang-tidy][NFC] Fix a couple of suspicious StringRef::data() usages (PR #158480)

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

[clang] [llvm] [clang][SPARC] Pass 16-aligned 16-byte structs as i128 in CC (PR #155829)

2025-09-14 Thread via cfe-commits
koachan wrote: Okay, revised the implementation. Now it should properly do things @beetrees @efriedma-quic https://github.com/llvm/llvm-project/pull/155829 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman

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

2025-09-14 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-aarch64-global-isel` running on `linaro-clang-aarch64-global-isel` while building `clang` at step 7 "ninja check 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/125/builds/10357 Here is the

[clang-tools-extra] [clang-tidy] Fix a couple of suspicious StringRef::data() usages (PR #158480)

2025-09-14 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor approved this pull request. LGTM But there are still some violations left? https://github.com/llvm/llvm-project/pull/158480 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listi

[clang] [CIR] Add support for copy elision (PR #157713)

2025-09-14 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper edited https://github.com/llvm/llvm-project/pull/157713 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Add new check `modernize-use-structured-binding` (PR #158462)

2025-09-14 Thread via cfe-commits
@@ -0,0 +1,419 @@ +//===--- UseStructuredBindingCheck.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] [Clang][Cygwin] Cygwin x86_64 should accept __stdcall (PR #158385)

2025-09-14 Thread via cfe-commits
https://github.com/jeremyd2019 closed 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] [NFC][clang] replace a C-array with std::array (PR #158047)

2025-09-14 Thread Nathan Gauër via cfe-commits
https://github.com/Keenuts created https://github.com/llvm/llvm-project/pull/158047 Follow up to #157841, replacing the C-array with std::array so iterators can be used. From e42d05ca3c20817d9869f3e4cc3b98087b285175 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nathan=20Gau=C3=ABr?= Date: Thu, 11

[clang-tools-extra] [clang-tidy] Add check 'bugprone-cast-to-struct' (PR #153428)

2025-09-14 Thread Balázs Kéri via cfe-commits
@@ -0,0 +1,60 @@ +.. title:: clang-tidy - bugprone-cast-to-struct + +bugprone-cast-to-struct +=== + +Finds casts from pointers to struct or scalar type to pointers to struct type. + +Casts between pointers to different structs can be unsafe because it is possi

[clang-tools-extra] [clang-tidy] Add new check `modernize-use-structured-binding` (PR #158462)

2025-09-14 Thread via cfe-commits
@@ -0,0 +1,216 @@ +// RUN: %check_clang_tidy -std=c++17-or-later %s modernize-use-structured-binding %t -- -- -I %S/Inputs/use-structured-binding/ + +#include "fake_std_pair_tuple.h" + +template +void MarkUsed(T x); + +struct TestClass { + int a; + int b; + TestClass() : a(0),

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

2025-09-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangd Author: None (JVApen) Changes Do not restrict HeaderSourceSwitch to switching between .h and .cpp. For templates, the relevant 'source' is the header containing the implementation of the templated functions. Instead of considering every symbol

  1   2   >