[clang] [clang-format] Handle Java text blocks (PR #141334)

2025-05-25 Thread Björn Schäpers via cfe-commits
https://github.com/HazardyKnusperkeks approved this pull request. https://github.com/llvm/llvm-project/pull/141334 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libcxx] [Clang] Add __builtin_common_reference (PR #121199)

2025-05-25 Thread via cfe-commits
@@ -3231,6 +3241,230 @@ static QualType builtinCommonTypeImpl(Sema &S, TemplateName BaseTemplate, } } +static QualType CopyCV(QualType From, QualType To) { + if (From.isConstQualified()) +To.addConst(); + if (From.isVolatileQualified()) +To.addVolatile(); + retur

[clang] replace the extension with the right functions (PR #141110)

2025-05-25 Thread Sean Perry via cfe-commits
https://github.com/perry-ca closed https://github.com/llvm/llvm-project/pull/141110 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] d2eec93 - replace the extension with the right functions (#141110)

2025-05-25 Thread via cfe-commits
Author: Sean Perry Date: 2025-05-25T15:07:20-04:00 New Revision: d2eec93f7c652946e98b4c872ddf1d353b28dabe URL: https://github.com/llvm/llvm-project/commit/d2eec93f7c652946e98b4c872ddf1d353b28dabe DIFF: https://github.com/llvm/llvm-project/commit/d2eec93f7c652946e98b4c872ddf1d353b28dabe.diff LO

[clang] [ByteCode] Drop const from a return type (NFC) (PR #141415)

2025-05-25 Thread Tim Gymnich via cfe-commits
https://github.com/tgymnich approved this pull request. https://github.com/llvm/llvm-project/pull/141415 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Driver] Use StringRef::consume_front (NFC) (PR #141412)

2025-05-25 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `lldb-aarch64-windows` running on `linaro-armv8-windows-msvc-05` while building `clang` at step 6 "test". Full details are available at: https://lab.llvm.org/buildbot/#/builders/141/builds/8996 Here is the relevant piece of

[clang] [CIR] Upstream global initialization for ComplexType (PR #141369)

2025-05-25 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/141369 >From 3a8bcd052d25d138b3a9a53bbcc69d48500b4b41 Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Sat, 24 May 2025 14:18:06 +0200 Subject: [PATCH 1/3] [CIR] Upstream global initialization for ComplexType --

[clang] [CIR] Upstream global initialization for ComplexType (PR #141369)

2025-05-25 Thread Henrich Lauko via cfe-commits
@@ -276,4 +276,38 @@ def ConstPtrAttr : CIR_Attr<"ConstPtr", "ptr", [TypedAttrInterface]> { }]; } +//===--===// +// ConstComplexAttr +//===---

[clang] [CIR] Upstream global initialization for ComplexType (PR #141369)

2025-05-25 Thread Henrich Lauko via cfe-commits
@@ -226,6 +227,42 @@ mlir::Value CIRAttrToValue::visitCirAttr(cir::IntAttr intAttr) { loc, converter->convertType(intAttr.getType()), intAttr.getValue()); } +/// FPAttr visitor. +mlir::Value CIRAttrToValue::visitCirAttr(cir::FPAttr fltAttr) { + mlir::Location loc = par

[clang] [CIR] Upstream global initialization for ComplexType (PR #141369)

2025-05-25 Thread Henrich Lauko via cfe-commits
@@ -385,6 +385,13 @@ mlir::Type CIRGenTypes::convertType(QualType type) { break; } + case Type::Complex: { +const ComplexType *ct = cast(ty); +mlir::Type elementTy = convertType(ct->getElementType()); xlauko wrote: ```suggestion const auto

[clang] [CIR] Upstream global initialization for ComplexType (PR #141369)

2025-05-25 Thread Henrich Lauko via cfe-commits
@@ -231,7 +231,8 @@ static LogicalResult checkConstantTypes(mlir::Operation *op, mlir::Type opType, } if (isa(attrType)) { -if (isa(opType)) +if (isa( +opType)) return success(); return op->emitOpError("zero expects struct or array type");

[clang-tools-extra] [clang-tidy] Remove unused includes (NFC) (PR #141420)

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

[clang-tools-extra] ba007a6 - [clang-tidy] Remove unused includes (NFC) (#141420)

2025-05-25 Thread via cfe-commits
Author: Kazu Hirata Date: 2025-05-25T10:55:36-07:00 New Revision: ba007a60d07fb4ac685c8bca7b7a18b870e287b2 URL: https://github.com/llvm/llvm-project/commit/ba007a60d07fb4ac685c8bca7b7a18b870e287b2 DIFF: https://github.com/llvm/llvm-project/commit/ba007a60d07fb4ac685c8bca7b7a18b870e287b2.diff L

[clang] [Sema] Remove unused includes (NFC) (PR #141419)

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

[clang] 12af64d - [Sema] Remove unused includes (NFC) (#141419)

2025-05-25 Thread via cfe-commits
Author: Kazu Hirata Date: 2025-05-25T10:55:32-07:00 New Revision: 12af64d0d7dedfcee6da3c458edda64884e8f3bb URL: https://github.com/llvm/llvm-project/commit/12af64d0d7dedfcee6da3c458edda64884e8f3bb DIFF: https://github.com/llvm/llvm-project/commit/12af64d0d7dedfcee6da3c458edda64884e8f3bb.diff L

[clang] [CodeGen] Remove unused includes (NFC) (PR #141418)

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

[clang] 8075c15 - [CodeGen] Remove unused includes (NFC) (#141418)

2025-05-25 Thread via cfe-commits
Author: Kazu Hirata Date: 2025-05-25T10:55:28-07:00 New Revision: 8075c15f54d5d6c6b9f5e452c13814078a0a0397 URL: https://github.com/llvm/llvm-project/commit/8075c15f54d5d6c6b9f5e452c13814078a0a0397 DIFF: https://github.com/llvm/llvm-project/commit/8075c15f54d5d6c6b9f5e452c13814078a0a0397.diff L

[clang] [StaticAnalyzer] Drop const from a return type (NFC) (PR #141414)

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

[clang] [AST] Remove unused includes (NFC) (PR #141417)

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

[clang] 01138d3 - [AST] Remove unused includes (NFC) (#141417)

2025-05-25 Thread via cfe-commits
Author: Kazu Hirata Date: 2025-05-25T10:55:25-07:00 New Revision: 01138d3f6518c08fe14a527c21c54aefef0e6f57 URL: https://github.com/llvm/llvm-project/commit/01138d3f6518c08fe14a527c21c54aefef0e6f57 DIFF: https://github.com/llvm/llvm-project/commit/01138d3f6518c08fe14a527c21c54aefef0e6f57.diff L

[clang] 1efa366 - [StaticAnalyzer] Drop const from a return type (NFC) (#141414)

2025-05-25 Thread via cfe-commits
Author: Kazu Hirata Date: 2025-05-25T10:55:18-07:00 New Revision: 1efa366c8717ac5770803f1f4bbad65454009cee URL: https://github.com/llvm/llvm-project/commit/1efa366c8717ac5770803f1f4bbad65454009cee DIFF: https://github.com/llvm/llvm-project/commit/1efa366c8717ac5770803f1f4bbad65454009cee.diff L

[clang] [TableGen] Use StringRef::contains (NFC) (PR #141413)

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

[clang] f4b311b - [TableGen] Use StringRef::contains (NFC) (#141413)

2025-05-25 Thread via cfe-commits
Author: Kazu Hirata Date: 2025-05-25T10:55:14-07:00 New Revision: f4b311b5274ceb5d874b13c0daf914dd74c853f6 URL: https://github.com/llvm/llvm-project/commit/f4b311b5274ceb5d874b13c0daf914dd74c853f6 DIFF: https://github.com/llvm/llvm-project/commit/f4b311b5274ceb5d874b13c0daf914dd74c853f6.diff L

[clang] [Driver] Use StringRef::consume_front (NFC) (PR #141412)

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

[clang] 031cf05 - [Driver] Use StringRef::consume_front (NFC) (#141412)

2025-05-25 Thread via cfe-commits
Author: Kazu Hirata Date: 2025-05-25T10:55:11-07:00 New Revision: 031cf05f01157f0e4aea1fb546a052525248f74c URL: https://github.com/llvm/llvm-project/commit/031cf05f01157f0e4aea1fb546a052525248f74c DIFF: https://github.com/llvm/llvm-project/commit/031cf05f01157f0e4aea1fb546a052525248f74c.diff L

[clang] [StaticAnalyzer] Drop const from a return type (NFC) (PR #141414)

2025-05-25 Thread Kazu Hirata via cfe-commits
@@ -537,7 +537,7 @@ class StdLibraryFunctionsChecker /// a later bug report created by ErrnoChecker. /// Empty return value means that 'errno' related bug may not happen from /// the current analyzed function. -virtual const std::string describe(CheckerContext &

[clang] [StaticAnalyzer] Drop const from a return type (NFC) (PR #141414)

2025-05-25 Thread Matt Arsenault via cfe-commits
@@ -537,7 +537,7 @@ class StdLibraryFunctionsChecker /// a later bug report created by ErrnoChecker. /// Empty return value means that 'errno' related bug may not happen from /// the current analyzed function. -virtual const std::string describe(CheckerContext &

[clang] [StaticAnalyzer] Drop const from a return type (NFC) (PR #141414)

2025-05-25 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm approved this pull request. https://github.com/llvm/llvm-project/pull/141414 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Sema] Remove unused includes (NFC) (PR #141419)

2025-05-25 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm approved this pull request. https://github.com/llvm/llvm-project/pull/141419 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [AST] Remove unused includes (NFC) (PR #141417)

2025-05-25 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm approved this pull request. https://github.com/llvm/llvm-project/pull/141417 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Remove unused includes (NFC) (PR #141420)

2025-05-25 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm approved this pull request. https://github.com/llvm/llvm-project/pull/141420 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [TableGen] Use StringRef::contains (NFC) (PR #141413)

2025-05-25 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm approved this pull request. https://github.com/llvm/llvm-project/pull/141413 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [StaticAnalyzer] Drop const from a return type (NFC) (PR #141414)

2025-05-25 Thread Balazs Benics via cfe-commits
https://github.com/steakhal approved this pull request. https://github.com/llvm/llvm-project/pull/141414 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Driver] Use StringRef::consume_front (NFC) (PR #141412)

2025-05-25 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm approved this pull request. https://github.com/llvm/llvm-project/pull/141412 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CodeGen] Remove unused includes (NFC) (PR #141418)

2025-05-25 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm approved this pull request. https://github.com/llvm/llvm-project/pull/141418 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CodeGen] Remove unused includes (NFC) (PR #141418)

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

[clang] [Sema] Remove unused includes (NFC) (PR #141419)

2025-05-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-backend-directx Author: Kazu Hirata (kazutakahirata) Changes These are identified by misc-include-cleaner. I've filtered out those that break builds. Also, I'm staying away from llvm-config.h, config.h, and Compiler.h, which

[clang] [TableGen] Use StringRef::contains (NFC) (PR #141413)

2025-05-25 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/141413 None >From 7a9563378554901d70f08a38355e858465784f32 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sat, 24 May 2025 18:59:05 -0700 Subject: [PATCH] [TableGen] Use StringRef::contains (NFC) --- clang/

[clang-tools-extra] [clang-tidy] Remove unused includes (NFC) (PR #141420)

2025-05-25 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/141420 These are identified by misc-include-cleaner. I've filtered out those that break builds. Also, I'm staying away from llvm-config.h, config.h, and Compiler.h, which likely cause platform- or compiler-spec

[clang-tools-extra] [clang-tidy] Remove unused includes (NFC) (PR #141420)

2025-05-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: Kazu Hirata (kazutakahirata) Changes These are identified by misc-include-cleaner. I've filtered out those that break builds. Also, I'm staying away from llvm-config.h, config.h, and Compiler.h, which likely cause platform- or compil

[clang-tools-extra] [clang-tidy] Remove unused includes (NFC) (PR #141420)

2025-05-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Kazu Hirata (kazutakahirata) Changes These are identified by misc-include-cleaner. I've filtered out those that break builds. Also, I'm staying away from llvm-config.h, config.h, and Compiler.h, which likely cause platform- or

[clang] [CodeGen] Remove unused includes (NFC) (PR #141418)

2025-05-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-amdgpu Author: Kazu Hirata (kazutakahirata) Changes These are identified by misc-include-cleaner. I've filtered out those that break builds. Also, I'm staying away from llvm-config.h, config.h, and Compiler.h, which likely cause platform- or co

[clang] [CodeGen] Remove unused includes (NFC) (PR #141418)

2025-05-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes These are identified by misc-include-cleaner. I've filtered out those that break builds. Also, I'm staying away from llvm-config.h, config.h, and Compiler.h, which likely cause platform- or compiler-sp

[clang] [Sema] Remove unused includes (NFC) (PR #141419)

2025-05-25 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/141419 These are identified by misc-include-cleaner. I've filtered out those that break builds. Also, I'm staying away from llvm-config.h, config.h, and Compiler.h, which likely cause platform- or compiler-spec

[clang] [AST] Remove unused includes (NFC) (PR #141417)

2025-05-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes These are identified by misc-include-cleaner. I've filtered out those that break builds. Also, I'm staying away from llvm-config.h, config.h, and Compiler.h, which likely cause platform- or compiler-sp

[clang] [CodeGen] Remove unused includes (NFC) (PR #141418)

2025-05-25 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/141418 These are identified by misc-include-cleaner. I've filtered out those that break builds. Also, I'm staying away from llvm-config.h, config.h, and Compiler.h, which likely cause platform- or compiler-spec

[clang] [AST] Remove unused includes (NFC) (PR #141417)

2025-05-25 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/141417 These are identified by misc-include-cleaner. I've filtered out those that break builds. Also, I'm staying away from llvm-config.h, config.h, and Compiler.h, which likely cause platform- or compiler-spec

[clang] [ByteCode] Drop const from a return type (NFC) (PR #141415)

2025-05-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/141415.diff 1 Files Affected: - (modified) clang/lib/AST/ByteCode/Function.h (+1-1) ``diff diff --git a/clang/lib/AST/ByteCode/Fun

[clang] [Driver] Use StringRef::consume_front (NFC) (PR #141412)

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

[clang] [StaticAnalyzer] Drop const from a return type (NFC) (PR #141414)

2025-05-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/141414.diff 1 Files Affected: - (modified) clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp (+3-3) ``diff diff --

[clang] [StaticAnalyzer] Drop const from a return type (NFC) (PR #141414)

2025-05-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-static-analyzer-1 Author: Kazu Hirata (kazutakahirata) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/141414.diff 1 Files Affected: - (modified) clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp (+3-3)

[clang] [ByteCode] Drop const from a return type (NFC) (PR #141415)

2025-05-25 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/141415 None >From 9300bcb2f81f3bce140fca25b2f96544acec9e79 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sat, 24 May 2025 20:41:08 -0700 Subject: [PATCH] [ByteCode] Drop const from a return type (NFC) ---

[clang] [TableGen] Use StringRef::contains (NFC) (PR #141413)

2025-05-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/141413.diff 1 Files Affected: - (modified) clang/utils/TableGen/SveEmitter.cpp (+1-3) ``diff diff --git a/clang/utils/TableGen/Sve

[clang] [StaticAnalyzer] Drop const from a return type (NFC) (PR #141414)

2025-05-25 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/141414 None >From eea35709eba0ed5d166ff16e73bffb466892992e Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sat, 24 May 2025 19:28:27 -0700 Subject: [PATCH] [StaticAnalyzer] Drop const from a return type (NFC)

[clang] [Driver] Use StringRef::consume_front (NFC) (PR #141412)

2025-05-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/141412.diff 1 Files Affected: - (modified) clang/lib/Driver/ToolChains/Clang.cpp (+2-2) ``diff diff --git a/clang/lib/Driver/ToolC

[clang] [Driver] Use StringRef::consume_front (NFC) (PR #141412)

2025-05-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Kazu Hirata (kazutakahirata) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/141412.diff 1 Files Affected: - (modified) clang/lib/Driver/ToolChains/Clang.cpp (+2-2) ``diff diff --git a/clang/lib/Drive

[clang] [Driver] Use StringRef::consume_front (NFC) (PR #141412)

2025-05-25 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/141412 None >From 6872bfb8f44771df2edf29245fcce78f0df178a1 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sat, 24 May 2025 18:52:40 -0700 Subject: [PATCH] [Driver] Use StringRef::consume_front (NFC) --- cla

[clang] 7511107 - Use emplace_back instead of push_back (NFC)

2025-05-25 Thread via cfe-commits
Author: GkvJwa Date: 2025-05-26T00:38:23+08:00 New Revision: 7511107d60a9115ce161eaf556e1bbac6eba9bfe URL: https://github.com/llvm/llvm-project/commit/7511107d60a9115ce161eaf556e1bbac6eba9bfe DIFF: https://github.com/llvm/llvm-project/commit/7511107d60a9115ce161eaf556e1bbac6eba9bfe.diff LOG: U

[clang] [libcxx] [Clang] Add __builtin_common_reference (PR #121199)

2025-05-25 Thread A. Jiang via cfe-commits
@@ -3231,6 +3241,230 @@ static QualType builtinCommonTypeImpl(Sema &S, TemplateName BaseTemplate, } } +static QualType CopyCV(QualType From, QualType To) { + if (From.isConstQualified()) +To.addConst(); + if (From.isVolatileQualified()) +To.addVolatile(); + retur

[clang] [CIR] Upstream ShuffleDynamicOp for VectorType (PR #141411)

2025-05-25 Thread Amr Hesham via cfe-commits
AmrDeveloper wrote: There will be a follow-up PR for folding https://github.com/llvm/llvm-project/pull/141411 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream ShuffleDynamicOp for VectorType (PR #141411)

2025-05-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Amr Hesham (AmrDeveloper) Changes This change adds support for the Dynamic Shuffle op for VectorType Issue https://github.com/llvm/llvm-project/issues/136487 --- Full diff: https://github.com/llvm/llvm-project/pull/141411.diff 8 Files A

[clang] [CIR] Upstream ShuffleDynamicOp for VectorType (PR #141411)

2025-05-25 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper created https://github.com/llvm/llvm-project/pull/141411 This change adds support for the Dynamic Shuffle op for VectorType Issue https://github.com/llvm/llvm-project/issues/136487 >From 12295ee3a5613d7473ab33a4579015a2217617a0 Mon Sep 17 00:00:00 2001 From: Amr

[clang-tools-extra] [clangd] Add tweak to override pure virtuals (PR #139348)

2025-05-25 Thread Marco Maia via cfe-commits
marcogmaia wrote: Ping https://github.com/llvm/llvm-project/pull/139348 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [NFC][clangd][test] add clang-tidy config to ensure test cases sandbox (PR #141410)

2025-05-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Congcong Cai (HerrCai0907) Changes Under previous test setup, the test result will be influenced by clang-tidy file in parent folder (between llvm-projects root and build folder). It is inconventient and leads some confusion.

[clang-tools-extra] [NFC][clangd][test] add clang-tidy config to ensure test cases sandbox (PR #141410)

2025-05-25 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 created https://github.com/llvm/llvm-project/pull/141410 Under previous test setup, the test result will be influenced by clang-tidy file in parent folder (between llvm-projects root and build folder). It is inconventient and leads some confusion. This PR wants t

[clang] [clang] Fix a typo in documentation (PR #141382)

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

[clang] 1def867 - [clang] Fix a typo in documentation (#141382)

2025-05-25 Thread via cfe-commits
Author: Kazu Hirata Date: 2025-05-25T08:19:57-07:00 New Revision: 1def8670d4979d09ac113cc8a5126350fd3169b7 URL: https://github.com/llvm/llvm-project/commit/1def8670d4979d09ac113cc8a5126350fd3169b7 DIFF: https://github.com/llvm/llvm-project/commit/1def8670d4979d09ac113cc8a5126350fd3169b7.diff L

[clang-tools-extra] [clang-tidy] support query based custom check (PR #131804)

2025-05-25 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 updated https://github.com/llvm/llvm-project/pull/131804 >From a686695e6691fcb824b2055c3dfa8f0fd3727355 Mon Sep 17 00:00:00 2001 From: DeNiCoN Date: Mon, 17 Mar 2025 08:04:32 + Subject: [PATCH 01/12] origin pr --- clang-tools-extra/clang-tidy/CMakeLists.txt

[clang] [Clang][AST] Fix HandleLValueBase to deal with references (PR #140105)

2025-05-25 Thread Tom Stellard via cfe-commits
tstellar wrote: @frederick-vs-ja Were you able to create a PR for this backport? https://github.com/llvm/llvm-project/pull/140105 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] support query based custom check (PR #131804)

2025-05-25 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 converted_to_draft https://github.com/llvm/llvm-project/pull/131804 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream global initialization for ComplexType (PR #141369)

2025-05-25 Thread Henrich Lauko via cfe-commits
@@ -577,12 +577,31 @@ mlir::Attribute ConstantEmitter::tryEmitPrivate(const APValue &value, case APValue::Union: cgm.errorNYI("ConstExprEmitter::tryEmitPrivate struct or union"); return {}; - case APValue::FixedPoint: case APValue::ComplexInt: - case APValue::Co

[clang] [CIR] Upstream global initialization for ComplexType (PR #141369)

2025-05-25 Thread Henrich Lauko via cfe-commits
@@ -577,12 +577,31 @@ mlir::Attribute ConstantEmitter::tryEmitPrivate(const APValue &value, case APValue::Union: cgm.errorNYI("ConstExprEmitter::tryEmitPrivate struct or union"); return {}; - case APValue::FixedPoint: case APValue::ComplexInt: - case APValue::Co

[clang] [CIR] Upstream global initialization for ComplexType (PR #141369)

2025-05-25 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/141369 >From 3a8bcd052d25d138b3a9a53bbcc69d48500b4b41 Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Sat, 24 May 2025 14:18:06 +0200 Subject: [PATCH 1/2] [CIR] Upstream global initialization for ComplexType --

[clang] [llvm] Add macro to suppress -Wunnecessary-virtual-specifier (PR #139614)

2025-05-25 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `bolt-x86_64-ubuntu-nfc` running on `bolt-worker` while building `clang,llvm` at step 7 "build-bolt". Full details are available at: https://lab.llvm.org/buildbot/#/builders/92/builds/19182 Here is the relevant piece of the b

[clang] [llvm] Add macro to suppress -Wunnecessary-virtual-specifier (PR #139614)

2025-05-25 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `bolt-x86_64-ubuntu-shared` running on `bolt-worker` while building `clang,llvm` at step 5 "build-bolt". Full details are available at: https://lab.llvm.org/buildbot/#/builders/151/builds/5818 Here is the relevant piece of th

[clang] [llvm] Add macro to suppress -Wunnecessary-virtual-specifier (PR #139614)

2025-05-25 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `bolt-x86_64-ubuntu-dylib` running on `bolt-worker` while building `clang,llvm` at step 5 "build-bolt". Full details are available at: https://lab.llvm.org/buildbot/#/builders/119/builds/5689 Here is the relevant piece of the

[clang] [Clang][AST] Fix HandleLValueBase to deal with references (PR #140105)

2025-05-25 Thread A. Jiang via cfe-commits
frederick-vs-ja wrote: > @frederick-vs-ja Were you able to create a PR for this backport? I created #140246 for this backport, and that PR is already merged. https://github.com/llvm/llvm-project/pull/140105 ___ cfe-commits mailing list cfe-commits@lis

[clang] [libcxx] [Clang] Add __builtin_common_reference (PR #121199)

2025-05-25 Thread via cfe-commits
huixie90 wrote: FWIW, I created patch https://github.com/llvm/llvm-project/pull/141408 to implement the libc++ counter part of the missing bit. So can i request to merge this patch after landing of my patch? the benifits are : - Avoid behaviour differences between the two branches - having mor

[clang] [CIR] Upstream global initialization for ComplexType (PR #141369)

2025-05-25 Thread Henrich Lauko via cfe-commits
@@ -577,12 +577,31 @@ mlir::Attribute ConstantEmitter::tryEmitPrivate(const APValue &value, case APValue::Union: cgm.errorNYI("ConstExprEmitter::tryEmitPrivate struct or union"); return {}; - case APValue::FixedPoint: case APValue::ComplexInt: - case APValue::Co

[clang] [NFC] Fix bad link in `clang/lib/Sema/SemaTypeTraits.cpp` (PR #141405)

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

[clang] [NFC] Fix bad link in `clang/lib/Sema/SemaTypeTraits.cpp` (PR #141405)

2025-05-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Connector Switch (c8ef) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/141405.diff 1 Files Affected: - (modified) clang/lib/Sema/SemaTypeTraits.cpp (+1-1) ``diff diff --git a/clang/lib/Sema/SemaTypeTraits.c

[clang] [NFC] Fix bad link in `clang/lib/Sema/SemaTypeTraits.cpp` (PR #141405)

2025-05-25 Thread Connector Switch via cfe-commits
https://github.com/c8ef created https://github.com/llvm/llvm-project/pull/141405 None >From 739435d262f0da627b6ae9dbdba7065f16a56ddf Mon Sep 17 00:00:00 2001 From: Connector Switch Date: Sun, 25 May 2025 19:53:39 +0800 Subject: [PATCH] fix bad link --- clang/lib/Sema/SemaTypeTraits.cpp | 2 +-

[clang-tools-extra] [clang-tidy] properly handle private move constructors in `modernize-pass-by-value` check (PR #141304)

2025-05-25 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor edited https://github.com/llvm/llvm-project/pull/141304 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] properly handle private move constructors in `modernize-pass-by-value` check (PR #141304)

2025-05-25 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor edited https://github.com/llvm/llvm-project/pull/141304 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] properly handle private move constructors in `modernize-pass-by-value` check (PR #141304)

2025-05-25 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor edited https://github.com/llvm/llvm-project/pull/141304 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] properly handle private move constructors in `modernize-pass-by-value` check (PR #141304)

2025-05-25 Thread Baranov Victor via cfe-commits
@@ -225,8 +257,9 @@ void PassByValueCheck::registerMatchers(MatchFinder *Finder) { .bind("Param"), hasDeclaration(cxxConstructorDecl( isCopyConstructor(), unless(isDeleted()), -

[clang-tools-extra] [clang-tidy] properly handle private move constructors in `modernize-pass-by-value` check (PR #141304)

2025-05-25 Thread Piotr Zegar via cfe-commits
@@ -225,8 +257,9 @@ void PassByValueCheck::registerMatchers(MatchFinder *Finder) { .bind("Param"), hasDeclaration(cxxConstructorDecl( isCopyConstructor(), unless(isDeleted()), -

[clang-tools-extra] [clang-tidy] Add check for assignment or comparision operators' operand in `readability-math-missing-parentheses` (PR #141345)

2025-05-25 Thread Piotr Zegar via cfe-commits
https://github.com/PiotrZSL approved this pull request. https://github.com/llvm/llvm-project/pull/141345 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 9a440f8 - [analyzer] Ignore [[clang::flag_enum]] enums in the EnumCastOutOfRange checker (#141232)

2025-05-25 Thread via cfe-commits
Author: Balazs Benics Date: 2025-05-25T11:59:50+02:00 New Revision: 9a440f84773c56d3803f330774acb2b4f471d5b4 URL: https://github.com/llvm/llvm-project/commit/9a440f84773c56d3803f330774acb2b4f471d5b4 DIFF: https://github.com/llvm/llvm-project/commit/9a440f84773c56d3803f330774acb2b4f471d5b4.diff

[clang-tools-extra] [clang-tidy] Fix false positives with deducing this in `readability-convert-member-functions-to-static` check (PR #141391)

2025-05-25 Thread via cfe-commits
https://github.com/flovent updated https://github.com/llvm/llvm-project/pull/141391 >From ed6afd70a94af00cbbfad19a12abce0e01452a1a Mon Sep 17 00:00:00 2001 From: flovent Date: Sun, 25 May 2025 09:37:47 +0800 Subject: [PATCH 1/5] [clang-tidy] fix false positives with deducing this in `readabili

[clang] [analyzer] Ignore [[clang::flag_enum]] enums in the EnumCastOutOfRange checker (PR #141232)

2025-05-25 Thread Balazs Benics via cfe-commits
https://github.com/steakhal closed https://github.com/llvm/llvm-project/pull/141232 ___ 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 check for assignment or comparision operators' operand in `readability-math-missing-parentheses` (PR #141345)

2025-05-25 Thread via cfe-commits
https://github.com/flovent updated https://github.com/llvm/llvm-project/pull/141345 >From e6c5673a6b7b7f73ddf4b1f14391757313a65485 Mon Sep 17 00:00:00 2001 From: flovent Date: Sat, 24 May 2025 21:29:53 +0800 Subject: [PATCH 1/2] [clang-tidy] Add check for assignment or comparision operators' o

[clang-tools-extra] [clang-tidy] Fix false positive for cppcoreguidelines-pro-bounds-pointer-arithmetic (PR #127394)

2025-05-25 Thread via cfe-commits
https://github.com/flovent updated https://github.com/llvm/llvm-project/pull/127394 >From 94ef3c7d8d2ea4a671c553fbcdf3c60bd1fc6ab8 Mon Sep 17 00:00:00 2001 From: flovent Date: Sun, 16 Feb 2025 21:07:55 +0800 Subject: [PATCH 1/4] [clang-tidy] Fix false positive for cppcoreguidelines-pro-bounds-

[clang-tools-extra] [clang-tidy] Fix false positive for cppcoreguidelines-pro-bounds-pointer-arithmetic (PR #127394)

2025-05-25 Thread via cfe-commits
https://github.com/flovent updated https://github.com/llvm/llvm-project/pull/127394 >From f7439943d138bdfee87f77a1c44b3d7d26618129 Mon Sep 17 00:00:00 2001 From: flovent Date: Sun, 16 Feb 2025 21:07:55 +0800 Subject: [PATCH 1/4] [clang-tidy] Fix false positive for cppcoreguidelines-pro-bounds-

[clang-tools-extra] [clang-tidy] Fix false positives with deducing this in `readability-convert-member-functions-to-static` check (PR #141391)

2025-05-25 Thread via cfe-commits
https://github.com/flovent updated https://github.com/llvm/llvm-project/pull/141391 >From 3a7260050f8e8dc271c7fe2a5ec937026136fb6b Mon Sep 17 00:00:00 2001 From: fubowen Date: Sun, 25 May 2025 09:37:47 +0800 Subject: [PATCH 1/5] [clang-tidy] fix false positives with deducing this in `readabili

[clang-tools-extra] [clang-tidy] Fix false positives with deducing this in `readability-convert-member-functions-to-static` check (PR #141391)

2025-05-25 Thread Baranov Victor via cfe-commits
@@ -79,10 +79,10 @@ void ConvertMemberFunctionsToStatic::registerMatchers(MatchFinder *Finder) { cxxMethodDecl( isDefinition(), isUserProvided(), unless(anyOf( - isExpansionInSystemHeader(), isVirtual(), isStatic(), - hasTriv

[clang-tools-extra] [clang-tidy] Fix false positives with deducing this in `readability-convert-member-functions-to-static` check (PR #141391)

2025-05-25 Thread Baranov Victor via cfe-commits
@@ -0,0 +1,22 @@ +// RUN: %check_clang_tidy -std=c++23 %s readability-convert-member-functions-to-static %t vbvictor wrote: ```suggestion // RUN: %check_clang_tidy -std=c++23-or-later %s readability-convert-member-functions-to-static %t ``` https://github.com/

[clang-tools-extra] [clang-tidy] Fix false positives with deducing this in `readability-convert-member-functions-to-static` check (PR #141391)

2025-05-25 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor edited https://github.com/llvm/llvm-project/pull/141391 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Fix false positives with deducing this in `readability-convert-member-functions-to-static` check (PR #141391)

2025-05-25 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/141391 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Link libgcc_s.1.dylib when building for macOS 10.5 and older (PR #141401)

2025-05-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: None (Un1q32) Changes There are a lot of symbols that were moved from libgcc_s into libSystem in 10.6, like libunwind and some builtins. We already do this for iOS versions < 5.0 for the same reason. This matches the behavior of t

  1   2   3   4   5   6   7   8   9   10   >