[clang] [clang] Proofread ClangOffloadBundler.rst (PR #165136)

2025-10-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/165136.diff 1 Files Affected: - (modified) clang/docs/ClangOffloadBundler.rst (+20-20) ``diff diff --git a/clang/docs/ClangOffload

[clang] [clang] Proofread ClangOffloadBundler.rst (PR #165136)

2025-10-25 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/165136 None >From 309a55e2dc2b1d2c5d5da9a866d80507e140dc93 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sat, 25 Oct 2025 20:22:30 -0700 Subject: [PATCH] [clang] Proofread ClangOffloadBundler.rst --- clang

[clang] Revert "[clang-format] Annotate ::operator and Foo::operator correctly" (PR #164670)

2025-10-25 Thread Eli Friedman via cfe-commits
efriedma-quic wrote: > The recent activity here is https://github.com/llvm/llvm-project/pull/164048, > then https://github.com/llvm/llvm-project/pull/164670, then > https://github.com/llvm/llvm-project/commit/a948f25142e21e60594c6d24e2851f1ff3f216be? As far as I can tell, what happened is @owe

[clang] [Clang] Reenable Tests on SystemZ/AIX Using env -u (PR #164816)

2025-10-25 Thread Aiden Grossman via cfe-commits
https://github.com/boomanaiden154 closed https://github.com/llvm/llvm-project/pull/164816 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 42bba7f - [Clang] Reenable Tests on SystemZ/AIX Using env -u (#164816)

2025-10-25 Thread via cfe-commits
Author: Aiden Grossman Date: 2025-10-25T21:08:45-07:00 New Revision: 42bba7fc7a21d2b68933bbc98deb1ee52bbfe2eb URL: https://github.com/llvm/llvm-project/commit/42bba7fc7a21d2b68933bbc98deb1ee52bbfe2eb DIFF: https://github.com/llvm/llvm-project/commit/42bba7fc7a21d2b68933bbc98deb1ee52bbfe2eb.diff

[clang-tools-extra] [clang-tidy] Fix `modernize-use-scoped-lock` crash on malformed code (PR #165127)

2025-10-25 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook updated https://github.com/llvm/llvm-project/pull/165127 >From 25c6938282df50df7749b822be0458009dc31e4a Mon Sep 17 00:00:00 2001 From: Victor Chernyakin Date: Sat, 25 Oct 2025 18:48:13 -0700 Subject: [PATCH] [clang-tidy] Fix `modernize-use-scoped-lock` crash on ma

[clang] [clang-format] Allow line breaking with PointerAlignment configured (PR #164686)

2025-10-25 Thread via cfe-commits
@@ -8644,6 +8644,28 @@ TEST_F(FormatTest, BreaksFunctionDeclarations) { " a) {}", Style); + Style.ColumnLimit = 70; + verifyFormat( + "void foo(const MySuperSuperSuperSuperSuperSuper

[clang] [clang-format] Allow line breaking with PointerAlignment configured (PR #164686)

2025-10-25 Thread via cfe-commits
@@ -8644,6 +8644,28 @@ TEST_F(FormatTest, BreaksFunctionDeclarations) { " a) {}", Style); + Style.ColumnLimit = 70; + verifyFormat( + "void foo(const MySuperSuperSuperSuperSuperSuper

[compiler-rt] [libunwind] [compiler-rt][libunwind] Allow for CET on OpenBSD (PR #164341)

2025-10-25 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 `compiler-rt,libunwind` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builde

[clang] [clang-tools-extra] [lld] [lldb] [llvm] [ADT] Deprecate StringSwitch Cases with 3+ args. NFC. (PR #165119)

2025-10-25 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-x64-windows-msvc` running on `windows-gcebot2` while building `clang-tools-extra,clang,lld,lldb,llvm` at step 4 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/63/builds/11476 Here

[clang-tools-extra] [clang-tidy] Fix `modernize-use-scoped-lock` crash on malformed code (PR #165127)

2025-10-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: Victor Chernyakin (localspook) Changes This code: ```cpp void f() { std::lock_guard dont_crash {some_nonexistant_variable}; } ``` Generates an AST like this: ```txt TranslationUnitDecl `-FunctionDecl

[clang-tools-extra] [clang-tidy] Fix `modernize-use-scoped-lock` crash on malformed code (PR #165127)

2025-10-25 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook created https://github.com/llvm/llvm-project/pull/165127 This code: ```cpp void f() { std::lock_guard dont_crash {some_nonexistant_variable}; } ``` Generates an AST like this: ```txt TranslationUnitDecl `-FunctionDecl line:3:6 f 'void ()' `-CompoundStmt

[clang] [clang-tools-extra] [lld] [lldb] [llvm] [ADT] Deprecate StringSwitch Cases with 3+ args. NFC. (PR #165119)

2025-10-25 Thread Jakub Kuderski via cfe-commits
https://github.com/kuhar closed https://github.com/llvm/llvm-project/pull/165119 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] 3526bb0 - [ADT] Deprecate StringSwitch Cases with 3+ args. NFC. (#165119)

2025-10-25 Thread via cfe-commits
Author: Jakub Kuderski Date: 2025-10-25T19:54:07-04:00 New Revision: 3526bb099e79b1217bb8afbf9403b11528c384a6 URL: https://github.com/llvm/llvm-project/commit/3526bb099e79b1217bb8afbf9403b11528c384a6 DIFF: https://github.com/llvm/llvm-project/commit/3526bb099e79b1217bb8afbf9403b11528c384a6.diff

[clang] [clang-tools-extra] [lld] [lldb] [llvm] [ADT] Deprecate StringSwitch Cases with 3+ args. NFC. (PR #165119)

2025-10-25 Thread Jakub Kuderski via cfe-commits
https://github.com/kuhar updated https://github.com/llvm/llvm-project/pull/165119 >From 6aa443a19746145a409ccac3c7af4b41d5d42186 Mon Sep 17 00:00:00 2001 From: Jakub Kuderski Date: Sat, 25 Oct 2025 17:45:04 -0400 Subject: [PATCH 1/3] [ADT] Deprecate StringSwitch Cases with 3+ args. NFC. Sugges

[clang] [clang-tools-extra] [lld] [lldb] [llvm] [ADT] Deprecate StringSwitch Cases with 3+ args. NFC. (PR #165119)

2025-10-25 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code linter clang-tidy found issues in your code. :warning: You can test this locally with the following command: ```bash git diff -U0 origin/main...HEAD -- clang-tools-extra/clang-tidy/bugprone/UnsafeFunctionsCheck.cpp | python3 clang-tools-ex

[clang] [clang-tools-extra] [lld] [lldb] [llvm] [ADT] Deprecate StringSwitch Cases with 3+ args. NFC. (PR #165119)

2025-10-25 Thread Jakub Kuderski via cfe-commits
https://github.com/kuhar auto_merge_disabled https://github.com/llvm/llvm-project/pull/165119 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [lld] [lldb] [llvm] [ADT] Deprecate StringSwitch Cases with 3+ args. NFC. (PR #165119)

2025-10-25 Thread Jakub Kuderski via cfe-commits
https://github.com/kuhar updated https://github.com/llvm/llvm-project/pull/165119 >From 6aa443a19746145a409ccac3c7af4b41d5d42186 Mon Sep 17 00:00:00 2001 From: Jakub Kuderski Date: Sat, 25 Oct 2025 17:45:04 -0400 Subject: [PATCH 1/2] [ADT] Deprecate StringSwitch Cases with 3+ args. NFC. Sugges

[libunwind] f03ccef - [compiler-rt][libunwind] Allow for CET on OpenBSD (#164341)

2025-10-25 Thread via cfe-commits
Author: Brad Smith Date: 2025-10-25T17:11:47-04:00 New Revision: f03ccef45f84b4e947ffc93dc5a6f87a827fddf3 URL: https://github.com/llvm/llvm-project/commit/f03ccef45f84b4e947ffc93dc5a6f87a827fddf3 DIFF: https://github.com/llvm/llvm-project/commit/f03ccef45f84b4e947ffc93dc5a6f87a827fddf3.diff LO

[compiler-rt] [libunwind] [compiler-rt][libunwind] Allow for CET on OpenBSD (PR #164341)

2025-10-25 Thread Brad Smith via cfe-commits
https://github.com/brad0 closed https://github.com/llvm/llvm-project/pull/164341 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] New option to remove arguments from the command line (PR #164344)

2025-10-25 Thread Félix-Antoine Constantin via cfe-commits
https://github.com/felix642 updated https://github.com/llvm/llvm-project/pull/164344 From 0e58783439b4121aa2829e1d5c5974a4eea92df1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix-Antoine=20Constantin?= Date: Mon, 7 Oct 2024 19:22:44 -0400 Subject: [PATCH 1/5] [clang-tidy] New option to rem

[clang] [llvm] [ADT] Prepare for deprecation of StringSwitch cases with 3+ args. NFC. (PR #165112)

2025-10-25 Thread Jakub Kuderski via cfe-commits
https://github.com/kuhar closed https://github.com/llvm/llvm-project/pull/165112 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 57828a6 - [ADT] Prepare for deprecation of StringSwitch cases with 3+ args. NFC. (#165112)

2025-10-25 Thread via cfe-commits
Author: Jakub Kuderski Date: 2025-10-25T15:11:18-04:00 New Revision: 57828a6d5de0be08b36382833aa2a6737f5d63a2 URL: https://github.com/llvm/llvm-project/commit/57828a6d5de0be08b36382833aa2a6737f5d63a2 DIFF: https://github.com/llvm/llvm-project/commit/57828a6d5de0be08b36382833aa2a6737f5d63a2.diff

[clang-tools-extra] [clang-tidy] Rename and move 'cert-oop58-cpp' to 'bugprone-mutating-copy' (PR #164566)

2025-10-25 Thread Dasha Buka via cfe-commits
https://github.com/dvbuka updated https://github.com/llvm/llvm-project/pull/164566 >From 4640cf73b874a90acd4799b6a710d6139fcd08cb Mon Sep 17 00:00:00 2001 From: Dasha Buka <[email protected]> Date: Wed, 22 Oct 2025 00:17:46 -0700 Subject: [PATCH 1/5] Move check cert-oop58

[clang-tools-extra] [clang-tidy] Rename and move 'cert-oop58-cpp' to 'bugprone-mutating-copy' (PR #164566)

2025-10-25 Thread Dasha Buka via cfe-commits
https://github.com/dvbuka updated https://github.com/llvm/llvm-project/pull/164566 >From 4640cf73b874a90acd4799b6a710d6139fcd08cb Mon Sep 17 00:00:00 2001 From: Dasha Buka <[email protected]> Date: Wed, 22 Oct 2025 00:17:46 -0700 Subject: [PATCH 1/4] Move check cert-oop58

[clang] [llvm] [ADT] Prepare for deprecation of StringSwitch cases with 3+ args. NFC. (PR #165112)

2025-10-25 Thread Jakub Kuderski via cfe-commits
@@ -3533,10 +3533,10 @@ bool X86AsmParser::parseInstruction(ParseInstructionInfo &Info, StringRef Name, while (isLockRepeatNtPrefix(Name.lower())) { unsigned Prefix = StringSwitch(Name) -.Cases("lock", "lock", X86::IP_HAS_LOCK) -.Cases("re

[clang] [llvm] [ADT] Prepare for deprecation of StringSwitch cases with 3+ args. NFC. (PR #165112)

2025-10-25 Thread Jakub Kuderski via cfe-commits
https://github.com/kuhar updated https://github.com/llvm/llvm-project/pull/165112 >From 8c8a906f70f22cd02cda0cb2ae03fa1f1ed79d52 Mon Sep 17 00:00:00 2001 From: Jakub Kuderski Date: Sat, 25 Oct 2025 14:03:20 -0400 Subject: [PATCH 1/2] [ADT] Prepare for deprecation of StringSwitch cases with 3+

[clang] [llvm] [ADT] Prepare for deprecation of StringSwitch cases with 3+ args. NFC. (PR #165112)

2025-10-25 Thread Kazu Hirata via cfe-commits
@@ -3533,10 +3533,10 @@ bool X86AsmParser::parseInstruction(ParseInstructionInfo &Info, StringRef Name, while (isLockRepeatNtPrefix(Name.lower())) { unsigned Prefix = StringSwitch(Name) -.Cases("lock", "lock", X86::IP_HAS_LOCK) -.Cases("re

[clang] [llvm] [ADT] Prepare for deprecation of StringSwitch cases with 3+ args. NFC. (PR #165112)

2025-10-25 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata edited https://github.com/llvm/llvm-project/pull/165112 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [ADT] Prepare for deprecation of StringSwitch cases with 3+ args. NFC. (PR #165112)

2025-10-25 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata approved this pull request. LGTM. Thanks! https://github.com/llvm/llvm-project/pull/165112 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [ADT] Prepare for deprecation of StringSwitch cases with 3+ args. NFC. (PR #165112)

2025-10-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-powerpc Author: Jakub Kuderski (kuhar) Changes Update `.Cases` and `.CasesLower` with 4+ args to use the `initializer_list` overload. The deprecation of these functions will come in a separate PR. For more context, see: https://github.com/llvm/

[clang] [llvm] [ADT] Prepare for deprecation of StringSwitch cases with 3+ args. NFC. (PR #165112)

2025-10-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-x86 @llvm/pr-subscribers-clang Author: Jakub Kuderski (kuhar) Changes Update `.Cases` and `.CasesLower` with 4+ args to use the `initializer_list` overload. The deprecation of these functions will come in a separate PR. For more context, see: h

[clang] [llvm] [ADT] Prepare for deprecation of StringSwitch cases with 3+ args. NFC. (PR #165112)

2025-10-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-mc Author: Jakub Kuderski (kuhar) Changes Update `.Cases` and `.CasesLower` with 4+ args to use the `initializer_list` overload. The deprecation of these functions will come in a separate PR. For more context, see: https://github.com/llvm/llvm-pro

[clang] [llvm] [ADT] Prepare for deprecation of StringSwitch cases with 3+ args. NFC. (PR #165112)

2025-10-25 Thread Jakub Kuderski via cfe-commits
https://github.com/kuhar created https://github.com/llvm/llvm-project/pull/165112 Update `.Cases` and `.CasesLower` with 4+ args to use the `initializer_list` overload. The deprecation of these functions will come in a separate PR. For more context, see: https://github.com/llvm/llvm-project/pu

[clang] [Clang][Solaris] Support --ld-path in Solaris driver (PR #163000)

2025-10-25 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay approved this pull request. LGTM, but should wait for @rorth https://github.com/llvm/llvm-project/pull/163000 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commit

[compiler-rt] [libunwind] [compiler-rt][libunwind] Allow for CET on OpenBSD (PR #164341)

2025-10-25 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay approved this pull request. https://github.com/llvm/llvm-project/pull/164341 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream the CatchParamOp (PR #165110)

2025-10-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangir Author: Amr Hesham (AmrDeveloper) Changes Upstream the CatchParamOp as a prerequisite for implementing exception handlers Issue https://github.com/llvm/llvm-project/issues/154992 --- Full diff: https://github.com/llvm/llvm-project/pull/165110.d

[clang] [CIR] Upstream the CatchParamOp (PR #165110)

2025-10-25 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper created https://github.com/llvm/llvm-project/pull/165110 Upstream the CatchParamOp as a prerequisite for implementing exception handlers Issue https://github.com/llvm/llvm-project/issues/154992 >From 533012edfaf7feaaa15f049a7e1e9d24b18eeab5 Mon Sep 17 00:00:00 2

[clang] [llvm] [HLSL][DXIL][SPRIV] Added WaveActiveProduct intrinsic #164385 (PR #165109)

2025-10-25 Thread Sietze Riemersma via cfe-commits
https://github.com/KungFuDonkey edited https://github.com/llvm/llvm-project/pull/165109 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [HLSL][DXIL][SPRIV] Added WaveActiveProduct intrinsic #164385 (PR #165109)

2025-10-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-hlsl @llvm/pr-subscribers-llvm-ir Author: Sietze Riemersma (KungFuDonkey) Changes >From issue #99165, adds the implementation of WaveActiveProduct - [x] Implement WaveActiveProduct clang builtin, - [x] Link WaveActiveProduct clang builtin with hlsl_intr

[clang] [llvm] [HLSL][DXIL][SPRIV] Added WaveActiveProduct intrinsic #164385 (PR #165109)

2025-10-25 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] [llvm] [HLSL][DXIL][SPRIV] Added WaveActiveProduct intrinsic #164385 (PR #165109)

2025-10-25 Thread Sietze Riemersma via cfe-commits
https://github.com/KungFuDonkey created https://github.com/llvm/llvm-project/pull/165109 >From issue #99165, adds the implementation of WaveActiveProduct - [x] Implement WaveActiveProduct clang builtin, - [x] Link WaveActiveProduct clang builtin with hlsl_intrinsics.h - [x] Add sema checks for

[clang] [clang] Proofread LanguageExtensions.rst (PR #165082)

2025-10-25 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/165082 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 5113ca0 - [clang] Proofread LanguageExtensions.rst (#165082)

2025-10-25 Thread via cfe-commits
Author: Kazu Hirata Date: 2025-10-25T10:04:38-07:00 New Revision: 5113ca0f43a5ce071b462e9f62ebedfa728525be URL: https://github.com/llvm/llvm-project/commit/5113ca0f43a5ce071b462e9f62ebedfa728525be DIFF: https://github.com/llvm/llvm-project/commit/5113ca0f43a5ce071b462e9f62ebedfa728525be.diff L

[clang] [llvm] [HLSL] Implement ddx/ddy_coarse intrinsics (PR #164831)

2025-10-25 Thread Alexander Johnston via cfe-commits
Alexander-Johnston wrote: @farzonl I've updated this and should have fixed the test failures. I'd place emphasis on the SPIRV instruction selection changes I've made. SPIRV only allows float as an input to the `OpDPd*` while HLSL takes half or float, so I've wrapped it in `OpFConvert` to switc

[clang] [llvm] [HLSL] Implement ddx/ddy_coarse intrinsics (PR #164831)

2025-10-25 Thread Alexander Johnston via cfe-commits
https://github.com/Alexander-Johnston updated https://github.com/llvm/llvm-project/pull/164831 >From 120e88999b8f11971fc7848121eebef1b3c15fee Mon Sep 17 00:00:00 2001 From: Alexander Johnston Date: Thu, 23 Oct 2025 15:12:23 +0100 Subject: [PATCH 1/6] [HLSL] Implement ddx/ddy_coarse intrinsics

[clang] [Clang] Fix a wrong diagnostic about a local variable inside a lambda in unevaluated context need capture (PR #165098)

2025-10-25 Thread Zhikai Zeng via cfe-commits
https://github.com/Backl1ght updated https://github.com/llvm/llvm-project/pull/165098 >From d0cd457bee7425b6bad862c3b41d3233049d172b Mon Sep 17 00:00:00 2001 From: Backl1ght Date: Sat, 25 Oct 2025 14:25:55 + Subject: [PATCH 1/3] fix --- clang/lib/Sema/SemaTemplateInstantiateDecl.cpp | 9 +

[clang] [Clang] Fix a wrong diagnostic about a local variable inside a lambda in unevaluated context need capture (PR #165098)

2025-10-25 Thread Zhikai Zeng via cfe-commits
https://github.com/Backl1ght edited https://github.com/llvm/llvm-project/pull/165098 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Fix a wrong diagnostic about a local variable inside a lambda in unevaluated contexts need capture (PR #165098)

2025-10-25 Thread Zhikai Zeng via cfe-commits
https://github.com/Backl1ght updated https://github.com/llvm/llvm-project/pull/165098 >From d0cd457bee7425b6bad862c3b41d3233049d172b Mon Sep 17 00:00:00 2001 From: Backl1ght Date: Sat, 25 Oct 2025 14:25:55 + Subject: [PATCH 1/3] fix --- clang/lib/Sema/SemaTemplateInstantiateDecl.cpp | 9 +

[clang] [Clang] Fix a wrong diagnostic about a local variable inside a lambda in unevaluated contexts need capture (PR #165098)

2025-10-25 Thread Zhikai Zeng via cfe-commits
https://github.com/Backl1ght updated https://github.com/llvm/llvm-project/pull/165098 >From d0cd457bee7425b6bad862c3b41d3233049d172b Mon Sep 17 00:00:00 2001 From: Backl1ght Date: Sat, 25 Oct 2025 14:25:55 + Subject: [PATCH 1/2] fix --- clang/lib/Sema/SemaTemplateInstantiateDecl.cpp | 9 +

[clang] [Clang] Fix a wrong diagnostic about a local variable inside a lambda in unevaluated contexts need capture (PR #165098)

2025-10-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Zhikai Zeng (Backl1ght) Changes Fixes https://github.com/llvm/llvm-project/issues/163837 We should return true here https://github.com/llvm/llvm-project/blob/035f8113f30aab67ee12ce09982cd03370cb/clang/lib/Sema/SemaExpr.cpp#L19398-L194

[clang] [Clang] Fix a wrong diagnostic about a local variable inside a lambda in unevaluated contexts need capture (PR #165098)

2025-10-25 Thread Zhikai Zeng via cfe-commits
https://github.com/Backl1ght ready_for_review https://github.com/llvm/llvm-project/pull/165098 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Fix a wrong diagnostic about a local variable inside a lambda in unevaluated contexts need capture (PR #165098)

2025-10-25 Thread Zhikai Zeng via cfe-commits
https://github.com/Backl1ght edited https://github.com/llvm/llvm-project/pull/165098 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Fix a wrong diagnostic about a local variable inside a lambda in unevaluated contexts need capture (PR #165098)

2025-10-25 Thread Zhikai Zeng via cfe-commits
https://github.com/Backl1ght edited https://github.com/llvm/llvm-project/pull/165098 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Fix a wrong diagnostic about a local variable inside a lambda in unevaluated contexts need capture (PR #165098)

2025-10-25 Thread Zhikai Zeng via cfe-commits
https://github.com/Backl1ght edited https://github.com/llvm/llvm-project/pull/165098 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Fix a wrong diagnostic about a local variable inside a lambda in unevaluated contexts need capture (PR #165098)

2025-10-25 Thread Zhikai Zeng via cfe-commits
https://github.com/Backl1ght edited https://github.com/llvm/llvm-project/pull/165098 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Fix a wrong diagnostic about a local variable inside a lambda in unevaluated contexts need capture (PR #165098)

2025-10-25 Thread Zhikai Zeng via cfe-commits
https://github.com/Backl1ght edited https://github.com/llvm/llvm-project/pull/165098 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Fix a wrong diagnostic about a local variable inside a lambda in unevaluated contexts need capture (PR #165098)

2025-10-25 Thread Zhikai Zeng via cfe-commits
https://github.com/Backl1ght edited https://github.com/llvm/llvm-project/pull/165098 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Fix a wrong diagnostic about a local variable inside a lambda in unevaluated contexts need capture (PR #165098)

2025-10-25 Thread Zhikai Zeng via cfe-commits
https://github.com/Backl1ght edited https://github.com/llvm/llvm-project/pull/165098 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [AMDGPU][Clang] Support for type inferring extended image builtins for AMDGPU (PR #164358)

2025-10-25 Thread Shilei Tian via cfe-commits
@@ -3,7 +3,7 @@ typedef int int4 __attribute__((ext_vector_type(4))); typedef float float4 __attribute__((ext_vector_type(4))); -typedef half half4 __attribute__((ext_vector_type(4))); +typedef _Float16 half4 __attribute__((ext_vector_type(4))); shiltian wrote

[clang] [clang] Fix a wrong diagnostic about a local variable inside a lambda in unevaluated contexts need capture (PR #165098)

2025-10-25 Thread Zhikai Zeng via cfe-commits
https://github.com/Backl1ght edited https://github.com/llvm/llvm-project/pull/165098 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [AMDGPU][Clang] Support for type inferring extended image builtins for AMDGPU (PR #164358)

2025-10-25 Thread Shilei Tian via cfe-commits
@@ -889,75 +889,116 @@ TARGET_BUILTIN(__builtin_amdgcn_cooperative_atomic_store_8x16B, "vV4i*V4iIicC*", // Image builtins //===--===// TARGET_BUILTIN(__builtin_amdgcn_image_load_1d_v4f32_i32, "V4fiiQtii", "nc

[clang] [WIP] fix gh163837 (PR #165098)

2025-10-25 Thread Zhikai Zeng via cfe-commits
https://github.com/Backl1ght updated https://github.com/llvm/llvm-project/pull/165098 >From b96843f6f6c532225cf29df4292bd6d460601c6d Mon Sep 17 00:00:00 2001 From: Backl1ght Date: Sat, 25 Oct 2025 14:25:55 + Subject: [PATCH 1/2] fix --- clang/lib/Sema/SemaTemplateInstantiateDecl.cpp | 9 +

[clang] [clang] Proofread LanguageExtensions.rst (PR #165082)

2025-10-25 Thread Shilei Tian via cfe-commits
https://github.com/shiltian approved this pull request. https://github.com/llvm/llvm-project/pull/165082 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [WIP] fix gh163837 (PR #165098)

2025-10-25 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 origin/main HEAD --extensions cpp -- clang/lib/Sema/SemaTemplateInstantiateDecl.cpp -

[clang] [WIP] fix gh163837 (PR #165098)

2025-10-25 Thread Zhikai Zeng via cfe-commits
https://github.com/Backl1ght created https://github.com/llvm/llvm-project/pull/165098 fix https://github.com/llvm/llvm-project/issues/163837 >From c55a21e42d56b35f343c728fc35fa5d089d50154 Mon Sep 17 00:00:00 2001 From: Backl1ght Date: Sat, 25 Oct 2025 14:25:55 + Subject: [PATCH] fix ---

[clang] [llvm] [Clang] Fix cleanup attribute by delaying type checks after the type is deduced (PR #164440)

2025-10-25 Thread Guillot Tony via cfe-commits
https://github.com/to268 updated https://github.com/llvm/llvm-project/pull/164440 >From ff6e7e7fa8617705d8e695c7901c65794e9a07a3 Mon Sep 17 00:00:00 2001 From: Guillot Tony Date: Tue, 21 Oct 2025 15:21:33 +0200 Subject: [PATCH 1/5] Fix for cleaup attribute and sets base for fixing other type d

[clang] [llvm] [GlobalOpt] Add TTI interface useFastCCForInternalCall for FASTCC (PR #164768)

2025-10-25 Thread Phoebe Wang via cfe-commits
phoebewang wrote: > I sort of understand the logic of "we need a calling convention, fastcc isn't > useful on x86-64, let's repurpose it". But there's a significant benefit to > giving a calling convention with unusual semantics (like, it only works on > targets that have APX enabled) its own

[clang-tools-extra] [clang-tidy][NFC] Clarify some options use regex to matching in doc (1/N) (PR #161142)

2025-10-25 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor approved this pull request. LGTM, sorry for missing this PR. https://github.com/llvm/llvm-project/pull/161142 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commit

[clang-tools-extra] [clang-tidy][readability-redundant-parentheses] add option to prevent widely used work around (PR #164827)

2025-10-25 Thread Baranov Victor via cfe-commits
@@ -47,6 +60,15 @@ void RedundantParenthesesCheck::registerMatchers(MatchFinder *Finder) { void RedundantParenthesesCheck::check(const MatchFinder::MatchResult &Result) { const auto *PE = Result.Nodes.getNodeAs("dup"); + if (auto *DRE = dyn_cast(PE->getSubExpr())) { +c

[clang] [llvm] [GlobalOpt] Add TTI interface useFastCCForInternalCall for FASTCC (PR #164768)

2025-10-25 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang updated https://github.com/llvm/llvm-project/pull/164768 >From 1c967de5abf29268c22e5239aab03196446310d0 Mon Sep 17 00:00:00 2001 From: Phoebe Wang Date: Thu, 23 Oct 2025 15:37:07 +0800 Subject: [PATCH 1/4] [GlobalOpt] Add TTI interface useFastCCForInternalCall for

[clang] [clang-tools-extra] [compiler-rt] [flang] [libcxx] [lldb] [llvm] [mlir] [openmp] Amd/dev/rlieberm/cleanp revert patch (PR #165095)

2025-10-25 Thread via cfe-commits
github-actions[bot] wrote: :warning: undef deprecator found issues in your code. :warning: You can test this locally with the following command: ``bash git diff -U0 --pickaxe-regex -S '([^a-zA-Z0-9#_-]undef([^a-zA-Z0-9_-]|$)|UndefValue::get)' 'HEAD~1' HEAD amd/comgr/src/comgr-ca

[clang-tools-extra] [clangd] Preserve Qualified Names in `Override pure virtual methods` tweak (PR #163726)

2025-10-25 Thread Marco Maia via cfe-commits
marcogmaia wrote: Ping. https://github.com/llvm/llvm-project/pull/163726 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-shlib] Fix linking libclang-cpp on Haiku (PR #156401)

2025-10-25 Thread Jérôme Duval via cfe-commits
korli wrote: > This is required because libclang includes some component that accesses the > network I assume. Like some part of clangd? See https://github.com/haikuports/haikuports/issues/11972#issuecomment-3398800409 for involved symbols. https://github.com/llvm/llvm-project/pull/156401 __

[clang] [CIR][NFC] Upstream EHPersonality for function (PR #164883)

2025-10-25 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper closed https://github.com/llvm/llvm-project/pull/164883 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] b0658b1 - [CIR][NFC] Upstream EHPersonality for function (#164883)

2025-10-25 Thread via cfe-commits
Author: Amr Hesham Date: 2025-10-25T13:40:47+02:00 New Revision: b0658b1151a7dce63e7bc29b69037462c07c355e URL: https://github.com/llvm/llvm-project/commit/b0658b1151a7dce63e7bc29b69037462c07c355e DIFF: https://github.com/llvm/llvm-project/commit/b0658b1151a7dce63e7bc29b69037462c07c355e.diff LO

[clang] [CIR] Upstream CallOp with ComplexType as return type (PR #164980)

2025-10-25 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper closed https://github.com/llvm/llvm-project/pull/164980 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 51fcb9d - [CIR] Upstream CallOp with ComplexType as return type (#164980)

2025-10-25 Thread via cfe-commits
Author: Amr Hesham Date: 2025-10-25T13:40:19+02:00 New Revision: 51fcb9d4daa73f7b62b065af4b4b23b6e8ceb090 URL: https://github.com/llvm/llvm-project/commit/51fcb9d4daa73f7b62b065af4b4b23b6e8ceb090 DIFF: https://github.com/llvm/llvm-project/commit/51fcb9d4daa73f7b62b065af4b4b23b6e8ceb090.diff LO

[clang] [llvm] Match bitsin(typeof(x)) - popcnt(x) to s_bcnt0_i32 on AMDGPU (PR #164847)

2025-10-25 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm requested changes to this pull request. This should not introduce a new intrinsic and only needs a tablegen pattern. The one benefit you get out doing this fold in the IR would be sinking a popcnt out of block, but you can do that just by handling this case in isProfi

[clang] [llvm] Match bitsin(typeof(x)) - popcnt(x) to s_bcnt0_i32 on AMDGPU (PR #164847)

2025-10-25 Thread Matt Arsenault via cfe-commits
@@ -2359,6 +2359,12 @@ def int_amdgcn_mbcnt_hi : DefaultAttrsIntrinsic<[llvm_i32_ty], [llvm_i32_ty, llvm_i32_ty], [IntrNoMem]>; +def int_amdgcn_bcnt32_lo : arsenm wrote: This does not need an intrinsic. This doesn't help match the pattern in any

[clang] [llvm] Match bitsin(typeof(x)) - popcnt(x) to s_bcnt0_i32 on AMDGPU (PR #164847)

2025-10-25 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm edited https://github.com/llvm/llvm-project/pull/164847 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Optimize SourceManager.getSpellingLocSlowCase and SourceManager.getFileLocSlowCase (PR #164269)

2025-10-25 Thread via cfe-commits
https://github.com/SergejSalnikov edited https://github.com/llvm/llvm-project/pull/164269 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Optimize SourceManager.getSpellingLocSlowCase and SourceManager.getFileLocSlowCase (PR #164269)

2025-10-25 Thread via cfe-commits
https://github.com/SergejSalnikov edited https://github.com/llvm/llvm-project/pull/164269 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Optimize SourceManager.getSpellingLocSlowCase and SourceManager.getFileLocSlowCase (PR #164269)

2025-10-25 Thread via cfe-commits
https://github.com/SergejSalnikov edited https://github.com/llvm/llvm-project/pull/164269 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Optimize SourceManager.getSpellingLocSlowCase and SourceManager.getFileLocSlowCase (PR #164269)

2025-10-25 Thread via cfe-commits
https://github.com/SergejSalnikov edited https://github.com/llvm/llvm-project/pull/164269 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Optimize SourceManager.getSpellingLocSlowCase and SourceManager.getFileLocSlowCase (PR #164269)

2025-10-25 Thread via cfe-commits
https://github.com/SergejSalnikov edited https://github.com/llvm/llvm-project/pull/164269 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Optimize SourceManager.getSpellingLocSlowCase and SourceManager.getFileLocSlowCase (PR #164269)

2025-10-25 Thread via cfe-commits
@@ -908,19 +908,23 @@ getExpansionLocSlowCase(SourceLocation Loc) const { SourceLocation SourceManager::getSpellingLocSlowCase(SourceLocation Loc) const { do { -FileIDAndOffset LocInfo = getDecomposedLoc(Loc); -Loc = getSLocEntry(LocInfo.first).getExpansion().getSpe

[clang] [clang-format] Allow line breaking with PointerAlignment configured (PR #164686)

2025-10-25 Thread via cfe-commits
@@ -8644,6 +8644,38 @@ TEST_F(FormatTest, BreaksFunctionDeclarations) { " a) {}", Style); + Style.ColumnLimit = 70; + verifyFormat( + "void foo( //\n" + "const MySuperSuperSu

[clang] [clang-format] Allow line breaking with PointerAlignment configured (PR #164686)

2025-10-25 Thread via cfe-commits
@@ -8644,6 +8644,38 @@ TEST_F(FormatTest, BreaksFunctionDeclarations) { " a) {}", Style); + Style.ColumnLimit = 70; + verifyFormat( + "void foo( //\n" + "const MySuperSuperSu

[clang] [clang-format] Align trailing comments for function parameters (PR #164458)

2025-10-25 Thread via cfe-commits
@@ -650,8 +650,16 @@ static unsigned AlignTokens(const FormatStyle &Style, F &&Matches, MatchedIndices.push_back(I); } + // Pass to the function entire lines, so it can update the state of all tokens owenca wrote: ```suggestion // Pass entire lines

[clang] [clang-format] Align trailing comments for function parameters (PR #164458)

2025-10-25 Thread via cfe-commits
@@ -650,8 +650,16 @@ static unsigned AlignTokens(const FormatStyle &Style, F &&Matches, MatchedIndices.push_back(I); } + // Pass to the function entire lines, so it can update the state of all tokens + // that move. EndOfSequence = I; + while (EndOfSequence < Cha

[clang] [clang-format] Add xxxMaxDigitsNoSeparator (PR #164286)

2025-10-25 Thread via cfe-commits
=?utf-8?q?Björn_Schäpers?= Message-ID: In-Reply-To: owenca wrote: > This basically adds a Leave option for a specific range of literals. Can you elaborate? If the max decimal digits value is set to 4, and everything else is left at the default, what will be `1234`, `1'234`, and `12'34` be r

[clang] [Clang] Add constexpr support for AVX512 permutex2 intrinsics (PR #165085)

2025-10-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: NagaChaitanya Vellanki (chaitanyav) Changes This patch enables compile-time evaluation of AVX512 permutex2var intrinsics in constexpr contexts. Extend shuffle generic to handle both integer immediate and vector mask operands. Resolves #

[clang] [Clang] Add constexpr support for AVX512 permutex2 intrinsics (PR #165085)

2025-10-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-x86 Author: NagaChaitanya Vellanki (chaitanyav) Changes This patch enables compile-time evaluation of AVX512 permutex2var intrinsics in constexpr contexts. Extend shuffle generic to handle both integer immediate and vector mask operands. Reso

[clang] [Clang] Add constexpr support for AVX512 permutex2 intrinsics (PR #165085)

2025-10-25 Thread NagaChaitanya Vellanki via cfe-commits
https://github.com/chaitanyav ready_for_review https://github.com/llvm/llvm-project/pull/165085 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format][NFC] Port FormatTestComments to verifyFormat (PR #164310)

2025-10-25 Thread via cfe-commits
=?utf-8?q?Björn_Schäpers?= , =?utf-8?q?Björn_Schäpers?= Message-ID: In-Reply-To: @@ -4218,485 +4217,277 @@ TEST_F(FormatTestComments, SpaceAtLineCommentBegin) { "void f() {//Hello World\n" "}"; - EXPECT_EQ("// Lorem ipsum dolor

[clang] [clang-format][NFC] Port FormatTestComments to verifyFormat (PR #164310)

2025-10-25 Thread via cfe-commits
=?utf-8?q?Björn_Schäpers?= , =?utf-8?q?Björn_Schäpers?= Message-ID: In-Reply-To: @@ -4218,485 +4217,277 @@ TEST_F(FormatTestComments, SpaceAtLineCommentBegin) { "void f() {//Hello World\n" "}"; - EXPECT_EQ("// Lorem ipsum dolor

[clang] [libclang/python] Add isFunctionInlined support (PR #162882)

2025-10-25 Thread Vlad Serebrennikov via cfe-commits
@@ -4308,6 +4315,7 @@ def set_property(self, property, value): ("clang_Cursor_isAnonymous", [Cursor], bool), ("clang_Cursor_isAnonymousRecordDecl", [Cursor], bool), ("clang_Cursor_isBitField", [Cursor], bool), +("clang_Cursor_isFunctionInlined", [Cursor], bool),

[clang] [clang-format][NFC] Port FormatTestComments to verifyFormat (PR #164310)

2025-10-25 Thread via cfe-commits
=?utf-8?q?Björn_Schäpers?= , =?utf-8?q?Björn_Schäpers?= Message-ID: In-Reply-To: @@ -4218,485 +4217,277 @@ TEST_F(FormatTestComments, SpaceAtLineCommentBegin) { "void f() {//Hello World\n" "}"; - EXPECT_EQ("// Lorem ipsum dolor

[clang] [clang-format][NFC] Port FormatTestComments to verifyFormat (PR #164310)

2025-10-25 Thread via cfe-commits
=?utf-8?q?Björn_Schäpers?= , =?utf-8?q?Björn_Schäpers?= Message-ID: In-Reply-To: @@ -2451,225 +2444,230 @@ TEST_F(FormatTestComments, BlockCommentsInControlLoops) { } TEST_F(FormatTestComments, BlockComments) { - EXPECT_EQ("/* */ /* */ /* */\n/* */ /* */ /* */", -

  1   2   >