[clang] [clang] Allow trivial pp-directives before C++ module directive (PR #153641)

2025-08-17 Thread Chuanqi Xu via cfe-commits
ChuanqiXu9 wrote: > Thanks for fixing this. Will the fix end up in version 21? I think we need to backport this. https://github.com/llvm/llvm-project/pull/153641 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/ma

[clang] [clang] Allow trivial pp-directives before C++ module directive (PR #153641)

2025-08-17 Thread Boris Kolpackov via cfe-commits
boris-kolpackov wrote: Thanks for fixing this. Will the fix end up in version 21? https://github.com/llvm/llvm-project/pull/153641 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] e6e874c - [clang] Allow trivial pp-directives before C++ module directive (#153641)

2025-08-17 Thread via cfe-commits
Author: yronglin Date: 2025-08-18T14:17:35+08:00 New Revision: e6e874ce8f055f5b8c5d7f8c7fb0afe764d1d350 URL: https://github.com/llvm/llvm-project/commit/e6e874ce8f055f5b8c5d7f8c7fb0afe764d1d350 DIFF: https://github.com/llvm/llvm-project/commit/e6e874ce8f055f5b8c5d7f8c7fb0afe764d1d350.diff LOG:

[clang-tools-extra] [clang-reorder-fields] Support designated initializers (PR #142150)

2025-08-17 Thread Vladimir Vuksanovic via cfe-commits
vvuksanovic wrote: Ping https://github.com/llvm/llvm-project/pull/142150 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Add an ABI_EXTENSION concept that is testable under -pedantic… (PR #153506)

2025-08-17 Thread Oliver Hunt via cfe-commits
https://github.com/ojhunt closed https://github.com/llvm/llvm-project/pull/153506 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Allow trivial pp-directives before C++ module directive (PR #153641)

2025-08-17 Thread via cfe-commits
https://github.com/yronglin closed https://github.com/llvm/llvm-project/pull/153641 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Add an ABI_EXTENSION concept that is testable under -pedantic… (PR #153506)

2025-08-17 Thread Oliver Hunt via cfe-commits
ojhunt wrote: Closing, as for the current critical case (ptrauth) we're keeping the tests as a feature when the target is arm64e, and adding a ``__PTRAUTH__`` define that will be the correct test going forward. https://github.com/llvm/llvm-project/pull/153506 __

[clang] [clang] Allow trivial pp-directives before C++ module directive (PR #153641)

2025-08-17 Thread via cfe-commits
https://github.com/yronglin edited https://github.com/llvm/llvm-project/pull/153641 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Allow trivial pp-directives before C++ module directive (PR #153641)

2025-08-17 Thread via cfe-commits
yronglin wrote: Thanks for the review! https://github.com/llvm/llvm-project/pull/153641 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Fix lambda *this capture crash - Fixes #154054 (PR #154057)

2025-08-17 Thread Yanzuo Liu via cfe-commits
zwuis wrote: Where is the fix? Only test file is modified currently. https://github.com/llvm/llvm-project/pull/154057 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [clang] Include explicit object methods in overload suggestions (PR #154041)

2025-08-17 Thread Mythreya Kuricheti via cfe-commits
https://github.com/MythreyaK edited https://github.com/llvm/llvm-project/pull/154041 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [clang] Include explicit object methods in overload suggestions (PR #154041)

2025-08-17 Thread Mythreya Kuricheti via cfe-commits
https://github.com/MythreyaK updated https://github.com/llvm/llvm-project/pull/154041 >From 8df889319e8146db958d027d5dee8ed22d6c9d3c Mon Sep 17 00:00:00 2001 From: Mythreya Kuricheti Date: Sat, 16 Aug 2025 15:48:02 -0700 Subject: [PATCH 1/2] [clang] Include explicit object methods in overload

[clang] [clang] Fix incompatible pointer to integer conversion error in array initialization - Fixes #154046 (PR #154061)

2025-08-17 Thread Timm Baeder via cfe-commits
tbaederr wrote: Can you write at least _some_ of this yourself instead of having it ALL AI generated? https://github.com/llvm/llvm-project/pull/154061 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listi

[clang-tools-extra] [clang-tidy] Add detection in container's method except `empty` in `readability-container-size-empty` (PR #154017)

2025-08-17 Thread Carlos Galvez via cfe-commits
https://github.com/carlosgalvezp approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/154017 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][PAC] ptrauth_qualifier and ptrauth_intrinsic should only be available on Darwin (PR #153912)

2025-08-17 Thread Oliver Hunt via cfe-commits
https://github.com/ojhunt updated https://github.com/llvm/llvm-project/pull/153912 >From ea731927d6bdf85a3cdb333b756447658f2c2ea6 Mon Sep 17 00:00:00 2001 From: Oliver Hunt Date: Fri, 15 Aug 2025 18:40:12 -0700 Subject: [PATCH 1/2] [clang][PAC] Make ptrauth_qualifier and ptrauth_intrinsic Darw

[clang] [clang] Fix incompatible pointer to integer conversion error in array initialization (PR #154061)

2025-08-17 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] Fix lambda *this capture crash - Fixes #154054 (PR #154057)

2025-08-17 Thread Rohan A M via cfe-commits
https://github.com/badwriter123 edited https://github.com/llvm/llvm-project/pull/154057 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISCV] Add SpacemiT XSMTVDot (SpacemiT Vector Dot Product) extension. (PR #151706)

2025-08-17 Thread Jim Lin via cfe-commits
=?utf-8?b?5p6X5YWL?= ,xuqian ,xuqian ,xuqian Message-ID: In-Reply-To: https://github.com/tclin914 approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/151706 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://list

[clang] [CIR] Handle FunctionToPointerDecay casts (#153657) (PR #154060)

2025-08-17 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] Fix lambda *this capture crash - Fixes #154054 (PR #154057)

2025-08-17 Thread Rohan A M via cfe-commits
https://github.com/badwriter123 edited https://github.com/llvm/llvm-project/pull/154057 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Handle FunctionToPointerDecay casts (#153657) (PR #154060)

2025-08-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Justin Riddell (Arghnews) Changes Add upstream support for handling implicit FunctionToPointerDecay casts in ClangIR, for task #153657, migrate code from clangir repo Passes `check-clang` test target, have run `git-clang-format` from repo

[clang] [clang] Fix incompatible pointer to integer conversion error in array initialization - Fixes #154046 (PR #154061)

2025-08-17 Thread Yanzuo Liu via cfe-commits
zwuis wrote: Do you know the issue is compiler crash? https://github.com/llvm/llvm-project/pull/154061 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Handle FunctionToPointerDecay casts (#153657) (PR #154060)

2025-08-17 Thread Justin Riddell via cfe-commits
https://github.com/Arghnews edited https://github.com/llvm/llvm-project/pull/154060 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Fix incompatible pointer to integer conversion error in array initialization - Fixes #154046 (PR #154061)

2025-08-17 Thread Rohan A M via cfe-commits
https://github.com/badwriter123 edited https://github.com/llvm/llvm-project/pull/154061 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Fix incompatible pointer to integer conversion error in array initialization (PR #154061)

2025-08-17 Thread Rohan A M via cfe-commits
https://github.com/badwriter123 edited https://github.com/llvm/llvm-project/pull/154061 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Fix incompatible pointer to integer conversion error in array initialization (PR #154061)

2025-08-17 Thread Rohan A M via cfe-commits
https://github.com/badwriter123 edited https://github.com/llvm/llvm-project/pull/154061 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Fix incompatible pointer to integer conversion error in array initialization - Fixes #154046 (PR #154061)

2025-08-17 Thread Rohan A M via cfe-commits
https://github.com/badwriter123 edited https://github.com/llvm/llvm-project/pull/154061 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Fix incompatible pointer to integer conversion error in array initialization (PR #154061)

2025-08-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Rohan A M (badwriter123) Changes This commit adds comprehensive documentation and test coverage for a common C programming error: 'incompatible pointer to integer conversion initializing const char with an expression of type char[N]'. Ad

[clang] [CIR] Handle FunctionToPointerDecay casts (#153657) (PR #154060)

2025-08-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangir Author: Justin Riddell (Arghnews) Changes Add upstream support for handling implicit FunctionToPointerDecay casts in ClangIR, for task #153657, migrate code from clangir repo Passes `check-clang` test target, have run `git-clang-format` from re

[clang] [clang] Fix incompatible pointer to integer conversion error in array initialization (PR #154061)

2025-08-17 Thread Rohan A M via cfe-commits
https://github.com/badwriter123 created https://github.com/llvm/llvm-project/pull/154061 This commit adds comprehensive documentation and test coverage for a common C programming error: 'incompatible pointer to integer conversion initializing const char with an expression of type char[N]'. Ad

[clang] [CIR] Handle FunctionToPointerDecay casts (#153657) (PR #154060)

2025-08-17 Thread Justin Riddell via cfe-commits
https://github.com/Arghnews created https://github.com/llvm/llvm-project/pull/154060 Add upstream support for handling implicit FunctionToPointerDecay casts in ClangIR, for task #153657, migrate code from clangir repo Passes `check-clang` test target, have run `git-clang-format` from repo as

[clang] [llvm] [RISCV] Add SpacemiT XSMTVDot (SpacemiT Vector Dot Product) extension. (PR #151706)

2025-08-17 Thread via cfe-commits
@@ -0,0 +1,139 @@ +//===-- RISCVInstrInfoXSpacemiT.td -*- tablegen -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[clang] [llvm] [RISCV] Add SpacemiT XSMTVDot (SpacemiT Vector Dot Product) extension. (PR #151706)

2025-08-17 Thread via cfe-commits
https://github.com/link-xyq updated https://github.com/llvm/llvm-project/pull/151706 From bc0277022da5020cf8e4903e4d518bbd844026a5 Mon Sep 17 00:00:00 2001 From: xuqian Date: Fri, 1 Aug 2025 22:26:16 +0800 Subject: [PATCH 01/16] [RISCV] Add SpacemiT XSMTVDot (SpacemiT Vector Dot Product) exten

[clang] Fix lambda *this capture crash (PR #154057)

2025-08-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Rohan A M (badwriter123) Changes ## Summary This PR adds a regression test to ensure that combining lambda capture by copy of `*this` with explicit `this` parameters doesn't crash the compiler. ## Background This test case addresses a c

[clang] Fix lambda *this capture crash (PR #154057)

2025-08-17 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] Fix lambda *this capture crash (PR #154057)

2025-08-17 Thread Rohan A M via cfe-commits
https://github.com/badwriter123 created https://github.com/llvm/llvm-project/pull/154057 ## Summary This PR adds a regression test to ensure that combining lambda capture by copy of `*this` with explicit `this` parameters doesn't crash the compiler. ## Background This test case addresses a c

[clang] [clang][PAC] ptrauth_qualifier and ptrauth_intrinsic should only be available on Darwin (PR #153912)

2025-08-17 Thread Oliver Hunt via cfe-commits
ojhunt wrote: I realized that this can't be made to work nicely and automatically no matter how much I would like it to as of course the macro based version of `__has_ptrauth_feature` can't check for a macro being defined in expression contexts. Oh well, I guess that dream is over. I'll just s

[clang] [llvm] [RISCV][llvm] Support fixed-length vector inline assembly constraints (PR #150724)

2025-08-17 Thread Brandon Wu via cfe-commits
https://github.com/4vtomat closed https://github.com/llvm/llvm-project/pull/150724 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 98f4b77 - [RISCV][llvm] Support fixed-length vector inline assembly constraints (#150724)

2025-08-17 Thread via cfe-commits
Author: Brandon Wu Date: 2025-08-18T03:36:12Z New Revision: 98f4b7797eea4f83b5b6ac2571cf3c972edbc758 URL: https://github.com/llvm/llvm-project/commit/98f4b7797eea4f83b5b6ac2571cf3c972edbc758 DIFF: https://github.com/llvm/llvm-project/commit/98f4b7797eea4f83b5b6ac2571cf3c972edbc758.diff LOG: [R

[clang] [clang-tools-extra] [clang] Include explicit object methods in overload suggestions (PR #154041)

2025-08-17 Thread Mythreya Kuricheti via cfe-commits
@@ -1428,10 +1428,18 @@ void ResultBuilder::AddResult(Result R, DeclContext *CurContext, AdjustResultPriorityForDecl(R); + // Account for explicit object parameter + const auto getQualifiers = [&](const CXXMethodDecl *MethodDecl) { +if (MethodDecl->isExplicitObjectMe

[clang] [clang-tools-extra] [clang] Include explicit object methods in overload suggestions (PR #154041)

2025-08-17 Thread Mythreya Kuricheti via cfe-commits
https://github.com/MythreyaK updated https://github.com/llvm/llvm-project/pull/154041 >From 8df889319e8146db958d027d5dee8ed22d6c9d3c Mon Sep 17 00:00:00 2001 From: Mythreya Kuricheti Date: Sat, 16 Aug 2025 15:48:02 -0700 Subject: [PATCH] [clang] Include explicit object methods in overload sugg

[clang] [llvm] [RISCV][llvm] Support fixed-length vector inline assembly constraints (PR #150724)

2025-08-17 Thread Brandon Wu via cfe-commits
https://github.com/4vtomat auto_merge_enabled https://github.com/llvm/llvm-project/pull/150724 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISCV][llvm] Support fixed-length vector inline assembly constraints (PR #150724)

2025-08-17 Thread Brandon Wu via cfe-commits
https://github.com/4vtomat updated https://github.com/llvm/llvm-project/pull/150724 >From 48bf19c5e692a25dc006f1b32569fdbf1414f1f3 Mon Sep 17 00:00:00 2001 From: Brandon Wu Date: Fri, 25 Jul 2025 16:49:54 -0700 Subject: [PATCH 1/3] [RISCV][llvm] Support fixed-length vector inline assembly cons

[clang] [clang] Proofread SourceBasedCodeCoverage.rst (PR #154050)

2025-08-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/154050.diff 1 Files Affected: - (modified) clang/docs/SourceBasedCodeCoverage.rst (+16-16) ``diff diff --git a/clang/docs/SourceBa

[clang] [clang] Proofread SourceBasedCodeCoverage.rst (PR #154050)

2025-08-17 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/154050 None >From 86d8710e45be438c54abf190e035332c1e4b9759 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 17 Aug 2025 19:16:23 -0700 Subject: [PATCH] [clang] Proofread SourceBasedCodeCoverage.rst --- c

[clang] [clang] Allow trivial pp-directives before C++ module directive (PR #153641)

2025-08-17 Thread Michael Spencer via cfe-commits
https://github.com/Bigcheese approved this pull request. https://github.com/llvm/llvm-project/pull/153641 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Allow trivial pp-directives before C++ module directive (PR #153641)

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

[clang] [Headers][X86] Allow integer arithmetic intrinsics to be used in constexpr (PR #152986)

2025-08-17 Thread Keyv Chan via cfe-commits
@@ -24,7 +24,7 @@ __target__("avx512vl,avx512dq,no-evex512"), \ __min_vector_width__(256))) -static __inline__ __m256i __DEFAULT_FN_ATTRS256 +static __inline__ __m256i __DEFAULT_FN_ATTRS256_CONSTEXPR keyvcha

[clang] [llvm] [RISCV] Add SpacemiT XSMTVDot (SpacemiT Vector Dot Product) extension. (PR #151706)

2025-08-17 Thread Mark Zhuang via cfe-commits
=?utf-8?b?5p6X5YWL?= ,xuqian ,xuqian Message-ID: In-Reply-To: @@ -0,0 +1,139 @@ +//===-- RISCVInstrInfoXSpacemiT.td -*- tablegen -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LI

[clang] [Coroutines] Allow [[clang::coro_wrapper]] for class (PR #93268)

2025-08-17 Thread Chuanqi Xu via cfe-commits
ChuanqiXu9 wrote: > @ChuanqiXu9, I just ran across this PR -- and I immediately wondered if it > could be used to improve stack-use-after-free checks for `folly::result` (the > short-circuiting coro you saw on my recent PR). > > Like the classes you mention in the PR description here, `folly::

[clang] [clang] fix redecl chain assumption when checking linkage consistency (PR #153996)

2025-08-17 Thread Chuanqi Xu via cfe-commits
@@ -0,0 +1,22 @@ +// RUN: rm -rf %t +// RUN: mkdir -p %t +// RUN: split-file %s %t +// +// RUN: %clang_cc1 -std=c++20 %t/B.cppm -emit-module-interface -o %t/B.pcm +// RUN: %clang_cc1 -std=c++20 -fsyntax-only -fprebuilt-module-path=%t %t/C.cpp + +//--- A.hpp +template struct A {};

[clang] [SYCL] SYCL host kernel launch support for the sycl_kernel_entry_point attribute. (PR #152403)

2025-08-17 Thread Tom Honermann via cfe-commits
https://github.com/tahonermann updated https://github.com/llvm/llvm-project/pull/152403 >From 5b42f6b9470a96a79b3474fcf384fa950449e095 Mon Sep 17 00:00:00 2001 From: Tom Honermann Date: Wed, 6 Aug 2025 19:26:54 -0700 Subject: [PATCH 1/4] [SYCL] SYCL host kernel launch support for the sycl_kern

[clang] [clang] [Sema] Simplify Expr::isUnusedResultAWarning for CXXConstructExpr (PR #153116)

2025-08-17 Thread via cfe-commits
halbi2 wrote: @erichkeane will you land this on my behalf? https://github.com/llvm/llvm-project/pull/153116 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [OpenMP][WIP] Use ATTACH maps for array-sections/subscripts on pointers. (PR #153683)

2025-08-17 Thread Abhinav Gaba via cfe-commits
https://github.com/abhinavgaba edited https://github.com/llvm/llvm-project/pull/153683 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [clang] Skip suggesting unqualified members in explicit-object member functions (PR #153760)

2025-08-17 Thread Mythreya Kuricheti via cfe-commits
https://github.com/MythreyaK updated https://github.com/llvm/llvm-project/pull/153760 >From b279e4b718488a08d25fdc43edae965c0fec288c Mon Sep 17 00:00:00 2001 From: Mythreya Kuricheti Date: Fri, 15 Aug 2025 00:52:37 -0700 Subject: [PATCH 1/3] [clang] Skip unqualified members in explicit-member

[clang] [clang-tools-extra] [clang] Include explicit object methods in overload suggestions (PR #154041)

2025-08-17 Thread Mythreya Kuricheti via cfe-commits
https://github.com/MythreyaK edited https://github.com/llvm/llvm-project/pull/154041 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Headers][X86] Allow pmuludq/pmuldq to be used in constexpr (PR #153293)

2025-08-17 Thread Pedro Lobo via cfe-commits
https://github.com/pedroclobo closed https://github.com/llvm/llvm-project/pull/153293 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] d42a1d4 - [Headers][X86] Allow pmuludq/pmuldq to be used in constexpr (#153293)

2025-08-17 Thread via cfe-commits
Author: Pedro Lobo Date: 2025-08-18T00:32:33+01:00 New Revision: d42a1d405d8d18afb335db45558be4fce345aeee URL: https://github.com/llvm/llvm-project/commit/d42a1d405d8d18afb335db45558be4fce345aeee DIFF: https://github.com/llvm/llvm-project/commit/d42a1d405d8d18afb335db45558be4fce345aeee.diff LO

[libclc] [NFC][libclc] add missing __CLC_ prefix all internal macros (PR #153523)

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

[clang] [clang] return type not correctly deduced for discarded lambdas (PR #153921)

2025-08-17 Thread Oliver Hunt via cfe-commits
https://github.com/ojhunt updated https://github.com/llvm/llvm-project/pull/153921 >From cee36b9d023f97b55bf01220ccd6f404311db339 Mon Sep 17 00:00:00 2001 From: Oliver Hunt Date: Fri, 15 Aug 2025 21:04:07 -0700 Subject: [PATCH 1/2] [clang] return type not correctly deduced for discarded lambda

[clang] [clang] return type not correctly deduced for discarded lambdas (PR #153921)

2025-08-17 Thread Oliver Hunt via cfe-commits
https://github.com/ojhunt ready_for_review https://github.com/llvm/llvm-project/pull/153921 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libclc] [libclc] Implement __clc_get_local_size/__clc_get_max_sub_group_size for amdgcn (PR #153785)

2025-08-17 Thread Wenju He via cfe-commits
wenju-he wrote: https://github.com/llvm/llvm-project/pull/153785/commits/a8fcf405007d05d123f397f66b4139d53586c1b5 is a minor fix to return 1 for out-of-bound dim https://github.com/llvm/llvm-project/pull/153785 ___ cfe-commits mailing list cfe-commits

[clang] [clang] return type not correctly deduced for discarded lambdas (PR #153921)

2025-08-17 Thread Oliver Hunt via cfe-commits
https://github.com/ojhunt edited https://github.com/llvm/llvm-project/pull/153921 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] return type not correctly deduced for discarded lambdas (PR #153921)

2025-08-17 Thread Oliver Hunt via cfe-commits
https://github.com/ojhunt updated https://github.com/llvm/llvm-project/pull/153921 >From cee36b9d023f97b55bf01220ccd6f404311db339 Mon Sep 17 00:00:00 2001 From: Oliver Hunt Date: Fri, 15 Aug 2025 21:04:07 -0700 Subject: [PATCH 1/2] [clang] return type not correctly deduced for discarded lambda

[clang] [clang] return type not correctly deduced for discarded lambdas (PR #153921)

2025-08-17 Thread Oliver Hunt via cfe-commits
https://github.com/ojhunt updated https://github.com/llvm/llvm-project/pull/153921 >From cee36b9d023f97b55bf01220ccd6f404311db339 Mon Sep 17 00:00:00 2001 From: Oliver Hunt Date: Fri, 15 Aug 2025 21:04:07 -0700 Subject: [PATCH] [clang] return type not correctly deduced for discarded lambdas T

[libclc] [libclc] Implement __clc_get_local_size/__clc_get_max_sub_group_size for amdgcn (PR #153785)

2025-08-17 Thread Wenju He via cfe-commits
https://github.com/wenju-he updated https://github.com/llvm/llvm-project/pull/153785 >From d0a9e7fa683d294aaabf24ccc34cea54a8a5eb1f Mon Sep 17 00:00:00 2001 From: Wenju He Date: Fri, 15 Aug 2025 12:43:54 +0200 Subject: [PATCH 1/2] [libclc] Implement __clc_get_local_size/__clc_get_max_sub_group

[clang] [OpenACC][NFCI] Implement 'recipe' generation for firstprivate copy (PR #153622)

2025-08-17 Thread Sergei Barannikov via cfe-commits
@@ -2604,31 +2604,120 @@ SemaOpenACC::CreateInitRecipe(OpenACCClauseKind CK, const Expr *VarExpr) { QualType VarTy = VarExpr->getType().getNonReferenceType().getUnqualifiedType(); + IdentifierInfo *VarName = [&]() { +switch (CK) { +case OpenACCClauseKind::Pri

[clang] [clang-tools-extra] [clang] Include explicit object methods in overload suggestions (PR #154041)

2025-08-17 Thread Mythreya Kuricheti via cfe-commits
@@ -4473,6 +4473,125 @@ TEST(CompletionTest, SkipExplicitObjectParameter) { snippetSuffix(""; } } + +TEST(CompletionTest, ListExplicitObjectOverloads) { MythreyaK wrote: Test slightly modified from example that @zwuis or

[clang] [clang-tools-extra] [clang] Include explicit object methods in overload suggestions (PR #154041)

2025-08-17 Thread Mythreya Kuricheti via cfe-commits
@@ -2288,7 +2288,10 @@ class CXXMethodDecl : public FunctionDecl { const CXXRecordDecl *Decl); Qualifiers getMethodQualifiers() const { -return getType()->castAs()->getMethodQuals(); +if (isExplicitObjectMemberFunction()) + return g

[libclc] [libclc] Fix out-of-bound value for workitem functions according to OpenCL spec (PR #153784)

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

[libclc] bce14c6 - [libclc] Fix out-of-bound value for workitem functions according to OpenCL spec (#153784)

2025-08-17 Thread via cfe-commits
Author: Wenju He Date: 2025-08-18T06:51:01+08:00 New Revision: bce14c69db0ba2b8c54b250a0bd309879fb5bc78 URL: https://github.com/llvm/llvm-project/commit/bce14c69db0ba2b8c54b250a0bd309879fb5bc78 DIFF: https://github.com/llvm/llvm-project/commit/bce14c69db0ba2b8c54b250a0bd309879fb5bc78.diff LOG:

[clang] [clang-tools-extra] [clang] Include explicit object methods in overload suggestions (PR #154041)

2025-08-17 Thread Mythreya Kuricheti via cfe-commits
https://github.com/MythreyaK created https://github.com/llvm/llvm-project/pull/154041 Fixes #109608. (signature help still needs fixing. Will add a commit soon) Include methods that use explicit object in code complete suggestions. ```cpp struct S { void foo1() const; void foo2(); void

[clang] [clang][Modules] Reporting Errors for Duplicating Link Declarations in `modulemap`s (PR #148959)

2025-08-17 Thread Qiongsi Wu via cfe-commits
https://github.com/qiongsiwu edited https://github.com/llvm/llvm-project/pull/148959 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Modules] Reporting Errors for Duplicating Link Declarations in `modulemap`s (PR #148959)

2025-08-17 Thread Qiongsi Wu via cfe-commits
https://github.com/qiongsiwu edited https://github.com/llvm/llvm-project/pull/148959 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Modules] Reporting Errors for Duplicating Link Declarations in `modulemap`s (PR #148959)

2025-08-17 Thread Qiongsi Wu via cfe-commits
https://github.com/qiongsiwu updated https://github.com/llvm/llvm-project/pull/148959 >From 0e8a0db8ace8fd1f450cf2364b4c975d418eddc1 Mon Sep 17 00:00:00 2001 From: Qiongsi Wu Date: Mon, 14 Jul 2025 18:22:27 -0700 Subject: [PATCH 1/6] Initial implementation of modulemap link decl duplication ch

[clang] [clang][Modules] Reporting Errors for Duplicating Link Declarations in `modulemap`s (PR #148959)

2025-08-17 Thread Qiongsi Wu via cfe-commits
https://github.com/qiongsiwu updated https://github.com/llvm/llvm-project/pull/148959 >From 0e8a0db8ace8fd1f450cf2364b4c975d418eddc1 Mon Sep 17 00:00:00 2001 From: Qiongsi Wu Date: Mon, 14 Jul 2025 18:22:27 -0700 Subject: [PATCH 1/6] Initial implementation of modulemap link decl duplication ch

[clang] [clang][PAC][darwin] Set correct default ptrauth features for arm64e-darwin (PR #153722)

2025-08-17 Thread Oliver Hunt via cfe-commits
https://github.com/ojhunt updated https://github.com/llvm/llvm-project/pull/153722 >From 0cbb0846f270c6d6cb15492ba34ff9ae2ed33f67 Mon Sep 17 00:00:00 2001 From: Oliver Hunt Date: Thu, 14 Aug 2025 17:43:03 -0700 Subject: [PATCH 1/5] [clang][PAC][darwin] Set correct default ptrauth features for

[clang] [clang][PAC][darwin] Set correct default ptrauth features for arm64e-darwin (PR #153722)

2025-08-17 Thread Oliver Hunt via cfe-commits
https://github.com/ojhunt updated https://github.com/llvm/llvm-project/pull/153722 >From 0cbb0846f270c6d6cb15492ba34ff9ae2ed33f67 Mon Sep 17 00:00:00 2001 From: Oliver Hunt Date: Thu, 14 Aug 2025 17:43:03 -0700 Subject: [PATCH 1/4] [clang][PAC][darwin] Set correct default ptrauth features for

[clang] [clang][PAC][darwin] Set correct default ptrauth features for arm64e-darwin (PR #153722)

2025-08-17 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,c -- clang/test/Driver/arch-arm64e-arch-opt-defaults.c

[clang] [clang][PAC][darwin] Set correct default ptrauth features for arm64e-darwin (PR #153722)

2025-08-17 Thread Oliver Hunt via cfe-commits
https://github.com/ojhunt updated https://github.com/llvm/llvm-project/pull/153722 >From 0cbb0846f270c6d6cb15492ba34ff9ae2ed33f67 Mon Sep 17 00:00:00 2001 From: Oliver Hunt Date: Thu, 14 Aug 2025 17:43:03 -0700 Subject: [PATCH 1/3] [clang][PAC][darwin] Set correct default ptrauth features for

[clang] [CIR] Implement Statement Expressions (PR #153677)

2025-08-17 Thread Morris Hafner via cfe-commits
https://github.com/mmha updated https://github.com/llvm/llvm-project/pull/153677 >From d68b52a0af50bb4d18df40e81c54c32bd700e702 Mon Sep 17 00:00:00 2001 From: Morris Hafner Date: Thu, 14 Aug 2025 22:44:35 +0200 Subject: [PATCH 1/7] [CIR] Implement Statement Expressions This patch adds support f

[clang] [clang] Fix side effects resolving overloads of builtin functions (#138651) (PR #154034)

2025-08-17 Thread via cfe-commits
https://github.com/Sirraide approved this pull request. LGTM, but please add a release note before merging. https://github.com/llvm/llvm-project/pull/154034 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/

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

2025-08-17 Thread Nikita Popov via cfe-commits
@@ -0,0 +1,538 @@ +//===- 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] [llvm] [WIP] ABI Lowering Library (PR #140112)

2025-08-17 Thread via cfe-commits
@@ -0,0 +1,538 @@ +//===- 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] [clang-tidy][docs] Add description of "clang-diagnostic-error" (PR #153870)

2025-08-17 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor closed https://github.com/llvm/llvm-project/pull/153870 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] dff8dac - [clang-tidy][docs] Add description of "clang-diagnostic-error" (#153870)

2025-08-17 Thread via cfe-commits
Author: Baranov Victor Date: 2025-08-18T00:18:32+03:00 New Revision: dff8dac9dca2b1bca3814e6240c41d9cbda42b71 URL: https://github.com/llvm/llvm-project/commit/dff8dac9dca2b1bca3814e6240c41d9cbda42b71 DIFF: https://github.com/llvm/llvm-project/commit/dff8dac9dca2b1bca3814e6240c41d9cbda42b71.diff

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

2025-08-17 Thread Oleksandr T. via cfe-commits
a-tarasyuk wrote: @AaronBallman I’ve moved the diagnostic under the `-Wattribute-preprocessor-tokens` warning flag and made it a `pedantic` diagnostic, which will be triggered in C++. Is that the behavior you were aiming for? @cor3ntin should `/` be disallowed as well, or are `#` and `/` the

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

2025-08-17 Thread via cfe-commits
@@ -0,0 +1,538 @@ +//===- 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] [clang] Fix side effects resolving overloads of builtin functions (#138651) (PR #154034)

2025-08-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (comex) Changes When parsing `__builtin_addressof(Value)`, where `Value` is a constexpr variable of primitive type, we will run through `rewriteBuiltinFunctionDecl`. `rewriteBuiltinFunctionDecl` is meant to handle a special case whic

[clang] [clang] Fix side effects resolving overloads of builtin functions (#138651) (PR #154034)

2025-08-17 Thread via cfe-commits
https://github.com/comex created https://github.com/llvm/llvm-project/pull/154034 When parsing `__builtin_addressof(Value)`, where `Value` is a constexpr variable of primitive type, we will run through `rewriteBuiltinFunctionDecl`. `rewriteBuiltinFunctionDecl` is meant to handle a special case

[clang-tools-extra] [clang-tidy] Improve "-quiet" option by suppressing "xxx warnings generated" (PR #154012)

2025-08-17 Thread Baranov Victor via cfe-commits
vbvictor wrote: P.S. One of the comments in the original issue was right about annoyance with CI integration. I started [tinkering with `clang-tidy` CI for LLVM](https://github.com/vbvictor/llvm-project/pull/2) and stumbled upon this. I'd need to also enhance `-quiet` mode in scripts because f

[clang-tools-extra] [clang-tidy] Improve "-quiet" option by suppressing "xxx warnings generated" (PR #154012)

2025-08-17 Thread Baranov Victor via cfe-commits
vbvictor wrote: > LGTM, thanks for fixing! > > It might be worth double-checking the comment I wrote about this carets > option (which I guess is equivalent to passing the command line flag): > > [#47042 > (comment)](https://github.com/llvm/llvm-project/issues/47042#issuecomment-1305630120) >

[clang-tools-extra] [clang-tidy] Improve "-quiet" option by suppressing "xxx warnings generated" (PR #154012)

2025-08-17 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor updated https://github.com/llvm/llvm-project/pull/154012 >From 09a1f8e854f95eedb8cf064f980711390290b3e5 Mon Sep 17 00:00:00 2001 From: Victor Baranov Date: Sun, 17 Aug 2025 14:16:36 +0300 Subject: [PATCH 1/4] [clang-tidy] Improve "-quiet" option by suppressing warni

[clang] [clang-format] Add option to omit wrapping for empty records (PR #151970)

2025-08-17 Thread Tomáš Slanina via cfe-commits
https://github.com/itzexpoexpo updated https://github.com/llvm/llvm-project/pull/151970 From 2c26e66e16bf2c42019e8a5bce421f106fcf978d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Slanina?= Date: Mon, 4 Aug 2025 15:19:53 +0200 Subject: [PATCH 01/11] [clang-format] Add option to omi

[clang] [clang-format] Fix a bug in breaking before FunctionDeclarationName (PR #153924)

2025-08-17 Thread via cfe-commits
llvmbot wrote: /pull-request llvm/llvm-project#154030 https://github.com/llvm/llvm-project/pull/153924 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Allow breaking before bit-field colons (PR #153529)

2025-08-17 Thread via cfe-commits
llvmbot wrote: /pull-request llvm/llvm-project#154029 https://github.com/llvm/llvm-project/pull/153529 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Don't annotate class property specifiers as StartOfName (PR #153525)

2025-08-17 Thread via cfe-commits
llvmbot wrote: Failed to cherry-pick: 9a692e0f94a99abea781397da5629336c74e8f8e https://github.com/llvm/llvm-project/actions/runs/17025259697 Please manually backport the fix and push it to your github fork. Once this is done, please create a [pull request](https://github.com/llvm/llvm-proje

[clang] [clang-format] Add option to omit wrapping for empty records (PR #151970)

2025-08-17 Thread Björn Schäpers via cfe-commits
https://github.com/HazardyKnusperkeks approved this pull request. Please add an entry to the changelog. And await feedback from @owenca. https://github.com/llvm/llvm-project/pull/151970 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://li

[clang] [clang-format] Fix a bug in breaking before FunctionDeclarationName (PR #153924)

2025-08-17 Thread via cfe-commits
owenca wrote: /cherry-pick a21d17f1d7173cdbc25f141595a0be9056760f77 https://github.com/llvm/llvm-project/pull/153924 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Allow breaking before bit-field colons (PR #153529)

2025-08-17 Thread via cfe-commits
owenca wrote: /cherry-pick 5e57a10f502c8fc524bd119a53ddbf643686c7a0 https://github.com/llvm/llvm-project/pull/153529 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

  1   2   >