[clang-tools-extra] [clang-tidy] Suggest `std::views::reverse` instead of `std::ranges::reverse_view` in `modernize-use-ranges` (PR #172199)

2025-12-13 Thread Yanzuo Liu via cfe-commits
zwuis wrote: Please update documentation of these checks. https://github.com/llvm/llvm-project/pull/172199 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Suggest `std::views::reverse` instead of `std::ranges::reverse_view` in `modernize-use-ranges` (PR #172199)

2025-12-13 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook edited https://github.com/llvm/llvm-project/pull/172199 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Suggest `std::views::reverse` instead of `std::ranges::reverse_view` in `modernize-use-ranges` (PR #172199)

2025-12-13 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook edited https://github.com/llvm/llvm-project/pull/172199 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Suggest `std::views::reverse` instead of `std::ranges::reverse_view` in `modernize-use-ranges` (PR #172199)

2025-12-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: Victor Chernyakin (localspook) Changes `std::views::FOO` should in almost all cases be preferred over `std::ranges::FOO_view`. For a very detailed explanation of why that is, see https://brevzin.github.io/c++/2023/03/14/prefer-views-

[clang-tools-extra] [clang-tidy] Suggest `std::views::reverse` instead of `std::ranges::reverse_view` in `modernize-use-ranges` (PR #172199)

2025-12-13 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook edited https://github.com/llvm/llvm-project/pull/172199 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Suggest `std::views::reverse` instead of `std::ranges::reverse_view` in `modernize-use-ranges` (PR #172199)

2025-12-13 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook created https://github.com/llvm/llvm-project/pull/172199 `std::views::FOO` should in almost all cases be preferred over `std::ranges::FOO_view`. For a very detailed explanation of why that is, see https://brevzin.github.io/c++/2023/03/14/prefer-views-meow/. The TL

[clang-tools-extra] [clang-tidy] Add a new check 'replace-with-string-view' (PR #172170)

2025-12-13 Thread Zinovy Nis via cfe-commits
https://github.com/irishrover updated https://github.com/llvm/llvm-project/pull/172170 >From 7f9424ab7955031ca3ee343dafa27b4186f5bd48 Mon Sep 17 00:00:00 2001 From: Zinovy Nis Date: Sat, 13 Dec 2025 13:47:01 +0300 Subject: [PATCH 1/4] [clang-tidy] Add a new check 'replace-with-string-view' Loo

[clang-tools-extra] [clang-tidy] Add a new check 'replace-with-string-view' (PR #172170)

2025-12-13 Thread Zinovy Nis via cfe-commits
https://github.com/irishrover updated https://github.com/llvm/llvm-project/pull/172170 >From 7f9424ab7955031ca3ee343dafa27b4186f5bd48 Mon Sep 17 00:00:00 2001 From: Zinovy Nis Date: Sat, 13 Dec 2025 13:47:01 +0300 Subject: [PATCH 1/3] [clang-tidy] Add a new check 'replace-with-string-view' Loo

[clang-tools-extra] [clang-tidy] Add a new check 'replace-with-string-view' (PR #172170)

2025-12-13 Thread Zinovy Nis via cfe-commits
https://github.com/irishrover updated https://github.com/llvm/llvm-project/pull/172170 >From 7f9424ab7955031ca3ee343dafa27b4186f5bd48 Mon Sep 17 00:00:00 2001 From: Zinovy Nis Date: Sat, 13 Dec 2025 13:47:01 +0300 Subject: [PATCH 1/2] [clang-tidy] Add a new check 'replace-with-string-view' Loo

[clang-tools-extra] [clang-tidy] Add a new check 'replace-with-string-view' (PR #172170)

2025-12-13 Thread Zinovy Nis via cfe-commits
https://github.com/irishrover edited https://github.com/llvm/llvm-project/pull/172170 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Add a new check 'replace-with-string-view' (PR #172170)

2025-12-13 Thread Zinovy Nis via cfe-commits
https://github.com/irishrover edited https://github.com/llvm/llvm-project/pull/172170 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [llvm] [Github][CI] Introduce `doc8` to `code-lint-helper.py` (PR #172123)

2025-12-13 Thread via cfe-commits
zeyi2 wrote: I've finished testing the script modifications and I think it is working as expected. The full log: https://github.com/llvm/llvm-project/pull/172123#issuecomment-3648850648 https://github.com/llvm/llvm-project/pull/172123 ___ cfe-commit

[clang-tools-extra] [llvm] [Github][CI] Introduce `doc8` to `code-lint-helper.py` (PR #172123)

2025-12-13 Thread via cfe-commits
https://github.com/zeyi2 updated https://github.com/llvm/llvm-project/pull/172123 >From 4b0b1ee150ea820f00564667e734ddd225665d53 Mon Sep 17 00:00:00 2001 From: mtx Date: Fri, 12 Dec 2025 22:39:40 +0800 Subject: [PATCH 01/19] [Github][CI] Introduce `doc8` to `code-lint-helper.py` --- .../githu

[clang-tools-extra] [clang-tidy][NFC] Fix formatting issue in `clang-tidy` documentations (PR #168722)

2025-12-13 Thread via cfe-commits
https://github.com/zeyi2 updated https://github.com/llvm/llvm-project/pull/168722 >From 4908ebaa5652957761db6116a3e4c823877fd9e3 Mon Sep 17 00:00:00 2001 From: mtx Date: Wed, 19 Nov 2025 23:19:32 +0800 Subject: [PATCH] [clang-tidy][NFC] Fix formatting issue in `unsafe-functions.rst` --- .../

[clang-tools-extra] [clang-tidy][NFC] Fix formatting issue in `clang-tidy` documentations (PR #168722)

2025-12-13 Thread via cfe-commits
https://github.com/zeyi2 edited https://github.com/llvm/llvm-project/pull/168722 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy][NFC] Fix formatting issue in `clang-tidy` documentations (PR #168722)

2025-12-13 Thread via cfe-commits
https://github.com/zeyi2 ready_for_review https://github.com/llvm/llvm-project/pull/168722 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [llvm] [Github][CI] Introduce `doc8` to `code-lint-helper.py` (PR #172123)

2025-12-13 Thread via cfe-commits
https://github.com/zeyi2 updated https://github.com/llvm/llvm-project/pull/172123 >From 4b0b1ee150ea820f00564667e734ddd225665d53 Mon Sep 17 00:00:00 2001 From: mtx Date: Fri, 12 Dec 2025 22:39:40 +0800 Subject: [PATCH 01/18] [Github][CI] Introduce `doc8` to `code-lint-helper.py` --- .../githu

[clang-tools-extra] [clang-tidy] Fix misplaced fix-its in `modernize-use-override` (PR #172196)

2025-12-13 Thread Yanzuo Liu via cfe-commits
https://github.com/zwuis approved this pull request. https://github.com/llvm/llvm-project/pull/172196 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [llvm] [Github][CI] Introduce `doc8` to `code-lint-helper.py` (PR #172123)

2025-12-13 Thread via cfe-commits
https://github.com/zeyi2 updated https://github.com/llvm/llvm-project/pull/172123 >From 4b0b1ee150ea820f00564667e734ddd225665d53 Mon Sep 17 00:00:00 2001 From: mtx Date: Fri, 12 Dec 2025 22:39:40 +0800 Subject: [PATCH 01/16] [Github][CI] Introduce `doc8` to `code-lint-helper.py` --- .../githu

[clang-tools-extra] [llvm] [Github][CI] Introduce `doc8` to `code-lint-helper.py` (PR #172123)

2025-12-13 Thread via cfe-commits
https://github.com/zeyi2 updated https://github.com/llvm/llvm-project/pull/172123 >From 4b0b1ee150ea820f00564667e734ddd225665d53 Mon Sep 17 00:00:00 2001 From: mtx Date: Fri, 12 Dec 2025 22:39:40 +0800 Subject: [PATCH 01/14] [Github][CI] Introduce `doc8` to `code-lint-helper.py` --- .../githu

[clang-tools-extra] [llvm] [Github][CI] Introduce `doc8` to `code-lint-helper.py` (PR #172123)

2025-12-13 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/objc/SuperSelfCheck.cpp | python3 clang-tools-extra/clang

[clang-tools-extra] [llvm] [Github][CI] Introduce `doc8` to `code-lint-helper.py` (PR #172123)

2025-12-13 Thread via cfe-commits
https://github.com/zeyi2 updated https://github.com/llvm/llvm-project/pull/172123 >From 4b0b1ee150ea820f00564667e734ddd225665d53 Mon Sep 17 00:00:00 2001 From: mtx Date: Fri, 12 Dec 2025 22:39:40 +0800 Subject: [PATCH 01/13] [Github][CI] Introduce `doc8` to `code-lint-helper.py` --- .../githu

[clang-tools-extra] [llvm] [Github][CI] Introduce `doc8` to `code-lint-helper.py` (PR #172123)

2025-12-13 Thread via cfe-commits
https://github.com/zeyi2 updated https://github.com/llvm/llvm-project/pull/172123 >From 4b0b1ee150ea820f00564667e734ddd225665d53 Mon Sep 17 00:00:00 2001 From: mtx Date: Fri, 12 Dec 2025 22:39:40 +0800 Subject: [PATCH 01/12] [Github][CI] Introduce `doc8` to `code-lint-helper.py` --- .../githu

[clang] [Clang] feat: Allow AVX/AVX2 permute operations in constexpr (PR #172149)

2025-12-13 Thread Timm Baeder via cfe-commits
@@ -5101,6 +5101,29 @@ bool InterpretBuiltin(InterpState &S, CodePtr OpPC, const CallExpr *Call, unsigned SrcIdx = (ShuffleMask >> 6) & 0x1; return std::pair{SrcIdx, Offset}; }); + case X86::BI__builtin_ia32_vperm2f128_pd256: + case X86::BI__built

[clang] [clang][PAC] Support trivially_relocating polymorphic objects (PR #144420)

2025-12-13 Thread Oliver Hunt via cfe-commits
https://github.com/ojhunt closed https://github.com/llvm/llvm-project/pull/144420 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][PAC] Support trivially_relocating polymorphic objects (PR #144420)

2025-12-13 Thread Oliver Hunt via cfe-commits
ojhunt wrote: closing as TR was killed https://github.com/llvm/llvm-project/pull/144420 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [llvm] [Github][CI] Introduce `doc8` to `code-lint-helper.py` (PR #172123)

2025-12-13 Thread via cfe-commits
https://github.com/zeyi2 updated https://github.com/llvm/llvm-project/pull/172123 >From 4b0b1ee150ea820f00564667e734ddd225665d53 Mon Sep 17 00:00:00 2001 From: mtx Date: Fri, 12 Dec 2025 22:39:40 +0800 Subject: [PATCH 01/11] [Github][CI] Introduce `doc8` to `code-lint-helper.py` --- .../githu

[clang-tools-extra] [llvm] [Github][CI] Introduce `doc8` to `code-lint-helper.py` (PR #172123)

2025-12-13 Thread via cfe-commits
@@ -289,8 +291,65 @@ def _clean_clang_tidy_output(self, output: str) -> str: return "" +class Doc8LintHelper(LintHelper): +name: Final = "doc8" +friendly_name: Final = "RST documentation linter" -ALL_LINTERS = (ClangTidyLintHelper(),) +def instructions(s

[clang-tools-extra] [llvm] [Github][CI] Introduce `doc8` to `code-lint-helper.py` (PR #172123)

2025-12-13 Thread via cfe-commits
https://github.com/zeyi2 updated https://github.com/llvm/llvm-project/pull/172123 >From 4b0b1ee150ea820f00564667e734ddd225665d53 Mon Sep 17 00:00:00 2001 From: mtx Date: Fri, 12 Dec 2025 22:39:40 +0800 Subject: [PATCH 01/10] [Github][CI] Introduce `doc8` to `code-lint-helper.py` --- .../githu

[clang-tools-extra] [llvm] [Github][CI] Introduce `doc8` to `code-lint-helper.py` (PR #172123)

2025-12-13 Thread via cfe-commits
https://github.com/zeyi2 updated https://github.com/llvm/llvm-project/pull/172123 >From 4b0b1ee150ea820f00564667e734ddd225665d53 Mon Sep 17 00:00:00 2001 From: mtx Date: Fri, 12 Dec 2025 22:39:40 +0800 Subject: [PATCH 1/9] [Github][CI] Introduce `doc8` to `code-lint-helper.py` --- .../github-

[clang-tools-extra] [llvm] [Github][CI] Introduce `doc8` to `code-lint-helper.py` (PR #172123)

2025-12-13 Thread via cfe-commits
https://github.com/EugeneZelenko edited https://github.com/llvm/llvm-project/pull/172123 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Fix misplaced fix-its in `modernize-use-override` (PR #172196)

2025-12-13 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook updated https://github.com/llvm/llvm-project/pull/172196 >From b284d180abdb752bd1a4fc2a1160ee1e9a73ea5c Mon Sep 17 00:00:00 2001 From: Victor Chernyakin Date: Sat, 13 Dec 2025 21:46:57 -0800 Subject: [PATCH] [clang-tidy] Fix misplaced fix-its in `modernize-use-ove

[clang-tools-extra] [llvm] [Github][CI] Introduce `doc8` to `code-lint-helper.py` (PR #172123)

2025-12-13 Thread via cfe-commits
https://github.com/zeyi2 updated https://github.com/llvm/llvm-project/pull/172123 >From 4b0b1ee150ea820f00564667e734ddd225665d53 Mon Sep 17 00:00:00 2001 From: mtx Date: Fri, 12 Dec 2025 22:39:40 +0800 Subject: [PATCH 1/8] [Github][CI] Introduce `doc8` to `code-lint-helper.py` --- .../github-

[clang-tools-extra] [llvm] [Github][CI] Introduce `doc8` to `code-lint-helper.py` (PR #172123)

2025-12-13 Thread via cfe-commits
@@ -289,8 +291,65 @@ def _clean_clang_tidy_output(self, output: str) -> str: return "" +class Doc8LintHelper(LintHelper): +name: Final = "doc8" +friendly_name: Final = "RST documentation linter" -ALL_LINTERS = (ClangTidyLintHelper(),) +def instructions(s

[clang-tools-extra] [llvm] [Github][CI] Introduce `doc8` to `code-lint-helper.py` (PR #172123)

2025-12-13 Thread via cfe-commits
@@ -289,8 +291,65 @@ def _clean_clang_tidy_output(self, output: str) -> str: return "" +class Doc8LintHelper(LintHelper): +name: Final = "doc8" +friendly_name: Final = "RST documentation linter" -ALL_LINTERS = (ClangTidyLintHelper(),) +def instructions(s

[clang-tools-extra] [llvm] [Github][CI] Introduce `doc8` to `code-lint-helper.py` (PR #172123)

2025-12-13 Thread via cfe-commits
@@ -289,8 +291,65 @@ def _clean_clang_tidy_output(self, output: str) -> str: return "" +class Doc8LintHelper(LintHelper): +name: Final = "doc8" +friendly_name: Final = "RST documentation linter" -ALL_LINTERS = (ClangTidyLintHelper(),) +def instructions(s

[clang-tools-extra] [llvm] [Github][CI] Introduce `doc8` to `code-lint-helper.py` (PR #172123)

2025-12-13 Thread via cfe-commits
@@ -289,8 +291,65 @@ def _clean_clang_tidy_output(self, output: str) -> str: return "" +class Doc8LintHelper(LintHelper): +name: Final = "doc8" +friendly_name: Final = "RST documentation linter" -ALL_LINTERS = (ClangTidyLintHelper(),) +def instructions(s

[clang-tools-extra] [clang-tidy] Fix misplaced fix-its in `modernize-use-override` (PR #172196)

2025-12-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy @llvm/pr-subscribers-clang-tools-extra Author: Victor Chernyakin (localspook) Changes This removes some of the incredibly painful manual lexing in this check, yay! Fixes #138486. Also fixes the following case with `= delete("...")` in C++26:

[clang-tools-extra] [clang-tidy] Fix misplaced fix-its in `modernize-use-override` (PR #172196)

2025-12-13 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook edited https://github.com/llvm/llvm-project/pull/172196 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Fix misplaced fix-its in `modernize-use-override` (PR #172196)

2025-12-13 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook created https://github.com/llvm/llvm-project/pull/172196 This removes some of the incredibly painful manual lexing in this check. Fixes #138486. Also fixes the following case with `= delete("...")` in C++26: https://godbolt.org/z/dddfY15Wq. >From 60c48737b7b53a8b

[clang-tools-extra] [llvm] [Github][CI] Introduce `doc8` to `code-lint-helper.py` (PR #172123)

2025-12-13 Thread via cfe-commits
github-actions[bot] wrote: :warning: RST documentation linter, doc8 found issues in your code. :warning: You can test this locally with the following command: ```bash doc8 -q clang-tools-extra/docs/clang-tidy/checks/bugprone/unsafe-functions.rst ``` View the output from doc8 here.

[clang-tools-extra] [llvm] [Github][CI] Introduce `doc8` to `code-lint-helper.py` (PR #172123)

2025-12-13 Thread via cfe-commits
https://github.com/zeyi2 updated https://github.com/llvm/llvm-project/pull/172123 >From 4b0b1ee150ea820f00564667e734ddd225665d53 Mon Sep 17 00:00:00 2001 From: mtx Date: Fri, 12 Dec 2025 22:39:40 +0800 Subject: [PATCH 1/7] [Github][CI] Introduce `doc8` to `code-lint-helper.py` --- .../github-

[clang-tools-extra] [clang-tidy] Add `IgnoreMacro` option to `bugprone-chained-comparison` (PR #171975)

2025-12-13 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `sanitizer-aarch64-linux-bootstrap-asan` running on `sanitizer-buildbot8` while building `clang-tools-extra` at step 2 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/24/builds/15643 Here

[clang] [CIR][X86] Implement convert_half builtins (PR #171615)

2025-12-13 Thread Priyanshu Kumar via cfe-commits
Priyanshu3820 wrote: > Most people just drop their PR and reopen a new one, which doesn't spam a lot > of people. ;) I got auto subscribed because of the clang-format label. Will surely keep that in mind for future PRs. Apologies for the inconvenience caused. https://github.com/llvm/llvm-proj

[clang-tools-extra] [clang-tidy] Add `IgnoreMacro` option to `bugprone-chained-comparison` (PR #171975)

2025-12-13 Thread via cfe-commits
https://github.com/zeyi2 closed https://github.com/llvm/llvm-project/pull/171975 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] 72574b8 - [clang-tidy] Add `IgnoreMacro` option to `bugprone-chained-comparison` (#171975)

2025-12-13 Thread via cfe-commits
Author: mitchell Date: 2025-12-14T12:31:25+08:00 New Revision: 72574b81956ad8bab51deaae0adab5ff6be40a30 URL: https://github.com/llvm/llvm-project/commit/72574b81956ad8bab51deaae0adab5ff6be40a30 DIFF: https://github.com/llvm/llvm-project/commit/72574b81956ad8bab51deaae0adab5ff6be40a30.diff LOG:

[clang] [C++20][Modules] Implement P1857R3 Modules Dependency Discovery (PR #107168)

2025-12-13 Thread via cfe-commits
h-vetinari wrote: Usually, even versions branch off in early January. It'd be a pity if this missed clang 22 (it's already a big improvement over the status quo, though of course that doesn't meant that further refinement couldn't come later, even during the rc phase) https://github.com/llvm/

[clang] [llvm] [IR] Optimize PHINode::removeIncomingValue() by swapping removed incoming value with the last incoming value. (PR #171963)

2025-12-13 Thread Mingjie Xu via cfe-commits
https://github.com/Enna1 edited https://github.com/llvm/llvm-project/pull/171963 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [IR] Optimize PHINode::removeIncomingValue() by swapping removed incoming value with the last incoming value. (PR #171963)

2025-12-13 Thread Mingjie Xu via cfe-commits
https://github.com/Enna1 edited https://github.com/llvm/llvm-project/pull/171963 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [C++20][Modules] Implement P1857R3 Modules Dependency Discovery (PR #107168)

2025-12-13 Thread via cfe-commits
yronglin wrote: > > friendly ping~ > > Unfortunately, I was not able to get to this before starting end-of-year > holidays. I'm not entirely sure that I'll be able to get back to this before > January. Thanks! Got it. https://github.com/llvm/llvm-project/pull/107168 _

[clang] [llvm] [mlir] [AMDGPU] add clamp immediate operand to WMMA iu8 intrinsic (PR #171069)

2025-12-13 Thread Muhammad Abdul via cfe-commits
https://github.com/0xzre updated https://github.com/llvm/llvm-project/pull/171069 >From df40111bf084022085b4facd555c03fd42c2827d Mon Sep 17 00:00:00 2001 From: 0xzre Date: Mon, 8 Dec 2025 07:32:45 +0700 Subject: [PATCH 1/7] [AMDGPU] add clamp immediate operand to WMMA iu8 intrinsic --- clang

[clang] [llvm] [mlir] [AMDGPU] add clamp immediate operand to WMMA iu8 intrinsic (PR #171069)

2025-12-13 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,cl -- clang/lib/CodeGen/TargetBuiltins/AMDGPU.cpp c

[clang] [llvm] [mlir] [AMDGPU] add clamp immediate operand to WMMA iu8 intrinsic (PR #171069)

2025-12-13 Thread Muhammad Abdul via cfe-commits
https://github.com/0xzre updated https://github.com/llvm/llvm-project/pull/171069 >From df40111bf084022085b4facd555c03fd42c2827d Mon Sep 17 00:00:00 2001 From: 0xzre Date: Mon, 8 Dec 2025 07:32:45 +0700 Subject: [PATCH 1/6] [AMDGPU] add clamp immediate operand to WMMA iu8 intrinsic --- clang

[clang-tools-extra] [clang-tidy] Add a new check 'replace-with-string-view' (PR #172170)

2025-12-13 Thread via cfe-commits
@@ -244,6 +244,12 @@ New checks Finds virtual function overrides with different visibility than the function in the base class. +- New :doc:`performance-replace-with-string-view + ` check. + + Detects functions returning std::[w|u8|u16|u32]string where + return type can

[clang-tools-extra] [clang-tidy] Add a new check 'replace-with-string-view' (PR #172170)

2025-12-13 Thread via cfe-commits
@@ -0,0 +1,142 @@ +// RUN: %check_clang_tidy -std=c++17-or-later %s performance-replace-with-string-view %t -- -- -I %S/Inputs + +namespace std { + template + class basic_string_view { + public: +basic_string_view(const CharT *); +basic_string_view(); + }; + using s

[clang-tools-extra] [clang-tidy] Add a new check 'replace-with-string-view' (PR #172170)

2025-12-13 Thread via cfe-commits
@@ -0,0 +1,60 @@ +.. title:: clang-tidy - performance-replace-with-string-view + +performance-replace-with-string-view + + +Looks for functions returning `std::[w|u8|u16|u32]string` and suggests to +change it to `std::[...]string_view` for perfo

[clang-tools-extra] [clang-tidy] Add a new check 'replace-with-string-view' (PR #172170)

2025-12-13 Thread via cfe-commits
@@ -0,0 +1,60 @@ +.. title:: clang-tidy - performance-replace-with-string-view + +performance-replace-with-string-view + + +Looks for functions returning `std::[w|u8|u16|u32]string` and suggests to +change it to `std::[...]string_view` for perfo

[clang-tools-extra] [clang-tidy] Add a new check 'replace-with-string-view' (PR #172170)

2025-12-13 Thread via cfe-commits
https://github.com/EugeneZelenko edited https://github.com/llvm/llvm-project/pull/172170 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Add a new check 'replace-with-string-view' (PR #172170)

2025-12-13 Thread via cfe-commits
https://github.com/EugeneZelenko commented: How about custom classes like `StringRef` in LLVM? https://github.com/llvm/llvm-project/pull/172170 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-

[clang-tools-extra] [clang-tidy] Add a new check 'replace-with-string-view' (PR #172170)

2025-12-13 Thread via cfe-commits
@@ -0,0 +1,60 @@ +.. title:: clang-tidy - performance-replace-with-string-view + +performance-replace-with-string-view + + +Looks for functions returning `std::[w|u8|u16|u32]string` and suggests to +change it to `std::[...]string_view` for perfo

[clang] [C++20][Modules] Implement P1857R3 Modules Dependency Discovery (PR #107168)

2025-12-13 Thread Hubert Tong via cfe-commits
hubert-reinterpretcast wrote: > friendly ping~ Unfortunately, I was not able to get to this before starting end-of-year holidays. I'm not entirely sure that I'll be able to get back to this before January. https://github.com/llvm/llvm-project/pull/107168 __

[clang-tools-extra] [clang-tidy][NFC] Remove obsolete FIXME comment (PR #172120)

2025-12-13 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `sanitizer-x86_64-linux-bootstrap-asan` running on `sanitizer-buildbot2` while building `clang-tools-extra` at step 2 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/52/builds/13564 Here i

[clang] [llvm] [IR] Optimzie PHINode::removeIncomingValue() by swapping with the last of incoming value. (PR #171963)

2025-12-13 Thread Mingjie Xu via cfe-commits
https://github.com/Enna1 edited https://github.com/llvm/llvm-project/pull/171963 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][PAC] add support for options parameter to __ptrauth (PR #136828)

2025-12-13 Thread via cfe-commits
github-actions[bot] wrote: # :penguin: Linux x64 Test Results * 85105 tests passed * 1175 tests skipped * 1 test failed ## Failed Tests (click on a test name to see its output) ### Clang Clang.Sema/ptrauth-qualifier-options.c ``` Exit Code: 1 Command Output (stdout): -- # RUN: at line 1 /h

[clang] [clang][PAC] add support for options parameter to __ptrauth (PR #136828)

2025-12-13 Thread via cfe-commits
github-actions[bot] wrote: # :window: Windows x64 Test Results * 51523 tests passed * 872 tests skipped * 1 test failed ## Failed Tests (click on a test name to see its output) ### Clang Clang.Sema/ptrauth-qualifier-options.c ``` Exit Code: 1 Command Output (stdout): -- # RUN: at line 1 c:

[clang-tools-extra] [clang-tidy][NFC] Remove obsolete FIXME comment (PR #172120)

2025-12-13 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook closed https://github.com/llvm/llvm-project/pull/172120 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] 49ad1e9 - [clang-tidy][NFC] Remove obsolete FIXME comment (#172120)

2025-12-13 Thread via cfe-commits
Author: Victor Chernyakin Date: 2025-12-13T16:28:09-08:00 New Revision: 49ad1e9ea25b8524b0ab1d61ca5fa16103434357 URL: https://github.com/llvm/llvm-project/commit/49ad1e9ea25b8524b0ab1d61ca5fa16103434357 DIFF: https://github.com/llvm/llvm-project/commit/49ad1e9ea25b8524b0ab1d61ca5fa16103434357.d

[clang] [clang][PAC] add support for options parameter to __ptrauth (PR #136828)

2025-12-13 Thread Oliver Hunt via cfe-commits
@@ -65,6 +65,17 @@ enum class PointerAuthenticationMode : unsigned { SignAndAuth }; +static constexpr llvm::StringLiteral PointerAuthenticationOptionStrip = "strip"; ojhunt wrote: Oh yay, we've got a pointer auth header now \o/ Moving these things out of

[clang] [clang][PAC] add support for options parameter to __ptrauth (PR #136828)

2025-12-13 Thread Oliver Hunt via cfe-commits
https://github.com/ojhunt updated https://github.com/llvm/llvm-project/pull/136828 >From 927380bdf377581e6e40507a12c374023352c613 Mon Sep 17 00:00:00 2001 From: Oliver Hunt Date: Wed, 30 Apr 2025 22:26:59 -0700 Subject: [PATCH 1/7] [clang][PAC] add support for options parameter to __ptrauth T

[clang] [clang][PAC] add support for options parameter to __ptrauth (PR #136828)

2025-12-13 Thread Oliver Hunt via cfe-commits
https://github.com/ojhunt updated https://github.com/llvm/llvm-project/pull/136828 >From 927380bdf377581e6e40507a12c374023352c613 Mon Sep 17 00:00:00 2001 From: Oliver Hunt Date: Wed, 30 Apr 2025 22:26:59 -0700 Subject: [PATCH 1/6] [clang][PAC] add support for options parameter to __ptrauth T

[clang] [clang][PAC] add support for options parameter to __ptrauth (PR #172187)

2025-12-13 Thread Oliver Hunt via cfe-commits
ojhunt wrote: (messed up updating the existing PR) https://github.com/llvm/llvm-project/pull/172187 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][PAC] add support for options parameter to __ptrauth (PR #172187)

2025-12-13 Thread Oliver Hunt via cfe-commits
https://github.com/ojhunt closed https://github.com/llvm/llvm-project/pull/172187 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][PAC] add support for options parameter to __ptrauth (PR #172187)

2025-12-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Oliver Hunt (ojhunt) Changes This PR adds support for an 'options' parameter for the __ptrauth qualifier. The initial version only exposes the authehntication modes: * "strip" * "sign-and-strip" * "sign-and-auth" We also support parsing

[clang] [clang][PAC] add support for options parameter to __ptrauth (PR #172187)

2025-12-13 Thread Oliver Hunt via cfe-commits
https://github.com/ojhunt created https://github.com/llvm/llvm-project/pull/172187 This PR adds support for an 'options' parameter for the __ptrauth qualifier. The initial version only exposes the authehntication modes: * "strip" * "sign-and-strip" * "sign-and-auth" We also support parsing t

[clang] WIP warning (PR #172186)

2025-12-13 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,h -- clang/include/clang/AST/ASTContext.h clang/lib

[clang] WIP warning (PR #172186)

2025-12-13 Thread Oliver Hunt via cfe-commits
https://github.com/ojhunt created https://github.com/llvm/llvm-project/pull/172186 None >From 7c547005228cdb185fc0f5458c62d0c24e2df9b6 Mon Sep 17 00:00:00 2001 From: Oliver Hunt Date: Sat, 13 Dec 2025 00:39:04 -0800 Subject: [PATCH 1/2] start refactoring the ptrauth thingy --- clang/include/

[clang-tools-extra] [clang-tidy] Add AnalyzeParameters option to misc-const-correctness (PR #171215)

2025-12-13 Thread Victor Chernyakin via cfe-commits
@@ -0,0 +1,27 @@ +// RUN: rm -rf %t +// RUN: mkdir %t +// RUN: cp %S/Inputs/const-correctness/correctness.h %t/correctness.h +// RUN: %check_clang_tidy %s misc-const-correctness %t/temp -- \ +// RUN: -- -I%t -fno-delayed-template-parsing +// RUN: diff %t/correctness.h %S/Inputs/

[clang] [Clang] feat: Allow AVX/AVX2 permute operations in constexpr (PR #172149)

2025-12-13 Thread via cfe-commits
@@ -5101,6 +5101,36 @@ bool InterpretBuiltin(InterpState &S, CodePtr OpPC, const CallExpr *Call, unsigned SrcIdx = (ShuffleMask >> 6) & 0x1; return std::pair{SrcIdx, Offset}; }); + case X86::BI__builtin_ia32_vperm2f128_pd256: +return interp__bu

[clang-tools-extra] [clang-tidy] Add AnalyzeParameters option to misc-const-correctness (PR #171215)

2025-12-13 Thread Victor Chernyakin via cfe-commits
@@ -112,43 +122,91 @@ void ConstCorrectnessCheck::registerMatchers(MatchFinder *Finder) { const auto FunctionPointerRef = hasType(hasCanonicalType(referenceType(pointee(functionType(); + const auto CommonExcludeTypes = + anyOf(ConstType, ConstReference, RVal

[clang-tools-extra] [clang-tidy] Add AnalyzeParameters option to misc-const-correctness (PR #171215)

2025-12-13 Thread Victor Chernyakin via cfe-commits
@@ -112,43 +122,91 @@ void ConstCorrectnessCheck::registerMatchers(MatchFinder *Finder) { const auto FunctionPointerRef = hasType(hasCanonicalType(referenceType(pointee(functionType(); + const auto CommonExcludeTypes = + anyOf(ConstType, ConstReference, RVal

[clang-tools-extra] [clang-tidy] Add AnalyzeParameters option to misc-const-correctness (PR #171215)

2025-12-13 Thread Victor Chernyakin via cfe-commits
@@ -104,6 +104,20 @@ Options :option:`WarnPointersAsValues` and :option:`WarnPointersAsPointers`. Default is `true`. +.. option:: AnalyzeParameters + + Enable or disable the analysis of function parameters, like + ``void foo(int* ptr)``. Only reference and pointer parame

[clang] [Clang] feat: Allow AVX/AVX2 permute operations in constexpr (PR #172149)

2025-12-13 Thread via cfe-commits
https://github.com/AhmedYasser5 updated https://github.com/llvm/llvm-project/pull/172149 >From fb4849930a1dd02e667d49d0e13e6b6e1f3e9d3c Mon Sep 17 00:00:00 2001 From: Ahmed Yaser Date: Sat, 13 Dec 2025 20:05:00 +0800 Subject: [PATCH] [Clang] feat: Allow AVX/AVX2 permute operations in constexpr

[clang] [clang][modules] Track Included Files Per Submodule (PR #170215)

2025-12-13 Thread Qiongsi Wu via cfe-commits
https://github.com/qiongsiwu updated https://github.com/llvm/llvm-project/pull/170215 >From 9cc149df92f035e025fd237662815a2ca28cc2f9 Mon Sep 17 00:00:00 2001 From: Jan Svoboda Date: Thu, 2 Nov 2023 14:35:30 -0700 Subject: [PATCH 1/3] [clang][modules] Track included files per submodule (cherry

[clang] [Clang] feat: Allow AVX/AVX2 permute operations in constexpr (PR #172149)

2025-12-13 Thread via cfe-commits
https://github.com/AhmedYasser5 edited https://github.com/llvm/llvm-project/pull/172149 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] feat: Allow AVX/AVX2 permute operations in constexpr (PR #172149)

2025-12-13 Thread via cfe-commits
@@ -5101,6 +5101,36 @@ bool InterpretBuiltin(InterpState &S, CodePtr OpPC, const CallExpr *Call, unsigned SrcIdx = (ShuffleMask >> 6) & 0x1; return std::pair{SrcIdx, Offset}; }); + case X86::BI__builtin_ia32_vperm2f128_pd256: +return interp__bu

[clang-tools-extra] [clang-tidy] Add modernize-use-init-statement check (PR #171086)

2025-12-13 Thread Denis Mikhailov via cfe-commits
denzor200 wrote: > Seems like this could be covered by `readability-simplify-boolean-expr`. Nice point, I've created issue about that: https://github.com/llvm/llvm-project/issues/172180 https://github.com/llvm/llvm-project/pull/171086 ___ cfe-commi

[clang-tools-extra] [clang-tidy] Add modernize-use-init-statement check (PR #171086)

2025-12-13 Thread Denis Mikhailov via cfe-commits
@@ -0,0 +1,354 @@ +//===--===// +// +// 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: Apa

[clang-tools-extra] [clang-tidy] Add modernize-use-init-statement check (PR #171086)

2025-12-13 Thread Denis Mikhailov via cfe-commits
@@ -0,0 +1,354 @@ +//===--===// +// +// 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: Apa

[clang-tools-extra] [clang-tidy] Add modernize-use-init-statement check (PR #171086)

2025-12-13 Thread Denis Mikhailov via cfe-commits
@@ -0,0 +1,354 @@ +//===--===// +// +// 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: Apa

[clang] [NFC] void cast an unused return (PR #172179)

2025-12-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (schittir) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/172179.diff 1 Files Affected: - (modified) clang/lib/Tooling/DependencyScanning/DependencyScannerImpl.cpp (+1-1) ``diff diff --git a/clang/lib

[clang] [NFC] void cast an unused return (PR #172179)

2025-12-13 Thread via cfe-commits
https://github.com/schittir created https://github.com/llvm/llvm-project/pull/172179 None >From f9a9eda98a32f5fb9fb4854c2325f48ec406c70c Mon Sep 17 00:00:00 2001 From: Sindhu Chittireddy Date: Sat, 13 Dec 2025 13:42:14 -0800 Subject: [PATCH] [NFC] void cast an unused return --- clang/lib/Too

[clang] [clang-format] Add `SpacesInComments` option to control spacing around `/* */` (PR #162105)

2025-12-13 Thread Björn Schäpers via cfe-commits
@@ -23,6 +23,18 @@ namespace clang { namespace format { +namespace { + +CommentKind classifyBlockComment(StringRef Text) { + if (Text.starts_with("/**") || Text.starts_with("/*!")) +return CommentKind::DocString; + const StringRef Content = Text.drop_front(2).drop_back(2

[clang] [CIR][X86] Implement convert_half builtins (PR #171615)

2025-12-13 Thread Björn Schäpers via cfe-commits
HazardyKnusperkeks wrote: Most people just drop their PR and reopen a new one, which doesn't spam a lot of people. ;) I got auto subscribed because of the clang-format label. https://github.com/llvm/llvm-project/pull/171615 ___ cfe-commits mailing lis

[clang] [compiler-rt] [llvm] [RFC] [msan] make MSan up to 20x faster on AMD CPUs (PR #171993)

2025-12-13 Thread Thurston Dang via cfe-commits
@@ -443,8 +443,8 @@ static const MemoryMapParams Linux_I386_MemoryMapParams = { static const MemoryMapParams Linux_X86_64_MemoryMapParams = { 0, // AndMask (not used) 0x5000, // XorMask -0, // ShadowBase (not used) -0x10

[clang] [compiler-rt] [llvm] [RFC] [msan] make MSan up to 20x faster on AMD CPUs (PR #171993)

2025-12-13 Thread Thurston Dang via cfe-commits
https://github.com/thurstond requested changes to this pull request. https://github.com/llvm/llvm-project/pull/171993 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Fix/172072 auto function param (PR #172092)

2025-12-13 Thread via cfe-commits
@@ -1789,6 +1789,15 @@ bool CursorVisitor::VisitAdjustedTypeLoc(AdjustedTypeLoc TL) { return Visit(TL.getOriginalLoc()); } +bool CursorVisitor::VisitAutoTypeLoc(AutoTypeLoc TL) { Serafean wrote: doesn't compile. Already defined by `DEFAULT_TYPELOC_IMPL(Aut

[clang] Fix/172072 auto function param (PR #172092)

2025-12-13 Thread via cfe-commits
@@ -150,6 +150,16 @@ CXType cxtype::MakeCXType(QualType T, CXTranslationUnit TU) { return MakeCXType(PTT->getInnerType(), TU); } +// Handle auto in function parameters +if (auto *TTP = T->getAs()) { + auto *D = TTP->getDecl(); + if (D && D->isImpli

[clang] Fix/172072 auto function param (PR #172092)

2025-12-13 Thread via cfe-commits
@@ -0,0 +1,14 @@ +// Test case for auto function parameter reported as CXType_Auto +// This test verifies that auto parameters in function declarations +// are properly reported as CXType_Auto in the libclang C API +// See issue #172072 + +// RUN: c-index-test -test-type %s | File

[clang] [Clang] feat: Allow AVX/AVX2 permute operations in constexpr (PR #172149)

2025-12-13 Thread Timm Baeder via cfe-commits
@@ -5101,6 +5101,36 @@ bool InterpretBuiltin(InterpState &S, CodePtr OpPC, const CallExpr *Call, unsigned SrcIdx = (ShuffleMask >> 6) & 0x1; return std::pair{SrcIdx, Offset}; }); + case X86::BI__builtin_ia32_vperm2f128_pd256: +return interp__bu

[clang] [Clang] feat: Allow AVX/AVX2 permute operations in constexpr (PR #172149)

2025-12-13 Thread Timm Baeder via cfe-commits
@@ -5101,6 +5101,36 @@ bool InterpretBuiltin(InterpState &S, CodePtr OpPC, const CallExpr *Call, unsigned SrcIdx = (ShuffleMask >> 6) & 0x1; return std::pair{SrcIdx, Offset}; }); + case X86::BI__builtin_ia32_vperm2f128_pd256: +return interp__bu

  1   2   3   >