[clang] 6290cc3 - [clang] Use llvm::stable_sort (NFC) (#140413)

2025-05-17 Thread via cfe-commits
Author: Kazu Hirata Date: 2025-05-17T17:02:45-07:00 New Revision: 6290cc33e9a6541ccb4711991247a77e0a5b9412 URL: https://github.com/llvm/llvm-project/commit/6290cc33e9a6541ccb4711991247a77e0a5b9412 DIFF: https://github.com/llvm/llvm-project/commit/6290cc33e9a6541ccb4711991247a77e0a5b9412.diff L

[clang-tools-extra] 1a40edf - [clang-tools-extra] Use llvm::find_if (NFC) (#140411)

2025-05-17 Thread via cfe-commits
Author: Kazu Hirata Date: 2025-05-17T17:01:37-07:00 New Revision: 1a40edf2c08297bde3e651a521d74356ee94e238 URL: https://github.com/llvm/llvm-project/commit/1a40edf2c08297bde3e651a521d74356ee94e238 DIFF: https://github.com/llvm/llvm-project/commit/1a40edf2c08297bde3e651a521d74356ee94e238.diff L

[clang-tools-extra] c0ca030 - [clang-include-fixer] Remove an unused "using" decl (NFC) (#140354)

2025-05-17 Thread via cfe-commits
Author: Kazu Hirata Date: 2025-05-17T17:00:40-07:00 New Revision: c0ca030782f9c572a5df5f3506652e81aeecad0d URL: https://github.com/llvm/llvm-project/commit/c0ca030782f9c572a5df5f3506652e81aeecad0d DIFF: https://github.com/llvm/llvm-project/commit/c0ca030782f9c572a5df5f3506652e81aeecad0d.diff L

[clang-tools-extra] [clang-include-fixer] Remove an unused "using" decl (NFC) (PR #140354)

2025-05-17 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/140354 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tools-extra] Use llvm::find_if (NFC) (PR #140411)

2025-05-17 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/140411 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Use llvm::stable_sort (NFC) (PR #140413)

2025-05-17 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/140413 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream support for lowering cir.switch to LLVM (PR #140425)

2025-05-17 Thread via cfe-commits
https://github.com/Andres-Salamanca created https://github.com/llvm/llvm-project/pull/140425 This PR adds support for lowering the `cir.switch` operation to LLVM. It includes tests for lowering from `.cir` as well as end-to-end source code tests. >From 384ec2904b91cbed8757720373b451389f5f1a1a

[clang] [CIR] Upstream support for lowering cir.switch to LLVM (PR #140425)

2025-05-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangir Author: None (Andres-Salamanca) Changes This PR adds support for lowering the `cir.switch` operation to LLVM. It includes tests for lowering from `.cir` as well as end-to-end source code tests. --- Patch is 26.83 KiB, truncated to 20.00 KiB be

[clang] [CIR] Upstream support for lowering cir.switch to LLVM (PR #140425)

2025-05-17 Thread via cfe-commits
Andres-Salamanca wrote: @andykaylor https://github.com/llvm/llvm-project/pull/140425 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CodeGen] Use DenseMap::try_emplace (NFC) (PR #140430)

2025-05-17 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/140430 We can simplify the code with DenseMap::try_emplace and structured binding. Note that DenseMap::try_emplace default-constructs the value if omitted. >From 9a898fe585ed452ddcb2888bfdee4440687948dc Mon Se

[clang] [CodeGen] Use DenseMap::try_emplace (NFC) (PR #140430)

2025-05-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes We can simplify the code with DenseMap::try_emplace and structured binding. Note that DenseMap::try_emplace default-constructs the value if omitted. --- Full diff: https://github.com/llvm/llvm-project

[clang] [CodeGen] Use DenseMap::try_emplace (NFC) (PR #140430)

2025-05-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Kazu Hirata (kazutakahirata) Changes We can simplify the code with DenseMap::try_emplace and structured binding. Note that DenseMap::try_emplace default-constructs the value if omitted. --- Full diff: https://github.com/llvm/llvm

[clang] [Clang] Fix missed initializer instantiation bug for variable templates (PR #138122)

2025-05-17 Thread via cfe-commits
https://github.com/dty2 updated https://github.com/llvm/llvm-project/pull/138122 >From a36e3e758221afd97626819e00772ac1e132d927 Mon Sep 17 00:00:00 2001 From: hunter <284050...@qq.com> Date: Thu, 1 May 2025 18:52:34 +0800 Subject: [PATCH] [Clang] Fix missed initializer instantiation bug for varia

[clang] [clang] Use llvm::stable_sort (NFC) (PR #140413)

2025-05-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/140413.diff 6 Files Affected: - (modified) clang/lib/AST/VTableBuilder.cpp (+2-2) - (modified) clang/lib/Lex/ModuleMap.cpp (+1-1) - (modifi

[clang] [clang] Use llvm::stable_sort (NFC) (PR #140413)

2025-05-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-modules Author: Kazu Hirata (kazutakahirata) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/140413.diff 6 Files Affected: - (modified) clang/lib/AST/VTableBuilder.cpp (+2-2) - (modified) clang/lib/Lex/ModuleMap.cpp (+1-1) -

[clang] [clang] Use llvm::stable_sort (NFC) (PR #140413)

2025-05-17 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/140413 None >From 9f7a4c77bd4621edab8a53350a67e46dbb1923ed Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sat, 17 May 2025 14:41:32 -0700 Subject: [PATCH] [clang] Use llvm::stable_sort (NFC) --- clang/lib/A

[clang-tools-extra] [clang-tools-extra] Use llvm::find_if (NFC) (PR #140411)

2025-05-17 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/140411 None >From b1dde26817af09f18cfe5fd4a1779d3720b7f6b8 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sat, 17 May 2025 14:36:45 -0700 Subject: [PATCH] [clang-tools-extra] Use llvm::find_if (NFC) --- ...

[clang-tools-extra] [clang-tools-extra] Use llvm::find_if (NFC) (PR #140411)

2025-05-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangd Author: Kazu Hirata (kazutakahirata) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/140411.diff 2 Files Affected: - (modified) clang-tools-extra/clang-tidy/misc/NewDeleteOverloadsCheck.cpp (+15-16) - (modified) clang-tools

[clang-tools-extra] [clang-tools-extra] Use llvm::find_if (NFC) (PR #140411)

2025-05-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy @llvm/pr-subscribers-clang-tools-extra Author: Kazu Hirata (kazutakahirata) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/140411.diff 2 Files Affected: - (modified) clang-tools-extra/clang-tidy/misc/NewDeleteOverloadsCh

[clang] [clang] Use llvm::stable_sort (NFC) (PR #140413)

2025-05-17 Thread Shilei Tian via cfe-commits
https://github.com/shiltian edited https://github.com/llvm/llvm-project/pull/140413 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Use llvm::stable_sort (NFC) (PR #140413)

2025-05-17 Thread Shilei Tian via cfe-commits
https://github.com/shiltian approved this pull request. https://github.com/llvm/llvm-project/pull/140413 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-include-fixer] Remove an unused "using" decl (NFC) (PR #140354)

2025-05-17 Thread Shilei Tian via cfe-commits
https://github.com/shiltian edited https://github.com/llvm/llvm-project/pull/140354 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-include-fixer] Remove an unused "using" decl (NFC) (PR #140354)

2025-05-17 Thread Shilei Tian via cfe-commits
https://github.com/shiltian approved this pull request. https://github.com/llvm/llvm-project/pull/140354 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tools-extra] Use llvm::find_if (NFC) (PR #140411)

2025-05-17 Thread Shilei Tian via cfe-commits
https://github.com/shiltian approved this pull request. https://github.com/llvm/llvm-project/pull/140411 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tools-extra] Use llvm::find_if (NFC) (PR #140411)

2025-05-17 Thread Shilei Tian via cfe-commits
https://github.com/shiltian edited https://github.com/llvm/llvm-project/pull/140411 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Add avoid-pragma-once. (PR #140388)

2025-05-17 Thread Yanzuo Liu via cfe-commits
@@ -0,0 +1,5 @@ +// RUN: %check_clang_tidy %s portability-avoid-pragma-once %t \ +// RUN: -- -- -isystem %S/Inputs/avoid-pragma-once + +#include +// CHECK-MESSAGES: :[[@LINE-1]]:1: warning: Avoid pragma once. [portability-avoid-pragma-once] zwuis wrote: You c

[clang] [Clang] Fix missed initializer instantiation bug for variable templates (PR #138122)

2025-05-17 Thread via cfe-commits
https://github.com/dty2 updated https://github.com/llvm/llvm-project/pull/138122 >From a36e3e758221afd97626819e00772ac1e132d927 Mon Sep 17 00:00:00 2001 From: hunter <284050...@qq.com> Date: Thu, 1 May 2025 18:52:34 +0800 Subject: [PATCH 1/2] [Clang] Fix missed initializer instantiation bug for

[clang] [Clang] Fix missed initializer instantiation bug for variable templates (PR #138122)

2025-05-17 Thread via cfe-commits
https://github.com/dty2 updated https://github.com/llvm/llvm-project/pull/138122 >From a36e3e758221afd97626819e00772ac1e132d927 Mon Sep 17 00:00:00 2001 From: hunter <284050...@qq.com> Date: Thu, 1 May 2025 18:52:34 +0800 Subject: [PATCH 1/2] [Clang] Fix missed initializer instantiation bug for

[clang-tools-extra] [clang-tidy] Add avoid-pragma-once. (PR #140388)

2025-05-17 Thread Tommy Chen via cfe-commits
https://github.com/dl8sd11 updated https://github.com/llvm/llvm-project/pull/140388 >From 5bc074dadddb094bf954388a95ecb818abe17b56 Mon Sep 17 00:00:00 2001 From: dl8sd11 Date: Sat, 17 May 2025 17:23:26 + Subject: [PATCH 1/3] [clang-tidy] Add avoid-pragma-once. --- .../portability/AvoidPra

[clang] [Clang] Fix missed initializer instantiation bug for variable templates (PR #138122)

2025-05-17 Thread via cfe-commits
https://github.com/dty2 updated https://github.com/llvm/llvm-project/pull/138122 >From 7935656c30762df9a253fdfa9039c1ca10dad190 Mon Sep 17 00:00:00 2001 From: hunter <284050...@qq.com> Date: Thu, 1 May 2025 18:52:34 +0800 Subject: [PATCH] [Clang] Fix missed initializer instantiation bug for varia

[clang] [clang] Use llvm::max_element (NFC) (PR #140435)

2025-05-17 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/140435 None >From b83d98ae890773513065cad304cf6a805e96138c Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sat, 17 May 2025 21:27:54 -0700 Subject: [PATCH] [clang] Use llvm::max_element (NFC) --- clang/lib/C

[clang] [clang] Use llvm::max_element (NFC) (PR #140435)

2025-05-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Kazu Hirata (kazutakahirata) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/140435.diff 4 Files Affected: - (modified) clang/lib/CodeGen/CGOpenMPRuntime.cpp (+1-2) - (modified) clang/lib/CodeGen/CodeGenPGO.cp

[clang-tools-extra] [clang-tidy] Add avoid-pragma-once. (PR #140388)

2025-05-17 Thread Tommy Chen via cfe-commits
https://github.com/dl8sd11 updated https://github.com/llvm/llvm-project/pull/140388 >From 5bc074dadddb094bf954388a95ecb818abe17b56 Mon Sep 17 00:00:00 2001 From: dl8sd11 Date: Sat, 17 May 2025 17:23:26 + Subject: [PATCH 1/4] [clang-tidy] Add avoid-pragma-once. --- .../portability/AvoidPra

[clang] [libclang/python] Add typing annotations for the Type class (PR #140378)

2025-05-17 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll commented: Our error-handling story is bad and inconsistent, but that's out of scope of this PR https://github.com/llvm/llvm-project/pull/140378 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/

[clang] [libclang/python] Add typing annotations for the Type class (PR #140378)

2025-05-17 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll edited https://github.com/llvm/llvm-project/pull/140378 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libclang/python] Add typing annotations for the Type class (PR #140378)

2025-05-17 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll approved this pull request. https://github.com/llvm/llvm-project/pull/140378 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [AST] Remove "const" from "const ArrayRef" (NFC) (PR #140437)

2025-05-17 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/140437 None >From 0226419ba795d16457c9a6aa45c4b89c20d4494b Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sat, 17 May 2025 22:31:37 -0700 Subject: [PATCH] [AST] Remove "const" from "const ArrayRef" (NFC) ---

[clang] [AST] Remove "const" from "const ArrayRef" (NFC) (PR #140437)

2025-05-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/140437.diff 1 Files Affected: - (modified) clang/include/clang/AST/ExprCXX.h (+2-2) ``diff diff --git a/clang/include/clang/AST/Ex

[clang-tools-extra] [clang-tidy] Add avoid-pragma-once. (PR #140388)

2025-05-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Tommy Chen (dl8sd11) Changes #139618 --- Full diff: https://github.com/llvm/llvm-project/pull/140388.diff 9 Files Affected: - (added) clang-tools-extra/clang-tidy/portability/AvoidPragmaOnceCheck.cpp (+49) - (added) clan

[clang-tools-extra] [clang-tidy] Add avoid-pragma-once. (PR #140388)

2025-05-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: Tommy Chen (dl8sd11) Changes #139618 --- Full diff: https://github.com/llvm/llvm-project/pull/140388.diff 9 Files Affected: - (added) clang-tools-extra/clang-tidy/portability/AvoidPragmaOnceCheck.cpp (+49) - (added) clang-tools

[clang-tools-extra] [clang-tidy] Add avoid-pragma-once. (PR #140388)

2025-05-17 Thread Tommy Chen via cfe-commits
https://github.com/dl8sd11 ready_for_review https://github.com/llvm/llvm-project/pull/140388 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][bytecode] Add a scope to function calls (PR #140441)

2025-05-17 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/140441 We need a place to destroy the temporaries created for call arguments. >From 47a04ed14736a66d6f437e704322397ca3b2d255 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Fri, 16 May 2025 12:47:3

[clang] [clang][bytecode] Add a scope to function calls (PR #140441)

2025-05-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes We need a place to destroy the temporaries created for call arguments. --- Full diff: https://github.com/llvm/llvm-project/pull/140441.diff 3 Files Affected: - (modified) clang/lib/AST/ByteCode/Compiler.cp

[clang-tools-extra] [clang-tidy] Add avoid-pragma-once. (PR #140388)

2025-05-17 Thread Tommy Chen via cfe-commits
@@ -0,0 +1,5 @@ +// RUN: %check_clang_tidy %s portability-avoid-pragma-once %t \ +// RUN: -- -- -isystem %S/Inputs/avoid-pragma-once + +#include +// CHECK-MESSAGES: :[[@LINE-1]]:1: warning: Avoid pragma once. [portability-avoid-pragma-once] dl8sd11 wrote: Tha

[clang] [AST] Remove "const" from "const ArrayRef" (NFC) (PR #140437)

2025-05-17 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. https://github.com/llvm/llvm-project/pull/140437 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

<    1   2