[clang] [llvm] [ARM][KCFI] Add backend support for Kernel Control-Flow Integrity (PR #163698)

2025-10-19 Thread David Green via cfe-commits
@@ -0,0 +1,191 @@ +; RUN: llc -mtriple=thumbv6m-none-eabi < %s | FileCheck %s davemgreen wrote: I would recommend update_llc_test_checks wherever it is sensible to use it. https://github.com/llvm/llvm-project/pull/163698 _

[clang] [llvm] [ARM][KCFI] Add backend support for Kernel Control-Flow Integrity (PR #163698)

2025-10-19 Thread David Green via cfe-commits
@@ -530,6 +534,9 @@ void ARMPassConfig::addPreEmitPass() { } void ARMPassConfig::addPreEmitPass2() { + // Unpack KCFI bundles before AsmPrinter + addPass(createUnpackMachineBundles(nullptr)); davemgreen wrote: There is already a UnpackMachineBundles in addP

[clang] [llvm] [ARM][KCFI] Add backend support for Kernel Control-Flow Integrity (PR #163698)

2025-10-19 Thread David Green via cfe-commits
@@ -6535,6 +6535,15 @@ def CMP_SWAP_64 : PseudoInst<(outs GPRPair:$Rd, GPRPair:$addr_temp_out), def : Pat<(atomic_fence (timm), 0), (MEMBARRIER)>; +//===--===// +// KCFI check pseudo-instruction. +//===-

[clang] [clang-format][NFC] Simplify AlignMacroMatches (PR #164122)

2025-10-19 Thread via cfe-commits
=?utf-8?q?Bj=C3=B6rn_Sch=C3=A4pers?= Message-ID: In-Reply-To: https://github.com/owenca approved this pull request. https://github.com/llvm/llvm-project/pull/164122 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-b

[clang] [clang-format][NFC] Simplify AlignMacroMatches (PR #164122)

2025-10-19 Thread via cfe-commits
=?utf-8?q?Björn_Schäpers?= Message-ID: In-Reply-To: @@ -656,7 +656,6 @@ void WhitespaceManager::alignConsecutiveMacros() { auto AlignMacrosMatches = [](const Change &C) { const FormatToken *Current = C.Tok; owenca wrote: This is unique in that a loca

[libclc] [NFC][libclc] Simplify degrees, radians and smoothstep macros (PR #164203)

2025-10-19 Thread Wenju He via cfe-commits
https://github.com/wenju-he closed https://github.com/llvm/llvm-project/pull/164203 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libclc] 54eaf22 - [NFC][libclc] Simplify degrees, radians and smoothstep macros (#164203)

2025-10-19 Thread via cfe-commits
Author: Wenju He Date: 2025-10-20T13:51:18+08:00 New Revision: 54eaf22269ebd9433196602acc152152928f9a0d URL: https://github.com/llvm/llvm-project/commit/54eaf22269ebd9433196602acc152152928f9a0d DIFF: https://github.com/llvm/llvm-project/commit/54eaf22269ebd9433196602acc152152928f9a0d.diff LOG:

[clang] [clang] Updates for support for Ubuntu, Debian and RHEL (PR #162796)

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

[clang] [clang][bytecode] Fix a crash when redeclaring extern globals (PR #164204)

2025-10-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes One iteration of this loop might've already fixed up the pointers of coming globals, so check for that explicitly. Fixes https://github.com/llvm/llvm-project/issues/164151 --- Full diff: https://github.com/

[clang] [clang][bytecode] Fix a crash when redeclaring extern globals (PR #164204)

2025-10-19 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/164204 One iteration of this loop might've already fixed up the pointers of coming globals, so check for that explicitly. Fixes https://github.com/llvm/llvm-project/issues/164151 >From 1bca5e482592617c4cdef9eb55b3f1

[clang-tools-extra] [clang-tidy] Rename and move 'cert-oop57-cpp' to 'bugprone-libc-memory-calls-on-nontrivial-types' (PR #162039)

2025-10-19 Thread Dasha Buka via cfe-commits
https://github.com/dvbuka updated https://github.com/llvm/llvm-project/pull/162039 >From 236cee683ac84ebd7ac6cd41f0d78020c312f68c Mon Sep 17 00:00:00 2001 From: Dasha Buka Date: Sun, 5 Oct 2025 15:44:45 -0700 Subject: [PATCH 01/10] [clang-tidy] Add new alias 'libc-memory-calls-on-nontrivial-ty

[libclc] [NFC][libclc] Simplify degrees, radians and smoothstep macros (PR #164203)

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

[clang-tools-extra] [clang-tidy] Rename and move 'cert-oop57-cpp' to 'bugprone-libc-memory-calls-on-nontrivial-types' (PR #162039)

2025-10-19 Thread Dasha Buka via cfe-commits
dvbuka wrote: Renamed to `bugprone-raw-memory-call-on-nontrivial-type`. https://github.com/llvm/llvm-project/pull/162039 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 1943c9e - Reapply "[Clang] Enable lit internal shell by default"

2025-10-19 Thread Aiden Grossman via cfe-commits
Author: Aiden Grossman Date: 2025-10-20T05:32:50Z New Revision: 1943c9e9b9de4b920fb4ed9352f5721407fc01c7 URL: https://github.com/llvm/llvm-project/commit/1943c9e9b9de4b920fb4ed9352f5721407fc01c7 DIFF: https://github.com/llvm/llvm-project/commit/1943c9e9b9de4b920fb4ed9352f5721407fc01c7.diff LOG

[libclc] [NFC][libclc] Simplify degrees, radians and smoothstep macros (PR #164203)

2025-10-19 Thread Wenju He via cfe-commits
https://github.com/wenju-he edited https://github.com/llvm/llvm-project/pull/164203 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Rename and move 'cert-oop57-cpp' to 'bugprone-libc-memory-calls-on-nontrivial-types' (PR #162039)

2025-10-19 Thread Dasha Buka via cfe-commits
@@ -440,8 +440,8 @@ Check aliases :doc:`cert-dcl51-cpp `, :doc:`bugprone-reserved-identifier `, "Yes" :doc:`cert-dcl54-cpp `, :doc:`misc-new-delete-overloads `, :doc:`cert-dcl59-cpp `, :doc:`google-build-namespaces `, - :doc:`cert-err09-cpp `, :doc:`misc-throw-by

[clang-tools-extra] [clang-tidy] Rename and move 'cert-oop57-cpp' to 'bugprone-libc-memory-calls-on-nontrivial-types' (PR #162039)

2025-10-19 Thread Dasha Buka via cfe-commits
https://github.com/dvbuka updated https://github.com/llvm/llvm-project/pull/162039 >From 236cee683ac84ebd7ac6cd41f0d78020c312f68c Mon Sep 17 00:00:00 2001 From: Dasha Buka Date: Sun, 5 Oct 2025 15:44:45 -0700 Subject: [PATCH 1/9] [clang-tidy] Add new alias 'libc-memory-calls-on-nontrivial-type

[libclc] [NFC][libclc] Simplify degrees, radians and smoothstep macros (PR #164203)

2025-10-19 Thread Wenju He via cfe-commits
https://github.com/wenju-he edited https://github.com/llvm/llvm-project/pull/164203 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Rename and move 'cert-oop57-cpp' to 'bugprone-libc-memory-calls-on-nontrivial-types' (PR #162039)

2025-10-19 Thread Dasha Buka via cfe-commits
https://github.com/dvbuka updated https://github.com/llvm/llvm-project/pull/162039 >From 236cee683ac84ebd7ac6cd41f0d78020c312f68c Mon Sep 17 00:00:00 2001 From: Dasha Buka Date: Sun, 5 Oct 2025 15:44:45 -0700 Subject: [PATCH 1/8] [clang-tidy] Add new alias 'libc-memory-calls-on-nontrivial-type

[libclc] [NFC][libclc] Simplify __clc_smoothstep and smoothstep macros (PR #164203)

2025-10-19 Thread Wenju He via cfe-commits
https://github.com/wenju-he updated https://github.com/llvm/llvm-project/pull/164203 >From db1f69d9df0ae88095f759b47d5050b452c3215e Mon Sep 17 00:00:00 2001 From: Wenju He Date: Mon, 20 Oct 2025 06:51:42 +0200 Subject: [PATCH 1/2] [NFC][libclc] Simplify __clc_smoothstep and smoothstep macros

[clang] [NFC][doc] Mark P1857R3 as partial implemented (PR #164095)

2025-10-19 Thread via cfe-commits
https://github.com/yronglin closed https://github.com/llvm/llvm-project/pull/164095 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] e65522e - [NFC][doc] Mark P1857R3 as partial implemented (#164095)

2025-10-19 Thread via cfe-commits
Author: yronglin Date: 2025-10-20T13:17:56+08:00 New Revision: e65522e596522faca391eea0adb440542b9f8f15 URL: https://github.com/llvm/llvm-project/commit/e65522e596522faca391eea0adb440542b9f8f15 DIFF: https://github.com/llvm/llvm-project/commit/e65522e596522faca391eea0adb440542b9f8f15.diff LOG:

[clang-tools-extra] clangd: Make callHierarchy follow inheritance (PR #163024)

2025-10-19 Thread Nathan Ridge via cfe-commits
@@ -94,6 +106,9 @@ class MemIndex : public SymbolIndex { static_assert(sizeof(RelationKind) == sizeof(uint8_t), "RelationKind should be of same size as a uint8_t"); llvm::DenseMap, std::vector> Relations; + // Reverse relations, currently only for Override

[clang-tools-extra] [clang-tidy] Rename and move 'cert-oop57-cpp' to 'bugprone-libc-memory-calls-on-nontrivial-types' (PR #162039)

2025-10-19 Thread Dasha Buka via cfe-commits
https://github.com/dvbuka updated https://github.com/llvm/llvm-project/pull/162039 >From 236cee683ac84ebd7ac6cd41f0d78020c312f68c Mon Sep 17 00:00:00 2001 From: Dasha Buka Date: Sun, 5 Oct 2025 15:44:45 -0700 Subject: [PATCH 1/7] [clang-tidy] Add new alias 'libc-memory-calls-on-nontrivial-type

[clang] [Headers][X86] Allow SLLDQ/SRLDQ byte shift intrinsics to be used in constexpr (PR #164166)

2025-10-19 Thread Timm Baeder via cfe-commits
tbaederr wrote: I don't think I have an immediate problem with the implementation (at least not the parts in `InterpBuiltin.cpp`, good job), but the two added functions seem almost identical - maybe unifying the implementation and doing different things in the loop depending on the builtin ID

[clang-tools-extra] [Clangd][NFC] Normalize all file path root names (PR #153736)

2025-10-19 Thread Nathan Ridge via cfe-commits
HighCommander4 wrote: Making this change in code specific to the "rename" operation is just going to address one symptom of a larger underlying problem, which is https://github.com/clangd/clangd/issues/108. A more comprehensive fix for the underlying issue is being worked on in https://github

[clang-tools-extra] [clangd] Turn `Path` and `PathRef` into classes (PR #136439)

2025-10-19 Thread Nathan Ridge via cfe-commits
HighCommander4 wrote: @kadircet or @llvm-beanz, would you be able to help by reviewing this? It's addressing an issue affecting a lot of users (https://github.com/clangd/clangd/issues/108), or at least making progress towards addressing that issue. https://github.com/llvm/llvm-project/pull/13

[clang-tools-extra] [clangd] Turn `Path` and `PathRef` into classes (PR #136439)

2025-10-19 Thread Nathan Ridge via cfe-commits
HighCommander4 wrote: @Nerixyz thank you for putting together this patch! Would you mind rebasing it against current trunk please? https://github.com/llvm/llvm-project/pull/136439 ___ cfe-commits mailing list [email protected] https://lists.l

[clang-tools-extra] [clang-tidy] Rename and move 'cert-oop57-cpp' to 'bugprone-libc-memory-calls-on-nontrivial-types' (PR #162039)

2025-10-19 Thread Dasha Buka via cfe-commits
https://github.com/dvbuka updated https://github.com/llvm/llvm-project/pull/162039 >From 236cee683ac84ebd7ac6cd41f0d78020c312f68c Mon Sep 17 00:00:00 2001 From: Dasha Buka Date: Sun, 5 Oct 2025 15:44:45 -0700 Subject: [PATCH 1/6] [clang-tidy] Add new alias 'libc-memory-calls-on-nontrivial-type

[clang] [llvm] [mlir] [IR] Replace alignment argument with attribute on masked intrinsics (PR #163802)

2025-10-19 Thread Christian Ulmann via cfe-commits
https://github.com/Dinistro approved this pull request. The MLIR side LGTM! Thanks for the cleanup. https://github.com/llvm/llvm-project/pull/163802 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo

[clang-tools-extra] [clang-tidy] Rename and move 'cert-oop57-cpp' to 'bugprone-libc-memory-calls-on-nontrivial-types' (PR #162039)

2025-10-19 Thread Dasha Buka via cfe-commits
https://github.com/dvbuka updated https://github.com/llvm/llvm-project/pull/162039 >From 236cee683ac84ebd7ac6cd41f0d78020c312f68c Mon Sep 17 00:00:00 2001 From: Dasha Buka Date: Sun, 5 Oct 2025 15:44:45 -0700 Subject: [PATCH 1/5] [clang-tidy] Add new alias 'libc-memory-calls-on-nontrivial-type

[clang] [Basic] clean up MapEntryOptionalStorage and its derived classes (NFC) (PR #164189)

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

[clang] f744cce - [Basic] clean up MapEntryOptionalStorage and its derived classes (NFC) (#164189)

2025-10-19 Thread via cfe-commits
Author: Kazu Hirata Date: 2025-10-19T21:56:23-07:00 New Revision: f744cce89a14a29872e22f61303800643c7a5b7c URL: https://github.com/llvm/llvm-project/commit/f744cce89a14a29872e22f61303800643c7a5b7c DIFF: https://github.com/llvm/llvm-project/commit/f744cce89a14a29872e22f61303800643c7a5b7c.diff L

[clang-tools-extra] [clang-tidy][NFC] Remove unused parameter in function (PR #164202)

2025-10-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: Victor Chernyakin (localspook) Changes 82289aa refactored this function to not need this parameter. --- Full diff: https://github.com/llvm/llvm-project/pull/164202.diff 1 Files Affected: - (modified) clang-tools-extra/clang-tidy/Cl

[clang-tools-extra] [clang-tidy][NFC] Remove unused parameter in function (PR #164202)

2025-10-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Victor Chernyakin (localspook) Changes 82289aa refactored this function to not need this parameter. --- Full diff: https://github.com/llvm/llvm-project/pull/164202.diff 1 Files Affected: - (modified) clang-tools-extra/clang-

[libclc] [NFC][libclc] Simplify __clc_smoothstep and smoothstep macros (PR #164203)

2025-10-19 Thread Wenju He via cfe-commits
https://github.com/wenju-he created https://github.com/llvm/llvm-project/pull/164203 This is NFC because implementation doesn't change. >From db1f69d9df0ae88095f759b47d5050b452c3215e Mon Sep 17 00:00:00 2001 From: Wenju He Date: Mon, 20 Oct 2025 06:51:42 +0200 Subject: [PATCH] [NFC][libclc] Si

[clang-tools-extra] [clang-tidy][NFC] Remove unused parameter in function (PR #164202)

2025-10-19 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook created https://github.com/llvm/llvm-project/pull/164202 82289aa refactored this function to not need this parameter. >From 297e2daddb7582130d373e5652d621aa8dc5b64c Mon Sep 17 00:00:00 2001 From: Victor Chernyakin Date: Sun, 19 Oct 2025 21:51:49 -0700 Subject: [PA

[clang-tools-extra] [clang-tidy] Rename and move 'cert-oop57-cpp' to 'bugprone-libc-memory-calls-on-nontrivial-types' (PR #162039)

2025-10-19 Thread Dasha Buka via cfe-commits
https://github.com/dvbuka updated https://github.com/llvm/llvm-project/pull/162039 >From 236cee683ac84ebd7ac6cd41f0d78020c312f68c Mon Sep 17 00:00:00 2001 From: Dasha Buka Date: Sun, 5 Oct 2025 15:44:45 -0700 Subject: [PATCH 1/4] [clang-tidy] Add new alias 'libc-memory-calls-on-nontrivial-type

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

2025-10-19 Thread Hubert Tong via cfe-commits
hubert-reinterpretcast wrote: It seems that the code is currently checking for the `module` or `import` at the start of the line _after_ macro expansion: ```cpp #define IMPORT import template struct import; extern IMPORT a; ``` is supposed to compile (based on the wording). Accepted with `IMP

[clang] [compiler-rt] [llvm] [SPARC] Properly handle CC for long double on sparc32 (PR #162226)

2025-10-19 Thread via cfe-commits
koachan wrote: > The code in question is > > ``` >0x114e0 :st %i0, [ %fp + -1484 ] >0x114e4 :ld [ %fp + -160 ], %i0 >0x114e8 :st %i0, [ %fp + -1488 ] >0x114ec :ld [ %fp + -168 ], %i0 >0x114f0 :st %i0, [ %fp + -1496 ] >0x114f4 :

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

2025-10-19 Thread Hubert Tong via cfe-commits
@@ -142,6 +142,15 @@ void printDependencyDirectivesAsSource( /// \returns true if any C++20 named modules related directive was found. bool scanInputForCXX20ModulesUsage(StringRef Source); +/// Scan an input source buffer, and check whether the input ssource is a +/// preproce

[clang] [NFC][doc] Mark P1857R3 as partial implemented (PR #164095)

2025-10-19 Thread via cfe-commits
yronglin wrote: > Out of curiosity, which parts are not implemented? All the rest parts will be supported in https://github.com/llvm/llvm-project/pull/107168 https://github.com/llvm/llvm-project/pull/164095 ___ cfe-commits mailing list cfe-commits@li

[clang] [NFC][doc] Mark P1857R3 as partial implemented (PR #164095)

2025-10-19 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 approved this pull request. Out of curiosity, which parts are not implemented? https://github.com/llvm/llvm-project/pull/164095 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman

[clang] [NFC][doc] Mark P1857R3 as partial implemented (PR #164095)

2025-10-19 Thread via cfe-commits
https://github.com/yronglin updated https://github.com/llvm/llvm-project/pull/164095 >From a9f97702c9e34b50c6868ccfe76ad5b9ef3a6b88 Mon Sep 17 00:00:00 2001 From: yronglin Date: Sat, 18 Oct 2025 23:04:53 +0800 Subject: [PATCH 1/3] [NFC][doc] Mark P1857R3 as partial implemented Signed-off-by: y

[clang] [NFC][doc] Mark P1857R3 as partial implemented (PR #164095)

2025-10-19 Thread via cfe-commits
https://github.com/yronglin updated https://github.com/llvm/llvm-project/pull/164095 >From a9f97702c9e34b50c6868ccfe76ad5b9ef3a6b88 Mon Sep 17 00:00:00 2001 From: yronglin Date: Sat, 18 Oct 2025 23:04:53 +0800 Subject: [PATCH 1/2] [NFC][doc] Mark P1857R3 as partial implemented Signed-off-by: y

[clang] 04fc1ae - [Clang] Explicitly invoke bash to run shell scripts

2025-10-19 Thread Aiden Grossman via cfe-commits
Author: Aiden Grossman Date: 2025-10-20T03:09:39Z New Revision: 04fc1aee564373e72048333a789c7b277e68f25a URL: https://github.com/llvm/llvm-project/commit/04fc1aee564373e72048333a789c7b277e68f25a DIFF: https://github.com/llvm/llvm-project/commit/04fc1aee564373e72048333a789c7b277e68f25a.diff LOG

[clang] 4f5374b - [Clnag] Prefer octal to hex for printf

2025-10-19 Thread Aiden Grossman via cfe-commits
Author: Aiden Grossman Date: 2025-10-20T03:09:39Z New Revision: 4f5374bef554eb7f5429c1a86d90833e4a3c98de URL: https://github.com/llvm/llvm-project/commit/4f5374bef554eb7f5429c1a86d90833e4a3c98de DIFF: https://github.com/llvm/llvm-project/commit/4f5374bef554eb7f5429c1a86d90833e4a3c98de.diff LOG

[clang] [clang-tools-extra] [ExprMutation] handle return non-const type (PR #161396)

2025-10-19 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 closed https://github.com/llvm/llvm-project/pull/161396 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] 7539fc5 - [ExprMutation] handle return non-const type (#161396)

2025-10-19 Thread via cfe-commits
Author: Congcong Cai Date: 2025-10-20T03:07:17Z New Revision: 7539fc5b33ad9344cca75e55ecfec7cc71dfccdc URL: https://github.com/llvm/llvm-project/commit/7539fc5b33ad9344cca75e55ecfec7cc71dfccdc DIFF: https://github.com/llvm/llvm-project/commit/7539fc5b33ad9344cca75e55ecfec7cc71dfccdc.diff LOG:

[clang] [Clang][NFC] Fix a warning in TransformNestedRequirement (PR #164148)

2025-10-19 Thread Shafik Yaghmour via cfe-commits
shafik wrote: Thank you for the fix. https://github.com/llvm/llvm-project/pull/164148 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Add more constexpr options to `readability-identifier-naming` (PR #162160)

2025-10-19 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/162160 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][NFC] Fix a warning in TransformNestedRequirement (PR #164148)

2025-10-19 Thread Shafik Yaghmour via cfe-commits
@@ -2864,9 +2864,9 @@ TemplateInstantiator::TransformNestedRequirement( TemplateArgs, Constraint->getSourceRange(), Satisfaction, /*TopLevelConceptId=*/nullptr, &NewConstraint); -assert(!Success || !Trap.hasErrorOccurred() && - "Su

[clang] [Clang] Do not warn on UTF-16 -> UTF-32 conversions. (PR #163927)

2025-10-19 Thread Shafik Yaghmour via cfe-commits
@@ -12309,13 +12309,20 @@ static void DiagnoseMixedUnicodeImplicitConversion(Sema &S, const Type *Source, SourceLocation CC) { assert(Source->isUnicodeCharacterType() && Target->isUnicodeCharacterType() && Source !

[clang-tools-extra] [clang-tidy] Apply DeMorgan to overloaded operator in the 'readability-simplify-boolean-expr' check (PR #164141)

2025-10-19 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 edited https://github.com/llvm/llvm-project/pull/164141 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Reuse AlignTokens for aligning macros (PR #164120)

2025-10-19 Thread LLVM Continuous Integration via cfe-commits
=?utf-8?q?Björn_Schäpers?= Message-ID: In-Reply-To: llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-riscv-rva23-zvl1024b-2stage` running on `rise-worker-3` while building `clang` at step 4 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/

[clang-tools-extra] [clang-tidy] Apply DeMorgan to overloaded operator in the 'readability-simplify-boolean-expr' check (PR #164141)

2025-10-19 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 commented: That is not true, when then overloaded operation provide the partial order sema, when the check will cause the wrong result. e.g. ```c++ #include #include struct A { int v; bool isValid; std::partial_ordering operator<=>(const A &other) const {

[clang] [Headers][X86] Allow SLLDQ/SRLDQ byte shift intrinsics to be used in constexpr (PR #164166)

2025-10-19 Thread Ye Tian via cfe-commits
TianYe717 wrote: Hi @RKSimon @tbaederr , could you please take a look at this PR? Thanks! https://github.com/llvm/llvm-project/pull/164166 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commi

[clang-tools-extra] [clang-tidy][NFC] Fix llvm-prefer-static-over-anonymous-namespace warnings 4/N (PR #164158)

2025-10-19 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 approved this pull request. https://github.com/llvm/llvm-project/pull/164158 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Headers][X86] Allow SLLDQ/SRLDQ byte shift intrinsics to be used in constexpr (PR #164166)

2025-10-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-x86 Author: Ye Tian (TianYe717) Changes Support constexpr usage for SLLDQ/SRLDQ byte shift intrinsics This draft PR adds support for using the following SRLDQ intrinsics in constant expressions: - _mm_srli_si128 - _mm256_srli_si256 - _mm_slli_s

[clang-tools-extra] [clang-tidy] Emit warnings from user headers by default (PR #164165)

2025-10-19 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/164165 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Headers][X86] Allow SLLDQ/SRLDQ byte shift intrinsics to be used in constexpr (PR #164166)

2025-10-19 Thread Ye Tian via cfe-commits
https://github.com/TianYe717 ready_for_review https://github.com/llvm/llvm-project/pull/164166 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [ExprMutation] handle return non-const type (PR #161396)

2025-10-19 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 auto_merge_enabled https://github.com/llvm/llvm-project/pull/161396 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [ExprMutation] handle return non-const type (PR #161396)

2025-10-19 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 updated https://github.com/llvm/llvm-project/pull/161396 >From 9472a9cca3027b43a3b117176ddd3a5063c03f14 Mon Sep 17 00:00:00 2001 From: Congcong Cai Date: Tue, 30 Sep 2025 23:35:57 +0800 Subject: [PATCH 1/5] [ExprMutation] handle return non-const type --- clang-t

[clang-tools-extra] [clang-tidy] Apply DeMorgan to overloaded operator in the 'readability-simplify-boolean-expr' check (PR #164141)

2025-10-19 Thread via cfe-commits
https://github.com/jlallas384 updated https://github.com/llvm/llvm-project/pull/164141 >From 9e440a185c3f2930067bba6a36f003faeef991ae Mon Sep 17 00:00:00 2001 From: jlallas384 Date: Sun, 19 Oct 2025 09:58:44 +0800 Subject: [PATCH] [clang-tidy] Apply DeMorgan to overloaded operator in the 'read

[clang-tools-extra] [clang-tidy] Apply DeMorgan to overloaded operator in the 'readability-simplify-boolean-expr' check (PR #164141)

2025-10-19 Thread via cfe-commits
https://github.com/jlallas384 updated https://github.com/llvm/llvm-project/pull/164141 >From 9e440a185c3f2930067bba6a36f003faeef991ae Mon Sep 17 00:00:00 2001 From: jlallas384 Date: Sun, 19 Oct 2025 09:58:44 +0800 Subject: [PATCH] [clang-tidy] Apply DeMorgan to overloaded operator in the 'read

[libclc] [libclc] Refine __clc_get_sub_group_size with fast full sub-group path (PR #163149)

2025-10-19 Thread Wenju He via cfe-commits
@@ -13,14 +13,11 @@ #include _CLC_OVERLOAD _CLC_DEF uint __clc_get_sub_group_size() { - if (__clc_get_sub_group_id() != __clc_get_num_sub_groups() - 1) { -return __clc_get_max_sub_group_size(); - } - size_t size_x = __clc_get_local_size(0); - size_t size_y = __clc_get

[libclc] [libclc] Move functions definition from header clc_sincos_piby4.inc into clc_sincos_helpers.cl (PR #164028)

2025-10-19 Thread Wenju He via cfe-commits
https://github.com/wenju-he closed https://github.com/llvm/llvm-project/pull/164028 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libclc] 377148f - [libclc] Move functions definition from header clc_sincos_piby4.inc into clc_sincos_helpers.cl (#164028)

2025-10-19 Thread via cfe-commits
Author: Wenju He Date: 2025-10-20T10:08:35+08:00 New Revision: 377148fd60df55e486dc72b26248006ae092725a URL: https://github.com/llvm/llvm-project/commit/377148fd60df55e486dc72b26248006ae092725a DIFF: https://github.com/llvm/llvm-project/commit/377148fd60df55e486dc72b26248006ae092725a.diff LOG:

[clang] [Headers][X86] Allow SLLDQ/SRLDQ byte shift intrinsics to be used in constexpr (PR #164166)

2025-10-19 Thread Ye Tian via cfe-commits
https://github.com/TianYe717 edited https://github.com/llvm/llvm-project/pull/164166 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Headers][X86] Allow SLLDQ/SRLDQ byte shift intrinsics to be used in constexpr (PR #164166)

2025-10-19 Thread Ye Tian via cfe-commits
https://github.com/TianYe717 updated https://github.com/llvm/llvm-project/pull/164166 >From 73e38ec44c5d59e970919d1b4245cfd231375269 Mon Sep 17 00:00:00 2001 From: Ye Tian <[email protected]> Date: Sun, 19 Oct 2025 23:39:47 +0800 Subject: [PATCH 1/3] [Headers][X86] Support constexpr usage for _mm

[libclc] [libclc] Change libclc install dir to ${clang_resource_dir}/lib/libclc in in-tree build (PR #163896)

2025-10-19 Thread Wenju He via cfe-commits
https://github.com/wenju-he closed https://github.com/llvm/llvm-project/pull/163896 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libclc] b9e2f7a - [libclc] Change libclc install dir to ${clang_resource_dir}/lib/libclc in in-tree build (#163896)

2025-10-19 Thread via cfe-commits
Author: Wenju He Date: 2025-10-20T09:47:00+08:00 New Revision: b9e2f7ac0489b2045aa78475e9663c2d3e5bedf7 URL: https://github.com/llvm/llvm-project/commit/b9e2f7ac0489b2045aa78475e9663c2d3e5bedf7 DIFF: https://github.com/llvm/llvm-project/commit/b9e2f7ac0489b2045aa78475e9663c2d3e5bedf7.diff LOG:

[libclc] [libclc] Fix double NAN_MASK in __clc_nan (PR #163522)

2025-10-19 Thread Wenju He via cfe-commits
wenju-he wrote: > It's probably better to go back to not using the builtin, failing a way to > get the string done, reverted to original version https://github.com/llvm/llvm-project/pull/163522 ___ cfe-commits mailing list [email protected]

[libclc] [libclc] Fix double NAN_MASK in __clc_nan (PR #163522)

2025-10-19 Thread Wenju He via cfe-commits
https://github.com/wenju-he updated https://github.com/llvm/llvm-project/pull/163522 >From 9a49cb5e37f308fd889dfc5ee96981139c3221d2 Mon Sep 17 00:00:00 2001 From: Wenju He Date: Wed, 15 Oct 2025 10:29:34 +0200 Subject: [PATCH 1/3] [libclc] Fix double NAN_MASK 0x7ff0 is +inf. Change

[clang] [Basic] clean up MapEntryOptionalStorage and its derived classes (NFC) (PR #164189)

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

[clang] [clang][PAC][NFC] Provide addition support macros to ptrauth.h (PR #161027)

2025-10-19 Thread Oliver Hunt via cfe-commits
ojhunt wrote: > @ojhunt Can we consider this PR obsolete and close it since we no longer use > this union approach and things are already (almost) fixed in the main > unwinding PR #143230? They're macros that are used, and are useful on their own so upstreaming still seems sensible? they were

[clang] [clang-format] Reuse AlignTokens for aligning macros (PR #164120)

2025-10-19 Thread LLVM Continuous Integration via cfe-commits
=?utf-8?q?Björn_Schäpers?= Message-ID: In-Reply-To: llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `sanitizer-ppc64le-linux` running on `ppc64le-sanitizer` while building `clang` at step 2 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builder

[clang] [clang][NFC] Simplify implementation of `IgnoreExprNodes` (PR #164193)

2025-10-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Victor Chernyakin (localspook) Changes Using a fold instead of template recursion. --- Full diff: https://github.com/llvm/llvm-project/pull/164193.diff 1 Files Affected: - (modified) clang/include/clang/AST/IgnoreExpr.h (+1-11) `

[clang] [clang][NFC] Simplify implementation of `IgnoreExprNodes` (PR #164193)

2025-10-19 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook created https://github.com/llvm/llvm-project/pull/164193 Using a fold instead of template recursion. >From b7188eaa663d10dccc45719fd6b0db8866d07a05 Mon Sep 17 00:00:00 2001 From: Victor Chernyakin Date: Sun, 19 Oct 2025 16:53:22 -0700 Subject: [PATCH] [clang][NFC]

[clang-tools-extra] 3f9f522 - [clang-tidy] Fix broken fix-its with `bugprone-not-null-terminated-result` on Windows (#162874)

2025-10-19 Thread via cfe-commits
Author: Victor Chernyakin Date: 2025-10-19T16:46:29-07:00 New Revision: 3f9f522a7c0142b7aca8ddb135a718a2f1ccb58e URL: https://github.com/llvm/llvm-project/commit/3f9f522a7c0142b7aca8ddb135a718a2f1ccb58e DIFF: https://github.com/llvm/llvm-project/commit/3f9f522a7c0142b7aca8ddb135a718a2f1ccb58e.d

[clang-tools-extra] [clang-tidy] Fix broken fix-its with `bugprone-not-null-terminated-result` on Windows (PR #162874)

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

[clang] [clang-format] Respect ColumnLimit while aligning multiline expressions (PR #163863)

2025-10-19 Thread Björn Schäpers via cfe-commits
HazardyKnusperkeks wrote: Rebased and resolved conflicts. https://github.com/llvm/llvm-project/pull/163863 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Respect ColumnLimit while aligning multiline expressions (PR #163863)

2025-10-19 Thread Björn Schäpers via cfe-commits
https://github.com/HazardyKnusperkeks updated https://github.com/llvm/llvm-project/pull/163863 From 5281c1ed4cbc465720f736fdc1e7302ac2c0e3a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Sch=C3=A4pers?= Date: Thu, 16 Oct 2025 23:08:36 +0200 Subject: [PATCH] [clang-format] Respect Column

[clang] [Basic] clean up MapEntryOptionalStorage and its derived classes (NFC) (PR #164189)

2025-10-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes This patch modernizes a couple of things: - Use in-class member initializers in MapEntryOptionalStorage. - Inherit constructors in OptionalStorage and OptionalStorage

[clang] [Basic] clean up MapEntryOptionalStorage and its derived classes (NFC) (PR #164189)

2025-10-19 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/164189 This patch modernizes a couple of things: - Use in-class member initializers in MapEntryOptionalStorage. - Inherit constructors in OptionalStorage and OptionalStorage. >From 32f55b1ab3d0106c8065bdfea

[clang-tools-extra] [clang-tidy] Fix broken fix-its with `bugprone-not-null-terminated-result` on Windows (PR #162874)

2025-10-19 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook updated https://github.com/llvm/llvm-project/pull/162874 >From c9eb6d8217672b52842060e52a71bccb173fb8cc Mon Sep 17 00:00:00 2001 From: Victor Chernyakin Date: Fri, 10 Oct 2025 08:45:26 -0700 Subject: [PATCH 1/2] [clang-tidy] Fix broken fix-its with `bugprone-not-n

[clang-tools-extra] 65fe2d1 - [clang-tidy] Fix a broken fix-it provided by `modernize-use-integer-sign-comparison` (#163488)

2025-10-19 Thread via cfe-commits
Author: Victor Chernyakin Date: 2025-10-19T16:18:26-07:00 New Revision: 65fe2d1daff5cd0a3b483676c1d6c66d12db6533 URL: https://github.com/llvm/llvm-project/commit/65fe2d1daff5cd0a3b483676c1d6c66d12db6533 DIFF: https://github.com/llvm/llvm-project/commit/65fe2d1daff5cd0a3b483676c1d6c66d12db6533.d

[clang-tools-extra] [clang-tidy] Fix a broken fix-it provided by `modernize-use-integer-sign-comparison` (PR #163488)

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

[clang-tools-extra] [clang-tidy][NFC] Fix llvm-prefer-static-over-anonymous-namespace warnings 4/N (PR #164158)

2025-10-19 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook approved this pull request. https://github.com/llvm/llvm-project/pull/164158 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] dd6a6ba - [clang-format] Reuse AlignTokens for aligning macros (#164120)

2025-10-19 Thread via cfe-commits
Author: Björn Schäpers Date: 2025-10-20T00:04:42+02:00 New Revision: dd6a6bac708235fe2ed80670cd873258430264c2 URL: https://github.com/llvm/llvm-project/commit/dd6a6bac708235fe2ed80670cd873258430264c2 DIFF: https://github.com/llvm/llvm-project/commit/dd6a6bac708235fe2ed80670cd873258430264c2.diff

[clang] [clang-format] Reuse AlignTokens for aligning macros (PR #164120)

2025-10-19 Thread Björn Schäpers via cfe-commits
https://github.com/HazardyKnusperkeks closed https://github.com/llvm/llvm-project/pull/164120 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Reuse AlignTokens for aligning macros (PR #164120)

2025-10-19 Thread Björn Schäpers via cfe-commits
https://github.com/HazardyKnusperkeks auto_merge_disabled https://github.com/llvm/llvm-project/pull/164120 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][PAC][NFC] Provide addition support macros to ptrauth.h (PR #161027)

2025-10-19 Thread Daniil Kovalev via cfe-commits
kovdan01 wrote: @ojhunt Can we consider this PR obsolete and close it since we no longer use this union approach and things are already (almost) fixed in the main unwinding PR #143230? https://github.com/llvm/llvm-project/pull/161027 ___ cfe-commits

[compiler-rt] [libcxx] [libcxxabi] [libunwind] [runtimes][PAC] Harden unwinding when possible (PR #143230)

2025-10-19 Thread Daniil Kovalev via cfe-commits
@@ -22,7 +22,6 @@ #include "dwarf2.h" #include "libunwind_ext.h" - kovdan01 wrote: Nit: unintended formatting change https://github.com/llvm/llvm-project/pull/143230 ___ cfe-commits mailing list [email protected]

[compiler-rt] [libcxx] [libcxxabi] [libunwind] [runtimes][PAC] Harden unwinding when possible (PR #143230)

2025-10-19 Thread Daniil Kovalev via cfe-commits
@@ -118,22 +118,62 @@ _LIBUNWIND_HIDDEN int __unw_set_reg(unw_cursor_t *cursor, unw_regnum_t regNum, typedef LocalAddressSpace::pint_t pint_t; AbstractUnwindCursor *co = (AbstractUnwindCursor *)cursor; if (co->validReg(regNum)) { -co->setReg(regNum, (pint_t)value);

[compiler-rt] [libcxx] [libcxxabi] [libunwind] [runtimes][PAC] Harden unwinding when possible (PR #143230)

2025-10-19 Thread Daniil Kovalev via cfe-commits
https://github.com/kovdan01 edited https://github.com/llvm/llvm-project/pull/143230 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[compiler-rt] [libcxx] [libcxxabi] [libunwind] [runtimes][PAC] Harden unwinding when possible (PR #143230)

2025-10-19 Thread Daniil Kovalev via cfe-commits
https://github.com/kovdan01 requested changes to this pull request. @ojhunt Thanks for tons of fixes! We have one more usage of unions in libunwind.cpp which is technically UB. I've proposed a fix for this. See commit a29af825c71d70e83445cd4214f7145642201506 from my branch [ptrauth-unwinding-

[clang] [clang][analyzer] Add new option to specify functions `SecuritySyntaxChecker` warns about (PR #164184)

2025-10-19 Thread Stefan Milenkovic via cfe-commits
https://github.com/stemil01 edited https://github.com/llvm/llvm-project/pull/164184 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][analyzer] Add new option to specify functions `SecuritySyntaxChecker` warns about. (PR #164184)

2025-10-19 Thread Stefan Milenkovic via cfe-commits
https://github.com/stemil01 edited https://github.com/llvm/llvm-project/pull/164184 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][analyzer] Mark `_lstrcatA`, `_strcpyA`, and `_strdup` as insecure on Windows in `SecuritySyntaxChecker` (PR #164183)

2025-10-19 Thread Stefan Milenkovic via cfe-commits
https://github.com/stemil01 edited https://github.com/llvm/llvm-project/pull/164183 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

  1   2   3   >