[clang] [Clang][Sema] Apply CWG400 'Using-declarations and the "struct hack"' to C++98 mode (PR #143492)

2025-06-10 Thread Yanzuo Liu via cfe-commits
https://github.com/zwuis created https://github.com/llvm/llvm-project/pull/143492 It seems that we applied CWG400 to C++11 and newer version. But CWG400 should also be applied to C++98. >From 658f3d3cb72ff9fbdb2315f894f39956eeabf135 Mon Sep 17 00:00:00 2001 From: Yanzuo Liu Date: Tue, 10 Jun

[clang] [Clang][Sema] Apply CWG400 'Using-declarations and the "struct hack"' to C++98 mode (PR #143492)

2025-06-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Yanzuo Liu (zwuis) Changes It seems that we applied CWG400 to C++11 and newer version. But CWG400 should also be applied to C++98. --- Full diff: https://github.com/llvm/llvm-project/pull/143492.diff 5 Files Affected: - (modified) clan

[clang] 9312d5b - [llvm][RISCV] Handle required features of intrinsic correctly (#143062)

2025-06-10 Thread via cfe-commits
Author: Brandon Wu Date: 2025-06-10T15:59:15+08:00 New Revision: 9312d5beb37208f30118ec7bc42737b1ecead086 URL: https://github.com/llvm/llvm-project/commit/9312d5beb37208f30118ec7bc42737b1ecead086 DIFF: https://github.com/llvm/llvm-project/commit/9312d5beb37208f30118ec7bc42737b1ecead086.diff LO

[clang] [clang-format] Add options to control wrapped lambda brace indent. (PR #143249)

2025-06-10 Thread Owen Pan via cfe-commits
owenca wrote: See https://clang.llvm.org/docs/ClangFormatStyleOptions.html#adding-additional-style-options. IMO, when it's difficult to name the new options, it will be hard for people to understand what they do. @mydeveloperday WDYT? https://github.com/llvm/llvm-project/pull/143249 _

[clang] [clang][python][test] Check if libclang.so is loadable (PR #142353)

2025-06-10 Thread Rainer Orth via cfe-commits
https://github.com/rorth closed https://github.com/llvm/llvm-project/pull/142353 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clangd] [Modules] Fix to correctly handle module dependencies (PR #142828)

2025-06-10 Thread Chuanqi Xu via cfe-commits
ChuanqiXu9 wrote: @fleeting-xx BTW, I think this worth to be backported to 20.x. But we need to fix the above problem first. https://github.com/llvm/llvm-project/pull/142828 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.or

[clang] [clang][python][test] Check if libclang.so is loadable (PR #142353)

2025-06-10 Thread Rainer Orth via cfe-commits
rorth wrote: Superceded by PR #142948. https://github.com/llvm/llvm-project/pull/142353 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Sema] Apply CWG400 'Using-declarations and the "struct hack"' to C++98 mode (PR #143492)

2025-06-10 Thread Yanzuo Liu via cfe-commits
zwuis wrote: I'm not sure if I should modify CWG400 implementation status to "Clang 21". CC @Endilll https://github.com/llvm/llvm-project/pull/143492 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listi

[clang] [Frontend][PCH]-Add support for ignoring PCH options (-ignore-pch). (PR #142409)

2025-06-10 Thread via cfe-commits
https://github.com/MaggieYingYi updated https://github.com/llvm/llvm-project/pull/142409 >From b3dfc5edba4fbe8f219bc420ef8094a7815b4fe4 Mon Sep 17 00:00:00 2001 From: Ying Yi Date: Mon, 2 Jun 2025 10:21:22 +0100 Subject: [PATCH] [Frontend][PCH]-Add support for ignoring PCH options (-ignore-pch

[clang-tools-extra] e65d323 - [clang-tidy] Improve integer comparison by matching valid expressions outside implicitCastExpr (#134188)

2025-06-10 Thread via cfe-commits
Author: David Rivera Date: 2025-06-10T10:57:11+03:00 New Revision: e65d32316646e6203a3f4d4c9921edcddbb1c57d URL: https://github.com/llvm/llvm-project/commit/e65d32316646e6203a3f4d4c9921edcddbb1c57d DIFF: https://github.com/llvm/llvm-project/commit/e65d32316646e6203a3f4d4c9921edcddbb1c57d.diff

[clang] [clang-c] introduce queries on GCC-style inline assembly statements (PR #143424)

2025-06-10 Thread via cfe-commits
https://github.com/dingxiangfei2009 updated https://github.com/llvm/llvm-project/pull/143424 >From 78ee7fe5c988061ea64c3f5b3a0dbea84269d67f Mon Sep 17 00:00:00 2001 From: Xiangfei Ding Date: Mon, 9 Jun 2025 13:57:18 + Subject: [PATCH] [clang-c] introduce queries on GCC-style inline assembly

[clang] [llvm][RISCV] Handle required features of intrinsic correctly (PR #143062)

2025-06-10 Thread Brandon Wu via cfe-commits
https://github.com/4vtomat closed https://github.com/llvm/llvm-project/pull/143062 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NVPTX] Enable OpenCL 3d_image_writes support (PR #143331)

2025-06-10 Thread Sven van Haastregt via cfe-commits
svenvh wrote: This is target specific; perhaps @modiking could review or knows who could review this? https://github.com/llvm/llvm-project/pull/143331 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listi

[clang-tools-extra] [clang-tidy][NFC] fix 'misc-use-internal-linkage' check warnings (PR #143482)

2025-06-10 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor created https://github.com/llvm/llvm-project/pull/143482 Run [misc-use-internal-linkage](https://clang.llvm.org/extra/clang-tidy/checks/misc/use-internal-linkage.html) check over clang-tidy code. In my previous clang-tidy runs, it wasn't included because I used an

[clang-tools-extra] [clang-tidy] Improve integer comparison by matching valid expressions outside implicitCastExpr (PR #134188)

2025-06-10 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor closed https://github.com/llvm/llvm-project/pull/134188 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [-Wunterminated-string-initialization] Handle C string literals ending with explicit '\0' (PR #143487)

2025-06-10 Thread Yanzuo Liu via cfe-commits
@@ -0,0 +1,28 @@ +// RUN: %clang_cc1 -fsyntax-only -verify -Wunterminated-string-initialization %s -x c +// RUN: %clang_cc1 -fsyntax-only -verify -Wunterminated-string-initialization %s -x c++ + + +// In C, the following examples are fine: +#if __cplusplus zwuis

[clang] [clang] fix infinite recursion (PR #143244)

2025-06-10 Thread Mariya Podchishchaeva via cfe-commits
https://github.com/Fznamznon commented: Thank you for the fix, this overall lg. But perhaps a release note makes sense, and I agree with @Sirraide that canonical types need to be stored into the set. https://github.com/llvm/llvm-project/pull/143244 __

[clang] [clang][analyzer] Correct SMT Layer for _BitInt cases refutations (PR #143310)

2025-06-10 Thread Balazs Benics via cfe-commits
steakhal wrote: Before I'd continue my review, I'd like a bit more context about the crash. So we ended up with different "sorts", but I feel like that is because we don't capture implicit conversions that would play the role of widening or matching the operands type like standard arithmetic co

[clang] ecc8b29 - [CIR][NFC] Use actual operand name in adaptor-obtained operands (#143028)

2025-06-10 Thread via cfe-commits
Author: Henrich Lauko Date: 2025-06-10T09:26:08+02:00 New Revision: ecc8b29eda2acc517170e9dde212986ad677cc68 URL: https://github.com/llvm/llvm-project/commit/ecc8b29eda2acc517170e9dde212986ad677cc68 DIFF: https://github.com/llvm/llvm-project/commit/ecc8b29eda2acc517170e9dde212986ad677cc68.diff

[clang] [CIR][NFC] Use actual operand name in adaptor-obtained operands (PR #143028)

2025-06-10 Thread Henrich Lauko via cfe-commits
https://github.com/xlauko closed https://github.com/llvm/llvm-project/pull/143028 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR][NFC] Use actual operand name in adaptor-obtained operands (PR #143028)

2025-06-10 Thread Henrich Lauko via cfe-commits
xlauko wrote: ### Merge activity * **Jun 10, 7:24 AM UTC**: A user started a stack merge that includes this pull request via [Graphite](https://app.graphite.dev/github/pr/llvm/llvm-project/143028). https://github.com/llvm/llvm-project/pull/143028 _

[clang-tools-extra] [clang-tidy][NFC] fix 'misc-use-internal-linkage' check warnings (PR #143482)

2025-06-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Baranov Victor (vbvictor) Changes Run [misc-use-internal-linkage](https://clang.llvm.org/extra/clang-tidy/checks/misc/use-internal-linkage.html) check over clang-tidy code. In my previous clang-tidy runs, it wasn't included b

[clang-tools-extra] Follow style configuration in clangd when inserting missing includes (PR #140594)

2025-06-10 Thread kadir çetinkaya via cfe-commits
kadircet wrote: I am rather worried that we'll lose ability to filter effectively when we match against spelled headers. Maybe the actual use cases in the wild and what I have mind are different, but I would expect users to have a situation like; - they pass a `-Ithird_party/qt/include` in thei

[clang-tools-extra] [clangd] Add tweak to abbreviate function templates (PR #74710)

2025-06-10 Thread Jeremy Stucki via cfe-commits
jeremystucki wrote: How can I move forward here to get a review on this PR? https://github.com/llvm/llvm-project/pull/74710 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clangd] [Modules] Fix to correctly handle module dependencies (PR #142828)

2025-06-10 Thread Chuanqi Xu via cfe-commits
@@ -0,0 +1,96 @@ +# A smoke test to check that a simple dependency chain for modules can work. +# +# FIXME: This fails on the Windows ARM64 build server. Not entirely sure why as it has been tested on +#an ARM64 Windows VM and appears to work there. +# UNSUPPORTED: host=a

[clang] Remove delayed typo expressions (PR #143423)

2025-06-10 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll commented: Changes to DR tests LGTM https://github.com/llvm/llvm-project/pull/143423 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] fix `--unwindlib` option doc (PR #143497)

2025-06-10 Thread via cfe-commits
https://github.com/fee1-dead created https://github.com/llvm/llvm-project/pull/143497 the values it takes should be `libunwind` and not `unwindlib`. >From 966f5da3d62a0b99c02c7f8eb8817a56757ff7c8 Mon Sep 17 00:00:00 2001 From: beef Date: Tue, 10 Jun 2025 17:22:41 +0800 Subject: [PATCH] [clang]

[clang] [clang] fix `--unwindlib` option doc (PR #143497)

2025-06-10 Thread via cfe-commits
github-actions[bot] wrote: Thank you for submitting a Pull Request (PR) to the LLVM Project! This PR will be automatically labeled and the relevant teams will be notified. If you wish to, you can add reviewers by using the "Reviewers" section on this page. If this is not working for you, it

[clang] [Cygwin] va_list must be treated like normal Windows (PR #143115)

2025-06-10 Thread Tomohiro Kashiwada via cfe-commits
https://github.com/kikairoya updated https://github.com/llvm/llvm-project/pull/143115 >From c64472a188825a1d814ea0523a6097d25949d6fb Mon Sep 17 00:00:00 2001 From: kikairoya Date: Sun, 25 May 2025 14:07:29 +0900 Subject: [PATCH 1/3] [Cygwin] va_list must be treated like normal Windows Handling

[clang] [clang] fix `--unwindlib` option doc (PR #143497)

2025-06-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: beef (fee1-dead) Changes the values it takes should be `libunwind` and not `unwindlib`. --- Full diff: https://github.com/llvm/llvm-project/pull/143497.diff 1 Files Affected: - (modified) clang/include/clang/Driver/Options.td (+1-1)

[clang] [KeyInstr][Clang] Atomic ops atoms (PR #141624)

2025-06-10 Thread Orlando Cazalet-Hyams via cfe-commits
OCHyams wrote: Ping https://github.com/llvm/llvm-project/pull/141624 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [RISCV] Cache required extensions string for RVVIntrinsicDef (PR #143503)

2025-06-10 Thread Brandon Wu via cfe-commits
https://github.com/4vtomat created https://github.com/llvm/llvm-project/pull/143503 This prevents many duplicated copies of required extensions string. >From 56de91cf1693b9983ed6828e5daadc94f78e978c Mon Sep 17 00:00:00 2001 From: Brandon Wu Date: Tue, 10 Jun 2025 03:07:12 -0700 Subject: [PATC

[clang] [CIR] Upstream splat op for VectorType (PR #139827)

2025-06-10 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor approved this pull request. https://github.com/llvm/llvm-project/pull/139827 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream support for calling constructors (PR #143579)

2025-06-10 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor closed https://github.com/llvm/llvm-project/pull/143579 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] b9329fe - [CIR] Upstream support for calling constructors (#143579)

2025-06-10 Thread via cfe-commits
Author: Andy Kaylor Date: 2025-06-10T16:50:29-07:00 New Revision: b9329fe88e47741d9c20ab92f892ac52457e6195 URL: https://github.com/llvm/llvm-project/commit/b9329fe88e47741d9c20ab92f892ac52457e6195 DIFF: https://github.com/llvm/llvm-project/commit/b9329fe88e47741d9c20ab92f892ac52457e6195.diff L

[clang] [llvm] [win][x64] Unwind v2 3/n: Add support for requiring unwind v2 to be used (equivalent to MSVC's /d2epilogunwindrequirev2) (PR #143577)

2025-06-10 Thread Eli Friedman via cfe-commits
efriedma-quic wrote: The only code that generates prologues and epilogues is PrologEpilogInserter. There isn't any way to skip the normal codegen codepath. (You can write a naked function, but then you'd be responsible for writing your own unwind directives.) reportFatalInternalError seems

[clang] [Clang][OpenCL] Declare cl_amd_media_ops/cl_amd_media_ops2 builtins with -fdeclare-opencl-builtins (PR #143507)

2025-06-10 Thread Matt Arsenault via cfe-commits
Juan Manuel Martinez =?utf-8?q?Caamaño?= , Juan Manuel Martinez =?utf-8?q?Caamaño?= , Juan Manuel Martinez =?utf-8?q?Caamaño?= Message-ID: In-Reply-To: @@ -0,0 +1,98 @@ +// RUN: %clang_cc1 %s -triple amdgcn-unknown-unknown -verify -pedantic -Wconversion -Werror -fsyntax-only -

[clang-tools-extra] [clang-tidy] Added Conflicting Global Accesses checker (PR #130421)

2025-06-10 Thread Áron Hárnási via cfe-commits
https://github.com/ConcreteCactus updated https://github.com/llvm/llvm-project/pull/130421 From c01a4c0c255bd52bd07a850b9d593128263d4db1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81ron=20H=C3=A1rn=C3=A1si?= Date: Fri, 22 Nov 2024 21:43:04 +0100 Subject: [PATCH] [clang-tidy] Added bugprone-un

[clang-tools-extra] [clang-tidy] Added bugprone-conflicting-global-accesses check (PR #130421)

2025-06-10 Thread Áron Hárnási via cfe-commits
https://github.com/ConcreteCactus edited https://github.com/llvm/llvm-project/pull/130421 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Added bugprone-unsequenced-global-accesses check (PR #130421)

2025-06-10 Thread Áron Hárnási via cfe-commits
https://github.com/ConcreteCactus edited https://github.com/llvm/llvm-project/pull/130421 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Remove separate evaluation step for static class member init. (PR #142713)

2025-06-10 Thread Eli Friedman via cfe-commits
@@ -143,3 +143,8 @@ namespace fold_initializer { const float A::f = __builtin_is_constant_evaluated(); static_assert(fold(A::f == 1.0f)); } + +struct GH99680 { + static const int x = 1/(1-__builtin_is_constant_evaluated()); // expected-error {{in-class initializer for sta

[clang] [CIR] Implement folder for VecCmpOp (PR #143322)

2025-06-10 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/143322 >From 0e26df27ffd6adaeefedfdafd72b565f6648c96f Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Sun, 8 Jun 2025 21:08:14 +0200 Subject: [PATCH 1/3] [CIR] Implement folder for VecCmpOp --- clang/include/c

[clang] Include [[clang::require_explicit_initialization]] warnings in system headers (PR #141133)

2025-06-10 Thread via cfe-commits
higher-performance wrote: Hi all~ where do folks stand on the PR currently, given the last discussion? https://github.com/llvm/llvm-project/pull/141133 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listi

[clang] [CIR] Upstream minimal builtin function call support (PR #142981)

2025-06-10 Thread Sirui Mu via cfe-commits
https://github.com/Lancern edited https://github.com/llvm/llvm-project/pull/142981 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream minimal builtin function call support (PR #142981)

2025-06-10 Thread Sirui Mu via cfe-commits
https://github.com/Lancern approved this pull request. LGTM except 2 nits https://github.com/llvm/llvm-project/pull/142981 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream minimal builtin function call support (PR #142981)

2025-06-10 Thread Sirui Mu via cfe-commits
@@ -0,0 +1,78 @@ +// RUN: %clang_cc1 -std=c++11 -triple x86_64-unknown-linux-gnu -Wno-unused-value -fclangir -emit-cir %s -o %t.cir +// RUN: FileCheck --input-file=%t.cir %s -check-prefix=CIR +// RUN: %clang_cc1 -std=c++11 -triple x86_64-unknown-linux-gnu -Wno-unused-value -fcla

[clang] [CIR] Upstream minimal builtin function call support (PR #142981)

2025-06-10 Thread Sirui Mu via cfe-commits
@@ -229,6 +231,19 @@ class CIRGenBuilderTy : public cir::CIRBaseBuilderTy { cir::IntType getUInt32Ty() { return typeCache.UInt32Ty; } cir::IntType getUInt64Ty() { return typeCache.UInt64Ty; } + cir::ConstantOp getConstInt(mlir::Location loc, llvm::APSInt intVal); + + cir

[clang] Reland: "[Frontend][PCH]-Add support for ignoring PCH options (-ignore-pch). (#142409)" (PR #143614)

2025-06-10 Thread Fangrui Song via cfe-commits
@@ -0,0 +1,19 @@ +// RUN: rm -rf %t +// RUN: mkdir -p %t + +// Create PCH without -ignore-pch. +// RUN: %clang -x c++-header %S/../Modules/Inputs/codegen-flags/foo.h -### 2>&1 | FileCheck %s -check-prefix=CHECK-EMIT-PCH MaskRay wrote: `%S/../` references auxilia

[clang] [llvm] Add support for Windows Secure Hot-Patching (PR #138972)

2025-06-10 Thread via cfe-commits
@@ -0,0 +1,599 @@ +//===-- WindowsHotPatch.cpp - Support for Windows hotpatching -===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[clang] [llvm] Add support for Windows Secure Hot-Patching (PR #138972)

2025-06-10 Thread via cfe-commits
@@ -0,0 +1,599 @@ +//===-- WindowsHotPatch.cpp - Support for Windows hotpatching -===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[clang] [Clang][ByteCode][NFC] Move APInt into pushInteger since it is being passed by value (PR #143578)

2025-06-10 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik updated https://github.com/llvm/llvm-project/pull/143578 >From 09060e9a91842346f106d55b32141b16efe7378d Mon Sep 17 00:00:00 2001 From: Shafik Yaghmour Date: Tue, 10 Jun 2025 10:41:04 -0700 Subject: [PATCH 1/2] [Clang][ByteCode][NFC] Move APInt into pushInteger since i

[clang] [clang][SYCL Upstreaming] Add sycl_external attribute and restrict emitting device code (PR #140282)

2025-06-10 Thread via cfe-commits
@@ -1,128 +1,128 @@ // RUN: %clang_cc1 -triple amdgcn-amd-amdhsa -fsycl-is-device -disable-llvm-passes -emit-llvm %s -o - | FileCheck %s void bar(int &Data) {} -// CHECK: define dso_local void @[[RAW_REF:[a-zA-Z0-9_]+]](ptr noundef nonnull align 4 dereferenceable(4) % +// CHEC

[clang-tools-extra] [clangd] Add tweak to abbreviate function templates (PR #74710)

2025-06-10 Thread Jeremy Stucki via cfe-commits
https://github.com/jeremystucki updated https://github.com/llvm/llvm-project/pull/74710 >From 4a32f94492d69af5244c276624abc95bca0ef166 Mon Sep 17 00:00:00 2001 From: Jeremy Stucki Date: Fri, 27 Oct 2023 16:33:13 +0200 Subject: [PATCH 1/4] [clangd] Add tweak to abbreviate function templates Co-

[clang-tools-extra] [clangd] Add tweak to abbreviate function templates (PR #74710)

2025-06-10 Thread Jeremy Stucki via cfe-commits
@@ -0,0 +1,352 @@ +//===-- AbbreviateFunctionTemplate.cpp ---*- C++-*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[clang] [Clang][Driver] Override complex number calculation method by -fno-fast-math (PR #132680)

2025-06-10 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor approved this pull request. lgtm -- thanks for sticking with this! https://github.com/llvm/llvm-project/pull/132680 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cf

[clang] [CIR] Upstream support for calling constructors (PR #143579)

2025-06-10 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper edited https://github.com/llvm/llvm-project/pull/143579 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [WIP] Warn about misuse of sizeof operator in loops. (PR #143205)

2025-06-10 Thread Malavika Samak via cfe-commits
https://github.com/malavikasamak updated https://github.com/llvm/llvm-project/pull/143205 >From 52e4413ea1e701dfe0b24cf957a26bb72732f066 Mon Sep 17 00:00:00 2001 From: MalavikaSamak Date: Wed, 21 May 2025 16:06:44 -0700 Subject: [PATCH 1/4] Place holder message for sizeof operator in loops. --

[clang] [clang][SYCL Upstreaming] Add sycl_external attribute and restrict emitting device code (PR #140282)

2025-06-10 Thread via cfe-commits
@@ -25,20 +40,29 @@ int main() { auto lambda2 = [](int){}; auto lambda3 = [](double){}; - kernel(lambda1); - kernel2(lambda2); - kernel3(lambda3); + kernel_wrapper(lambda1); + kernel2_wrapper(lambda2); + kernel3_wrapper(lambda3); // Ensure the kernels are named

[clang] [CIR] Add initial support for bitfields in structs (PR #142041)

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

[clang] [CIR] Upstream splat op for VectorType (PR #139827)

2025-06-10 Thread Amr Hesham via cfe-commits
AmrDeveloper wrote: > vector_splat_test > Can you update the checks in this PR before committing? Sure, I will update the splat test function in this PR, and in NFS PR i will update the old tests https://github.com/llvm/llvm-project/pull/139827 ___ c

[clang] [lldb] [llvm] [debuginfo][coro] Fix linkage name for clones of coro functions (PR #141889)

2025-06-10 Thread Adrian Vogelsgesang via cfe-commits
vogelsgesang wrote: @ChuanqiXu9 do you want to take another look? (given that this is a NFC for Swift, and primarily changes C++ behavior) Alternatively, is it fine by you if I ship this based on @Michael137's approval? https://github.com/llvm/llvm-project/pull/141889 __

[clang-tools-extra] [clang-tidy] Add modernize-make-direct check (PR #118120)

2025-06-10 Thread Helmut Januschka via cfe-commits
hjanuschka wrote: @denzor200 feedback addressed. @firewave also your feedback addressed. thank you both for your time, i kind of missed notifications for this PR https://github.com/llvm/llvm-project/pull/118120 ___ cfe-commits mailing list cfe-commit

[clang] [CIR] Add initial support for bitfields in structs (PR #142041)

2025-06-10 Thread Andy Kaylor via cfe-commits
andykaylor wrote: Sorry for the delay in getting back to this. The summary of what I am about to say is that I'm in agreement with the plan of moving forward with the current implementation, but I have some lingering thoughts about it that I want to explore. > As you noticed, we went higher l

[clang] [llvm] [NFC][HLSL][DXIL] Move D3D12.h enums and flags to DXILABI (PR #143041)

2025-06-10 Thread Justin Bogner via cfe-commits
https://github.com/bogner requested changes to this pull request. https://github.com/llvm/llvm-project/pull/143041 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [NFC][HLSL][DXIL] Move D3D12.h enums and flags to DXILABI (PR #143041)

2025-06-10 Thread Justin Bogner via cfe-commits
@@ -99,6 +99,128 @@ enum class SamplerFeedbackType : uint32_t { const unsigned MinWaveSize = 4; const unsigned MaxWaveSize = 128; +// Definition of the various d3d12.h enumerations and flags. The definitions of +// all values here correspond to their description in the d3d12.h

[clang] [RISCV] Cache required extensions string for RVVIntrinsicDef (PR #143503)

2025-06-10 Thread Brandon Wu via cfe-commits
@@ -385,7 +390,8 @@ void RISCVIntrinsicManagerImpl::InitRVVIntrinsic( uint32_t Index = IntrinsicList.size(); assert(IntrinsicList.size() == (size_t)Index && "Intrinsics indices overflow."); - IntrinsicList.push_back({BuiltinName, Record.RequiredExtensions, Signatu

[clang] [RISCV] Use StringRef for RequiredExtensions in RVVIntrinsicDef (PR #143503)

2025-06-10 Thread Pengcheng Wang via cfe-commits
https://github.com/wangpc-pp approved this pull request. https://github.com/llvm/llvm-project/pull/143503 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [RISCV] Use StringRef for RequiredExtensions in RVVIntrinsicDef (PR #143503)

2025-06-10 Thread Brandon Wu via cfe-commits
https://github.com/4vtomat edited https://github.com/llvm/llvm-project/pull/143503 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [lldb] [llvm] [debuginfo][coro] Fix linkage name for clones of coro functions (PR #141889)

2025-06-10 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 approved this pull request. Thanks. I feel good with it. https://github.com/llvm/llvm-project/pull/141889 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Attr] Fix possible crash when trying to check for DeviceKernel spelling (PR #143546)

2025-06-10 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman approved this pull request. LG even without a way to test the change. https://github.com/llvm/llvm-project/pull/143546 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listin

[clang] [CIR] Upstream CreateOp for ComplexType with folder (PR #143192)

2025-06-10 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/143192 >From 0a63b900e1b934e15273763d8947c3cea712fef6 Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Fri, 6 Jun 2025 20:56:49 +0200 Subject: [PATCH 1/6] [CIR] Upstream CreateOp for ComplexType with folder ---

[clang] [CIR] Upstream support for calling constructors (PR #143579)

2025-06-10 Thread Erich Keane via cfe-commits
@@ -76,6 +83,48 @@ static void appendParameterTypes(const CIRGenTypes &cgt, cgt.getCGModule().errorNYI("appendParameterTypes: hasExtParameterInfos"); } +const CIRGenFunctionInfo & +CIRGenTypes::arrangeCXXStructorDeclaration(GlobalDecl gd) { + auto *md = cast(gd.getDecl());

[clang] [CIR] Upstream support for calling constructors (PR #143579)

2025-06-10 Thread Erich Keane via cfe-commits
@@ -141,6 +190,44 @@ arrangeFreeFunctionLikeCall(CIRGenTypes &cgt, CIRGenModule &cgm, return cgt.arrangeCIRFunctionInfo(retType, argTypes, required); } +/// Arrange a call to a C++ method, passing the given arguments. +/// +/// passProtoArgs indicates whether `args` has arg

[clang] [CIR] Upstream support for calling constructors (PR #143579)

2025-06-10 Thread Erich Keane via cfe-commits
@@ -63,3 +66,74 @@ Address CIRGenFunction::getAddressOfBaseClass( return value; } + +void CIRGenFunction::emitCXXConstructorCall(const clang::CXXConstructorDecl *d, +clang::CXXCtorType type, +

[clang] [CIR] Upstream support for calling constructors (PR #143579)

2025-06-10 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor updated https://github.com/llvm/llvm-project/pull/143579 >From 844b07e53937d3496405fd2c58148bd03c1f7407 Mon Sep 17 00:00:00 2001 From: Andy Kaylor Date: Mon, 9 Jun 2025 09:38:55 -0700 Subject: [PATCH 1/2] [CIR] Upstream support for calling constructors This change

[clang-tools-extra] [clang-tidy] Added bugprone-unsequenced-global-accesses check (PR #130421)

2025-06-10 Thread Baranov Victor via cfe-commits
@@ -0,0 +1,86 @@ +.. title:: clang-tidy - bugprone-unsequenced-global-accesses + +bugprone-unsequenced-global-accesses + + +Finds unsequenced actions (i.e. unsequenced write and read/write) +on global variables nested in functions in the same tr

[clang-tools-extra] [clang-tidy] Added bugprone-unsequenced-global-accesses check (PR #130421)

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

[clang-tools-extra] [clang-tidy] Added bugprone-unsequenced-global-accesses check (PR #130421)

2025-06-10 Thread Áron Hárnási via cfe-commits
@@ -0,0 +1,72 @@ +.. title:: clang-tidy - bugprone-conflicting-global-accesses + +bugprone-conflicting-global-accesses + + +Finds conflicting accesses on global variables. + +Modifying twice or reading and modifying a memory location without a +

[clang] [clang-tools-extra] Remove delayed typo expressions (PR #143423)

2025-06-10 Thread Eli Friedman via cfe-commits
@@ -1888,10 +1888,11 @@ namespace PR15884 { } namespace AfterError { - constexpr int error() { + constexpr int error() { // pre-cxx23-error {{no return statement in constexpr function}} efriedma-quic wrote: Did you mean to refer to some other issue report?

[clang] [flang] [flang][Driver] Enable support for -mmacos-version-min= (PR #143508)

2025-06-10 Thread Tarun Prabhu via cfe-commits
https://github.com/tarunprabhu approved this pull request. LGTM. Thanks. https://github.com/llvm/llvm-project/pull/143508 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] [Diagnostics] Simplify filenames that contain '..' (PR #143520)

2025-06-10 Thread Aaron Ballman via cfe-commits
@@ -738,12 +738,20 @@ void TextDiagnostic::printDiagnosticMessage(raw_ostream &OS, } void TextDiagnostic::emitFilename(StringRef Filename, const SourceManager &SM) { -#ifdef _WIN32 - SmallString<4096> TmpFilename; -#endif - if (DiagOpts.AbsolutePath) { -auto File = SM.

[clang] [clang] Remove separate evaluation step for static class member init. (PR #142713)

2025-06-10 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic edited https://github.com/llvm/llvm-project/pull/142713 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][OpenCL] Declare cl_amd_media_ops/cl_amd_media_ops2 builtins with -fdeclare-opencl-builtins (PR #143507)

2025-06-10 Thread Juan Manuel Martinez Caamaño via cfe-commits
https://github.com/jmmartinez updated https://github.com/llvm/llvm-project/pull/143507 From e9940ff50bed67583d3f285a4adf105e7ab08547 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Manuel=20Martinez=20Caama=C3=B1o?= Date: Tue, 10 Jun 2025 12:28:35 +0200 Subject: [PATCH 1/4] [Clang][OpenCL] Pre-

[clang] [Clang][Attr] Fix possible crash when trying to check for DeviceKernel spelling (PR #143546)

2025-06-10 Thread Nick Sarnie via cfe-commits
sarnex wrote: @Fznamznon Are you okay with merging this change? Thanks https://github.com/llvm/llvm-project/pull/143546 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Added bugprone-unsequenced-global-accesses check (PR #130421)

2025-06-10 Thread Áron Hárnási via cfe-commits
@@ -0,0 +1,72 @@ +.. title:: clang-tidy - bugprone-conflicting-global-accesses + +bugprone-conflicting-global-accesses + + +Finds conflicting accesses on global variables. + +Modifying twice or reading and modifying a memory location without a +

[clang] [Clang][Attr] Fix possible crash when trying to check for DeviceKernel spelling (PR #143546)

2025-06-10 Thread Mariya Podchishchaeva via cfe-commits
https://github.com/Fznamznon approved this pull request. https://github.com/llvm/llvm-project/pull/143546 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][analyzer] Correct SMT Layer for _BitInt cases refutations (PR #143310)

2025-06-10 Thread via cfe-commits
https://github.com/vabridgers updated https://github.com/llvm/llvm-project/pull/143310 >From 4065ca6418831aba48e1d3147f67fa5bd01b7438 Mon Sep 17 00:00:00 2001 From: Vince Bridgers Date: Sun, 8 Jun 2025 15:48:04 +0200 Subject: [PATCH 1/3] [analyzer] Correct SMT Layer for _BitInt cases refutatio

[clang-tools-extra] [clang-tidy] Added bugprone-unsequenced-global-accesses check (PR #130421)

2025-06-10 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff HEAD~1 HEAD --extensions cpp,h -- clang-tools-extra/clang-tidy/bugprone/UnsequencedGl

[clang] [Clang][Attr] Fix possible crash when trying to check for DeviceKernel spelling (PR #143546)

2025-06-10 Thread Nick Sarnie via cfe-commits
https://github.com/sarnex closed https://github.com/llvm/llvm-project/pull/143546 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Introduce intra-procedural lifetime analysis in Clang (PR #142313)

2025-06-10 Thread Yitzhak Mandelbaum via cfe-commits
@@ -0,0 +1,728 @@ +#include "clang/Analysis/Analyses/LifetimeSafety.h" +#include "clang/AST/Decl.h" +#include "clang/AST/Expr.h" +#include "clang/AST/StmtVisitor.h" +#include "clang/AST/Type.h" +#include "clang/Analysis/AnalysisDeclContext.h" +#include "clang/Analysis/CFG.h" +#inc

[clang-tools-extra] [clangd] Add tweak to abbreviate function templates (PR #74710)

2025-06-10 Thread Jeremy Stucki via cfe-commits
https://github.com/jeremystucki updated https://github.com/llvm/llvm-project/pull/74710 >From 4a32f94492d69af5244c276624abc95bca0ef166 Mon Sep 17 00:00:00 2001 From: Jeremy Stucki Date: Fri, 27 Oct 2023 16:33:13 +0200 Subject: [PATCH 1/3] [clangd] Add tweak to abbreviate function templates Co-

[clang] Introduce intra-procedural lifetime analysis in Clang (PR #142313)

2025-06-10 Thread Yitzhak Mandelbaum via cfe-commits
@@ -0,0 +1,728 @@ +#include "clang/Analysis/Analyses/LifetimeSafety.h" +#include "clang/AST/Decl.h" +#include "clang/AST/Expr.h" +#include "clang/AST/StmtVisitor.h" +#include "clang/AST/Type.h" +#include "clang/Analysis/AnalysisDeclContext.h" +#include "clang/Analysis/CFG.h" +#inc

[clang] Introduce intra-procedural lifetime analysis in Clang (PR #142313)

2025-06-10 Thread Yitzhak Mandelbaum via cfe-commits
@@ -0,0 +1,728 @@ +#include "clang/Analysis/Analyses/LifetimeSafety.h" +#include "clang/AST/Decl.h" +#include "clang/AST/Expr.h" +#include "clang/AST/StmtVisitor.h" +#include "clang/AST/Type.h" +#include "clang/Analysis/AnalysisDeclContext.h" +#include "clang/Analysis/CFG.h" +#inc

[clang] Introduce intra-procedural lifetime analysis in Clang (PR #142313)

2025-06-10 Thread Yitzhak Mandelbaum via cfe-commits
@@ -0,0 +1,728 @@ +#include "clang/Analysis/Analyses/LifetimeSafety.h" +#include "clang/AST/Decl.h" +#include "clang/AST/Expr.h" +#include "clang/AST/StmtVisitor.h" +#include "clang/AST/Type.h" +#include "clang/Analysis/AnalysisDeclContext.h" +#include "clang/Analysis/CFG.h" +#inc

[clang] Introduce intra-procedural lifetime analysis in Clang (PR #142313)

2025-06-10 Thread Yitzhak Mandelbaum via cfe-commits
@@ -0,0 +1,728 @@ +#include "clang/Analysis/Analyses/LifetimeSafety.h" +#include "clang/AST/Decl.h" +#include "clang/AST/Expr.h" +#include "clang/AST/StmtVisitor.h" +#include "clang/AST/Type.h" +#include "clang/Analysis/AnalysisDeclContext.h" +#include "clang/Analysis/CFG.h" +#inc

[clang] Introduce intra-procedural lifetime analysis in Clang (PR #142313)

2025-06-10 Thread Yitzhak Mandelbaum via cfe-commits
https://github.com/ymand edited https://github.com/llvm/llvm-project/pull/142313 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Introduce intra-procedural lifetime analysis in Clang (PR #142313)

2025-06-10 Thread Yitzhak Mandelbaum via cfe-commits
@@ -0,0 +1,728 @@ +#include "clang/Analysis/Analyses/LifetimeSafety.h" +#include "clang/AST/Decl.h" +#include "clang/AST/Expr.h" +#include "clang/AST/StmtVisitor.h" +#include "clang/AST/Type.h" +#include "clang/Analysis/AnalysisDeclContext.h" +#include "clang/Analysis/CFG.h" +#inc

[clang] Introduce intra-procedural lifetime analysis in Clang (PR #142313)

2025-06-10 Thread Yitzhak Mandelbaum via cfe-commits
@@ -0,0 +1,728 @@ +#include "clang/Analysis/Analyses/LifetimeSafety.h" +#include "clang/AST/Decl.h" +#include "clang/AST/Expr.h" +#include "clang/AST/StmtVisitor.h" +#include "clang/AST/Type.h" +#include "clang/Analysis/AnalysisDeclContext.h" +#include "clang/Analysis/CFG.h" +#inc

[clang] [Clang] fix missing source location for errors in macro-expanded (PR #143460)

2025-06-10 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk edited https://github.com/llvm/llvm-project/pull/143460 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [RISCV] Use StringRef for RequiredExtensions in RVVIntrinsicDef (PR #143503)

2025-06-10 Thread Craig Topper via cfe-commits
https://github.com/topperc approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/143503 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

  1   2   3   4   5   >