[libclc] [libclc] Reduce include usage in OpenCL builtins (PR #146840)

2025-07-04 Thread Fraser Cormack via cfe-commits
https://github.com/frasercrmck updated https://github.com/llvm/llvm-project/pull/146840 >From 185d2fe1bc4a6237b7f42c27bb2c85fe77db3adb Mon Sep 17 00:00:00 2001 From: Fraser Cormack Date: Thu, 3 Jul 2025 10:45:05 +0100 Subject: [PATCH 1/2] [libclc] Reduce include usage in OpenCL builtins This c

[libclc] [libclc] Reduce include usage in OpenCL builtins (PR #146840)

2025-07-04 Thread Fraser Cormack via cfe-commits
@@ -6,5 +6,12 @@ // //===--===// +#ifndef __CLC_OPENCL_OPENCL_INTEGER_ABS_H__ frasercrmck wrote: Ah it's because I copied it incorrectly from `__CLC_OPENCL_OPENCL_BASE_H__` which does need

[clang] [lld] [llvm] [Clang][AArch64] Remove redundant tune args to the backend (PR #146896)

2025-07-04 Thread Tomer Shafir via cfe-commits
https://github.com/tomershafir updated https://github.com/llvm/llvm-project/pull/146896 >From 10e9d8f141c0a31ecc189b3365d5d18c65c7ae4b Mon Sep 17 00:00:00 2001 From: tomershafir Date: Thu, 3 Jul 2025 16:53:26 +0300 Subject: [PATCH 1/2] [Clang][AArch64] Remove redundant tune args to the backend

[clang] [llvm] [Transforms] Add LifetimeMovePass (PR #144319)

2025-07-04 Thread Weibo He via cfe-commits
@@ -0,0 +1,341 @@ +//===- LifetimeMove.cpp - Narrowing lifetimes -===// +// +// 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] [libclc] [clang] Add the ability to link libclc OpenCL libraries (PR #146503)

2025-07-04 Thread Fraser Cormack via cfe-commits
https://github.com/frasercrmck updated https://github.com/llvm/llvm-project/pull/146503 >From 40f82d88c4a190fd63a2aff8abc53ea22dce10f5 Mon Sep 17 00:00:00 2001 From: Fraser Cormack Date: Mon, 30 Jun 2025 10:59:02 +0100 Subject: [PATCH 1/4] [libclc] Place libclc files in clang's resource dir --

[libclc] 222e795 - [libclc] Fix target dependency

2025-07-04 Thread Fraser Cormack via cfe-commits
Author: Fraser Cormack Date: 2025-07-04T11:08:00+01:00 New Revision: 222e795347c14afce49df1540926f3a1ae493de4 URL: https://github.com/llvm/llvm-project/commit/222e795347c14afce49df1540926f3a1ae493de4 DIFF: https://github.com/llvm/llvm-project/commit/222e795347c14afce49df1540926f3a1ae493de4.diff

[clang] [libclc] [clang] Add the ability to link libclc OpenCL libraries (PR #146503)

2025-07-04 Thread Fraser Cormack via cfe-commits
https://github.com/frasercrmck updated https://github.com/llvm/llvm-project/pull/146503 >From dab23ab5f4737618fb3f2852738447e66b9b1bff Mon Sep 17 00:00:00 2001 From: Fraser Cormack Date: Mon, 30 Jun 2025 10:59:02 +0100 Subject: [PATCH 1/4] [libclc] Place libclc files in clang's resource dir --

[clang-tools-extra] [clangd][NFC] added const and constexpr (PR #143193)

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

[clang] [llvm] [AArch64] Add support for -mcpu=gb10. (PR #146515)

2025-07-04 Thread Ricardo Jesus via cfe-commits
@@ -176,25 +176,43 @@ StringRef sys::detail::getHostCPUNameForARM(StringRef ProcCpuinfoContent) { SmallVector Lines; ProcCpuinfoContent.split(Lines, '\n'); - // Look for the CPU implementer line. + // Look for the CPU implementer and hardware lines, and store the CPU pa

[clang-tools-extra] Extend call hierarchy for enum constants (PR #147042)

2025-07-04 Thread via cfe-commits
https://github.com/timon-ul created https://github.com/llvm/llvm-project/pull/147042 Implementation for https://github.com/clangd/clangd/issues/2203 >From 464db70ca20e0924d37ebf6c5147721e382d5063 Mon Sep 17 00:00:00 2001 From: Timon Ulrich Date: Wed, 2 Jul 2025 15:23:46 +0200 Subject: [PATCH

[clang-tools-extra] Extend call hierarchy for enum constants (PR #147042)

2025-07-04 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: None (timon-ul) Changes Implementation for https://github.com/clangd/clangd/issues/2203 --- Full diff: https://github.com/llvm/llvm-project/pull/147042.diff 2 Files Affected: - (modified) clang-tools-extra/clangd/XRefs.cpp

[clang-tools-extra] Extend call hierarchy for enum constants (PR #147042)

2025-07-04 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangd Author: None (timon-ul) Changes Implementation for https://github.com/clangd/clangd/issues/2203 --- Full diff: https://github.com/llvm/llvm-project/pull/147042.diff 2 Files Affected: - (modified) clang-tools-extra/clangd/XRefs.cpp (+2-1) - (

[clang-tools-extra] [clang-tidy] fix compilation by disambiguating equality operator (PR #147048)

2025-07-04 Thread Baranov Victor via cfe-commits
@@ -144,7 +144,8 @@ TaggedUnionMemberCountCheck::getNumberOfEnumValues(const EnumDecl *ED) { if (EnableCountingEnumHeuristic && LastEnumConstant && isCountingEnumLikeName(LastEnumConstant->getName()) && - (LastEnumConstant->getInitVal() == (EnumValues.size() - 1)

[clang] [llvm] [llvm-objcopy][libObject] Add RISC-V big-endian support (PR #146913)

2025-07-04 Thread Djordje Todorovic via cfe-commits
https://github.com/djtodoro updated https://github.com/llvm/llvm-project/pull/146913 >From a3b50d1a95f4ae76af98e25502a7bdb950592d38 Mon Sep 17 00:00:00 2001 From: Djordje Todorovic Date: Thu, 3 Jul 2025 14:03:14 +0200 Subject: [PATCH 1/2] [llvm-objcopy][libObject] Add RISC-V big-endian support

[clang] [OpenCL] Add decls for cl_intel_subgroup_local_block_io (PR #146656)

2025-07-04 Thread Mészáros Gergely via cfe-commits
https://github.com/Maetveis closed https://github.com/llvm/llvm-project/pull/146656 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] be63b23 - [OpenCL] Add decls for cl_intel_subgroup_local_block_io (#146656)

2025-07-04 Thread via cfe-commits
Author: Mészáros Gergely Date: 2025-07-04T11:53:10+02:00 New Revision: be63b2309a6ac0012682732430464c256524271e URL: https://github.com/llvm/llvm-project/commit/be63b2309a6ac0012682732430464c256524271e DIFF: https://github.com/llvm/llvm-project/commit/be63b2309a6ac0012682732430464c256524271e.di

[clang] [llvm] [llvm-objcopy][libObject] Add RISC-V big-endian support (PR #146913)

2025-07-04 Thread Djordje Todorovic via cfe-commits
@@ -452,6 +457,8 @@ Triple::ArchType Triple::getArchTypeForLLVMName(StringRef Name) { .Case("amdgcn", amdgcn) .Case("riscv32", riscv32) .Case("riscv64", riscv64) +.Case("riscv32be", riscv32be) djtodoro wrote: yeah... I agree https://github.co

[clang] [llvm] [llvm-objcopy][libObject] Add RISC-V big-endian support (PR #146913)

2025-07-04 Thread Djordje Todorovic via cfe-commits
@@ -74,8 +74,10 @@ class Triple { ppc64le,// PPC64LE: powerpc64le r600, // R600: AMD GPUs HD2XXX - HD6XXX amdgcn, // AMDGCN: AMD GCN GPUs -riscv32,// RISC-V (32-bit): riscv32 -riscv64,// RISC-V (64-bit): riscv64 +

[clang] [clang][analyzer] Add checker 'unix.cstring.MissingTerminatingZero' (PR #146664)

2025-07-04 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat edited https://github.com/llvm/llvm-project/pull/146664 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [llvm-objcopy][libObject] Add RISC-V big-endian support (PR #146913)

2025-07-04 Thread Djordje Todorovic via cfe-commits
@@ -2053,6 +2086,8 @@ bool Triple::isLittleEndian() const { case Triple::renderscript64: case Triple::riscv32: case Triple::riscv64: + case Triple::riscv32be: + case Triple::riscv64be: djtodoro wrote: Ouch, fixed. https://github.com/llvm/llvm-project/

[clang] [llvm] [llvm-objcopy][libObject] Add RISC-V big-endian support (PR #146913)

2025-07-04 Thread Djordje Todorovic via cfe-commits
https://github.com/djtodoro updated https://github.com/llvm/llvm-project/pull/146913 >From a3b50d1a95f4ae76af98e25502a7bdb950592d38 Mon Sep 17 00:00:00 2001 From: Djordje Todorovic Date: Thu, 3 Jul 2025 14:03:14 +0200 Subject: [PATCH 1/4] [llvm-objcopy][libObject] Add RISC-V big-endian support

[libclc] [libclc] Reduce include usage in OpenCL builtins (PR #146840)

2025-07-04 Thread Fraser Cormack via cfe-commits
@@ -6,5 +6,12 @@ // //===--===// +#ifndef __CLC_OPENCL_OPENCL_INTEGER_ABS_H__ frasercrmck wrote: Oh, yes. And of course I'd copy/pasted the mistake to all files... https://github.com/llvm/l

[clang] Thread Safety Analysis: Very basic capability alias-analysis (PR #142955)

2025-07-04 Thread Marco Elver via cfe-commits
https://github.com/melver updated https://github.com/llvm/llvm-project/pull/142955 >From ff8f6e28e3adca1877ff2d16292aa8e23b7bfb9c Mon Sep 17 00:00:00 2001 From: Marco Elver Date: Wed, 21 May 2025 23:49:48 +0200 Subject: [PATCH] Thread Safety Analysis: Very basic capability alias-analysis Add a

[clang] Thread Safety Analysis: Very basic capability alias-analysis (PR #142955)

2025-07-04 Thread Marco Elver via cfe-commits
melver wrote: Some more self-review, and fixes: - Rename createVariable() -> translateVarDecl() for clarify. - Reintroduce createThisPlaceholder() for clarify. - Handle escaping aliases through pass by-non-const-ref (or pointer), and add more tests. https://github.com/llvm/llvm-project/pull/14

[clang-tools-extra] [clang-tidy] fix compilation by disambiguating equality operator (PR #147048)

2025-07-04 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 -- clang-tools-extra/clang-tidy/bugprone/TaggedUnionMemb

[clang-tools-extra] [clang-tidy] fix compilation by disambiguating equality operator (PR #147048)

2025-07-04 Thread Gregor Jasny via cfe-commits
https://github.com/gjasny updated https://github.com/llvm/llvm-project/pull/147048 >From 2585b9c7744b04328adb0fc9400665598e995d8e Mon Sep 17 00:00:00 2001 From: Gregor Jasny Date: Fri, 4 Jul 2025 13:19:22 +0100 Subject: [PATCH] [clang-tidy] fix compilation by disambiguating equality operator

[clang] [clang-format] Propagate `LeadingEmptyLinesAffected` when joining lines (PR #146761)

2025-07-04 Thread Eric Li via cfe-commits
@@ -986,7 +986,7 @@ class LineJoiner { void join(AnnotatedLine &A, const AnnotatedLine &B) { assert(!A.Last->Next); assert(!B.First->Previous); -if (B.Affected) +if (B.Affected || (B.LeadingEmptyLinesAffected && A.Last->Children.empty())) tJe

[clang] [llvm] Add __builtin_wasm_test_function_pointer_signature (PR #147076)

2025-07-04 Thread Hood Chatham via cfe-commits
https://github.com/hoodmane updated https://github.com/llvm/llvm-project/pull/147076 >From ba4e21486455fcee36e5521050562cd9be35e9b4 Mon Sep 17 00:00:00 2001 From: Hood Chatham Date: Sat, 10 May 2025 22:01:09 -0400 Subject: [PATCH 1/5] [WebAssembly] Add ref.test_func handling to AsmParser ---

[clang] [llvm] [mlir] [debuginfo][coro] Emit debug info labels for coroutine resume points (PR #141937)

2025-07-04 Thread Paul T Robinson via cfe-commits
pogo59 wrote: I see attributes such as `"target-cpu"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87"` in the IR; I don't know where those come from, but deleting them will probably fix the Sparc bot. https://github.com/llvm/llvm-project/pull/141937 _

[clang] [analyzer] Connversion to CheckerFamily: MallocChecker (PR #147080)

2025-07-04 Thread Donát Nagy via cfe-commits
@@ -2681,27 +2693,16 @@ void MallocChecker::HandleOffsetFree(CheckerContext &C, SVal ArgVal, void MallocChecker::HandleUseAfterFree(CheckerContext &C, SourceRange Range, SymbolRef Sym) const { - - if (!ChecksEnabled[CK_MallocChecker] &&

[clang] [clang][analyzer] Add checker 'unix.cstring.MissingTerminatingZero' (PR #146664)

2025-07-04 Thread Balázs Kéri via cfe-commits
@@ -2098,6 +2098,58 @@ Check the size argument passed into C string functions for common erroneous patt // warn: potential buffer overflow } +.. _unix-cstring-MissingTerminatingZero: + +unix.cstring.MissingTerminatingZero (C) +""" +Ch

[clang] Thread Safety Analysis: Very basic capability alias-analysis (PR #142955)

2025-07-04 Thread Marco Elver via cfe-commits
https://github.com/melver updated https://github.com/llvm/llvm-project/pull/142955 >From 0964bd446b730fd7c832bc8e3645320d3777627d Mon Sep 17 00:00:00 2001 From: Marco Elver Date: Wed, 21 May 2025 23:49:48 +0200 Subject: [PATCH] Thread Safety Analysis: Very basic capability alias-analysis Add a

[clang] [llvm] [mlir] [debuginfo][coro] Emit debug info labels for coroutine resume points (PR #141937)

2025-07-04 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-hip-vega20` running on `hip-vega20-0` while building `clang,llvm,mlir` at step 3 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/123/builds/22644 Here is the relevant piece of the bu

[clang] [clang][analyzer] Add checker 'unix.cstring.MissingTerminatingZero' (PR #146664)

2025-07-04 Thread Balázs Kéri via cfe-commits
@@ -0,0 +1,295 @@ +//=== MissingTerminatingZeroChecker.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] [flang] [flang] Add -fcomplex-arithmetic= option and select complex division algorithm (PR #146641)

2025-07-04 Thread Shunsuke Watanabe via cfe-commits
@@ -192,6 +192,31 @@ class CodeGenOptions : public CodeGenOptionsBase { return getProfileUse() == llvm::driver::ProfileCSIRInstr; } + /// Controls the various implementations for complex division. s-watanabe314 wrote: Thank you for providing the exampl

[clang] [clang][analyzer] Add checker 'unix.cstring.MissingTerminatingZero' (PR #146664)

2025-07-04 Thread Donát Nagy via cfe-commits
@@ -0,0 +1,295 @@ +//=== MissingTerminatingZeroChecker.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

[libclc] 81e6552 - [libclc] Make library output directories explicit (#146833)

2025-07-04 Thread via cfe-commits
Author: Fraser Cormack Date: 2025-07-04T10:35:15+01:00 New Revision: 81e6552a3d6835c4e10eb981402febfac9df6156 URL: https://github.com/llvm/llvm-project/commit/81e6552a3d6835c4e10eb981402febfac9df6156 DIFF: https://github.com/llvm/llvm-project/commit/81e6552a3d6835c4e10eb981402febfac9df6156.diff

[libclc] [libclc] Make library output directories explicit (PR #146833)

2025-07-04 Thread Fraser Cormack via cfe-commits
https://github.com/frasercrmck closed https://github.com/llvm/llvm-project/pull/146833 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [lld] [llvm] [Clang][AArch64] Remove redundant tune args to the backend (PR #146896)

2025-07-04 Thread Tomer Shafir via cfe-commits
https://github.com/tomershafir updated https://github.com/llvm/llvm-project/pull/146896 >From 10e9d8f141c0a31ecc189b3365d5d18c65c7ae4b Mon Sep 17 00:00:00 2001 From: tomershafir Date: Thu, 3 Jul 2025 16:53:26 +0300 Subject: [PATCH 1/2] [Clang][AArch64] Remove redundant tune args to the backend

[clang] [clang][analyzer] Add checker 'unix.cstring.MissingTerminatingZero' (PR #146664)

2025-07-04 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat edited https://github.com/llvm/llvm-project/pull/146664 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [UserManual] Document clang option for loop interchange (PR #147014)

2025-07-04 Thread Sjoerd Meijer via cfe-commits
sjoerdmeijer wrote: > It is already documented in [Clang command line argument > reference](https://clang.llvm.org/docs/ClangCommandLineReference.html#cmdoption-clang-floop-interchange) > (perhaps this is automatically generated based on > [`clang/Driver/Options.td`](https://github.com/llvm/ll

[clang] [llvm] [llvm-objcopy][libObject] Add RISC-V big-endian support (PR #146913)

2025-07-04 Thread Djordje Todorovic via cfe-commits
https://github.com/djtodoro updated https://github.com/llvm/llvm-project/pull/146913 >From a3b50d1a95f4ae76af98e25502a7bdb950592d38 Mon Sep 17 00:00:00 2001 From: Djordje Todorovic Date: Thu, 3 Jul 2025 14:03:14 +0200 Subject: [PATCH 1/3] [llvm-objcopy][libObject] Add RISC-V big-endian support

[clang] [libclc] [clang] Add the ability to link libclc OpenCL libraries (PR #146503)

2025-07-04 Thread Fraser Cormack via cfe-commits
https://github.com/frasercrmck edited https://github.com/llvm/llvm-project/pull/146503 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [win][clang] Do not inject static_assert macro definition (PR #147030)

2025-07-04 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Mariya Podchishchaeva (Fznamznon) Changes In ms-compatibility mode we inject static_assert macro definition if assert macro is defined. This is done by 8da090381d567d0ec555840f6b2a651d2997e4b3 for the sake of better diagnosing, in particul

[clang] [win][clang] Do not inject static_assert macro definition (PR #147030)

2025-07-04 Thread Mariya Podchishchaeva via cfe-commits
https://github.com/Fznamznon created https://github.com/llvm/llvm-project/pull/147030 In ms-compatibility mode we inject static_assert macro definition if assert macro is defined. This is done by 8da090381d567d0ec555840f6b2a651d2997e4b3 for the sake of better diagnosing, in particular to emit a

[clang] [lld] [llvm] [Clang][AArch64] Remove redundant tune args to the backend (PR #146896)

2025-07-04 Thread Tomer Shafir via cfe-commits
@@ -163,17 +163,6 @@ getAArch64MicroArchFeaturesFromMtune(const Driver &D, StringRef Mtune, if (!DecodeAArch64Mcpu(D, MtuneLowerCase, Tune, Extensions)) return false; tomershafir wrote: ok, I planned to simplify in a followup patch, but simplified this

[clang] [llvm] [AArch64] Add support for -mcpu=gb10. (PR #146515)

2025-07-04 Thread Ricardo Jesus via cfe-commits
https://github.com/rj-jesus updated https://github.com/llvm/llvm-project/pull/146515 >From 7857d5536c4145bc3b2c797222b25f3533db518f Mon Sep 17 00:00:00 2001 From: Ricardo Jesus Date: Wed, 2 Apr 2025 10:37:59 -0700 Subject: [PATCH 1/3] [AArch64] Add support for -mcpu=gb10. This patch adds suppo

[clang-tools-extra] [clangd][NFC] added const and constexpr to HeaderSourceSwitch (PR #143193)

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

[clang-tools-extra] [clangd][NFC] added const and constexpr (PR #143193)

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

[clang] [llvm] [RISCV] Implement Clang Builtins for XAndesPerf Extension (PR #147018)

2025-07-04 Thread Pengcheng Wang via cfe-commits
@@ -0,0 +1,29 @@ +//==- BuiltinsRISCVXAndes.td - RISC-V Andes Builtin database -*- 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: Apa

[clang] [lld] [llvm] [Clang][AArch64] Remove redundant tune args to the backend (PR #146896)

2025-07-04 Thread Tomer Shafir via cfe-commits
https://github.com/tomershafir updated https://github.com/llvm/llvm-project/pull/146896 >From 10e9d8f141c0a31ecc189b3365d5d18c65c7ae4b Mon Sep 17 00:00:00 2001 From: tomershafir Date: Thu, 3 Jul 2025 16:53:26 +0300 Subject: [PATCH 1/2] [Clang][AArch64] Remove redundant tune args to the backend

[clang] [llvm] [RISCV] Implement Clang Builtins for XAndesPerf Extension (PR #147018)

2025-07-04 Thread Pengcheng Wang via cfe-commits
@@ -0,0 +1,159 @@ +// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py +// RUN: %clang_cc1 -triple riscv32 -target-feature +xandesperf -emit-llvm %s -o - \ wangpc-pp wrote: Run mem2ssa? https://github.com/llvm/llvm-project/pull/147018

[clang] [mlir] [Clang][Sema] Avoid duplicate diagnostics for incomplete types in nested name specifier (C++20+) (PR #147036)

2025-07-04 Thread via cfe-commits
https://github.com/zhy-tju created https://github.com/llvm/llvm-project/pull/147036 Linked issue #147000 Clang currently emits duplicate diagnostics when encountering an incomplete type in a nested name specifier (e.g., `incomplete::type`) in C++20 or later. This is due to multiple semantic anal

[clang] [mlir] [Clang][Sema] Avoid duplicate diagnostics for incomplete types in nested name specifier (C++20+) (PR #147036)

2025-07-04 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] [mlir] [Clang][Sema] Avoid duplicate diagnostics for incomplete types in nested name specifier (C++20+) (PR #147036)

2025-07-04 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-backend-amdgpu Author: None (zhy-tju) Changes Linked issue #147000 Clang currently emits duplicate diagnostics when encountering an incomplete type in a nested name specifier (e.g., `incomplete::type`) in C++20 or later. This i

[clang] [mlir] [Clang][Sema] Avoid duplicate diagnostics for incomplete types in nested name specifier (C++20+) (PR #147036)

2025-07-04 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-mlir-amdgpu Author: None (zhy-tju) Changes Linked issue #147000 Clang currently emits duplicate diagnostics when encountering an incomplete type in a nested name specifier (e.g., `incomplete::type`) in C++20 or later. This is due to multiple semantic ana

[clang] [mlir] [Clang][Sema] Avoid duplicate diagnostics for incomplete types in nested name specifier (C++20+) (PR #147036)

2025-07-04 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-mlir-gpu Author: None (zhy-tju) Changes Linked issue #147000 Clang currently emits duplicate diagnostics when encountering an incomplete type in a nested name specifier (e.g., `incomplete::type`) in C++20 or later. This is due to multiple semantic analys

[clang] [Clang][Sema] Avoid duplicate diagnostics for incomplete types in nested name specifier (C++20+) (PR #147036)

2025-07-04 Thread via cfe-commits
https://github.com/zhy-tju updated https://github.com/llvm/llvm-project/pull/147036 >From 4b098e63f1c1aa8bb4c7d4d1966a22c236a9ff17 Mon Sep 17 00:00:00 2001 From: zhy <2697737...@qq.com> Date: Fri, 4 Jul 2025 16:50:03 +0800 Subject: [PATCH 1/3] [Clang] Duplicate diagnostics in C++20+ mode --- c

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

2025-07-04 Thread via cfe-commits
Sirraide wrote: > In that case WYGIWYD (what you get is what you deserve) applies. Sgtm; I’ll leave the clang-tidy side of things as-is then and just update the test to reflect this. https://github.com/llvm/llvm-project/pull/143520 ___ cfe-commits ma

[clang-tools-extra] [clang-tidy] fix compilation by disambiguating equality operator (PR #147048)

2025-07-04 Thread Gregor Jasny via cfe-commits
@@ -144,7 +144,8 @@ TaggedUnionMemberCountCheck::getNumberOfEnumValues(const EnumDecl *ED) { if (EnableCountingEnumHeuristic && LastEnumConstant && isCountingEnumLikeName(LastEnumConstant->getName()) && - (LastEnumConstant->getInitVal() == (EnumValues.size() - 1)

[clang-tools-extra] [clang-tidy] fix compilation by disambiguating equality operator (PR #147048)

2025-07-04 Thread Gregor Jasny via cfe-commits
@@ -144,7 +144,8 @@ TaggedUnionMemberCountCheck::getNumberOfEnumValues(const EnumDecl *ED) { if (EnableCountingEnumHeuristic && LastEnumConstant && isCountingEnumLikeName(LastEnumConstant->getName()) && - (LastEnumConstant->getInitVal() == (EnumValues.size() - 1)

[clang-tools-extra] [clang-tidy] fix compilation by disambiguating equality operator (PR #147048)

2025-07-04 Thread Gregor Jasny via cfe-commits
https://github.com/gjasny updated https://github.com/llvm/llvm-project/pull/147048 >From df2f97dcf1c6febd152fe6aed8d60681a93acb8d Mon Sep 17 00:00:00 2001 From: Gregor Jasny Date: Fri, 4 Jul 2025 13:19:22 +0100 Subject: [PATCH] [clang-tidy] fix compilation by disambiguating equality operator

[clang] [C23] Fix typeof handling in enum declarations (PR #146394)

2025-07-04 Thread via cfe-commits
https://github.com/Sirraide approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/146394 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] af2bb8f - [Clang] Correctly handle allocations in the condition of a `if constexpr` (#146890)

2025-07-04 Thread via cfe-commits
Author: Corentin Jabot Date: 2025-07-04T16:40:29+03:00 New Revision: af2bb8f826050402fa9c6a6be8475808dcb63df0 URL: https://github.com/llvm/llvm-project/commit/af2bb8f826050402fa9c6a6be8475808dcb63df0 DIFF: https://github.com/llvm/llvm-project/commit/af2bb8f826050402fa9c6a6be8475808dcb63df0.diff

[clang] [Clang] Correctly handle allocations in the condition of a `if constexpr` (PR #146890)

2025-07-04 Thread Corentin Jabot via cfe-commits
https://github.com/cor3ntin closed https://github.com/llvm/llvm-project/pull/146890 ___ 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 compilation by disambiguating equality operator (PR #147048)

2025-07-04 Thread Baranov Victor via cfe-commits
vbvictor wrote: > That's probably happening due to incomplete C++20 support in either Clang 14 > or the GNU libstdc++ 12. Current standard that LLVM use is c++17. But we generally should support compilers at [least 3 years of compilers](https://llvm.org/docs/DeveloperPolicy.html#updating-tool

[clang-tools-extra] [clang-tidy][NFC] fix compilation by disambiguating equality operator (PR #147048)

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

[clang] [Clang] Correctly handle allocations in the condition of a `if constexpr` (PR #146890)

2025-07-04 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `hip-third-party-libs-test` running on `ext_buildbot_hw_05-hip-docker` while building `clang` at step 4 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/206/builds/2781 Here is the relevant

[clang-tools-extra] [clang-tidy][NFC] fix compilation by disambiguating equality operator (PR #147048)

2025-07-04 Thread Baranov Victor via cfe-commits
@@ -144,7 +144,8 @@ TaggedUnionMemberCountCheck::getNumberOfEnumValues(const EnumDecl *ED) { if (EnableCountingEnumHeuristic && LastEnumConstant && isCountingEnumLikeName(LastEnumConstant->getName()) && - (LastEnumConstant->getInitVal() == (EnumValues.size() - 1)

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

2025-07-04 Thread via cfe-commits
https://github.com/Sirraide updated https://github.com/llvm/llvm-project/pull/143520 >From 15c0a79d6a0cd65d88fbe152275b224201e632a1 Mon Sep 17 00:00:00 2001 From: Sirraide Date: Tue, 10 Jun 2025 14:32:32 +0200 Subject: [PATCH 1/6] [Clang] [Diagnostics] Simplify filenames that contain '..' ---

[clang] [clang-cl] Accept `cl`-style output arguments (`/Fo`, `-Fo`) for `--precompile` (PR #121046)

2025-07-04 Thread Ben Boeckel via cfe-commits
mathstuf wrote: I don't really care how things are spelled as long as they're possible. Don't take what CMake does for `clang-cl` and modules as gospel as it is very much not declared as supported at all. We can rework how CMake constructs command lines for `clang-cl` and modules as needed. h

[clang] [clang-tools-extra] [clang][CodeComplete] skip explicit obj param in SignatureHelp (PR #146649)

2025-07-04 Thread Corentin Jabot via cfe-commits
cor3ntin wrote: > but causes a crash ([example](https://godbolt.org/z/oo198z8Gh)). So I haven't > added those cases, but left a `TODO`. Should I leave a `TODO: PR 146649` > instead? I opened [147046](https://github.com/llvm/llvm-project/pull/147046) https://github.com/llvm/llvm-project/pul

[clang-tools-extra] `clang-tidy`: Make `bugprone-unhandled-self-assignment` check more general (PR #147066)

2025-07-04 Thread Andrey Karlov via cfe-commits
https://github.com/negativ created https://github.com/llvm/llvm-project/pull/147066 This change enhances the `bugprone-unhandled-self-assignment` checker by adding an additional matcher that generalizes the copy-and-swap idiom pattern detection. # What Changed Added a new matcher that checks

[clang-tools-extra] `clang-tidy`: Make `bugprone-unhandled-self-assignment` check more general (PR #147066)

2025-07-04 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-tools-extra] `clang-tidy`: Make `bugprone-unhandled-self-assignment` check more general (PR #147066)

2025-07-04 Thread Andrey Karlov via cfe-commits
https://github.com/negativ ready_for_review https://github.com/llvm/llvm-project/pull/147066 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] `clang-tidy`: Make `bugprone-unhandled-self-assignment` check more general (PR #147066)

2025-07-04 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy @llvm/pr-subscribers-clang-tools-extra Author: Andrey Karlov (negativ) Changes This change enhances the `bugprone-unhandled-self-assignment` checker by adding an additional matcher that generalizes the copy-and-swap idiom pattern detection.

[clang] [clang] Remove source range from CXXOperatorCallExpr (PR #147028)

2025-07-04 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Haojian Wu (hokein) Changes This patch stops storing a source range in `CXXOperatorCallExpr` and keeps only the begin location. This change allows us to retain the optimization #141058 when switching to 64-bit source locations. Performa

[clang] [clang] Remove source range from CXXOperatorCallExpr (PR #147028)

2025-07-04 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-modules Author: Haojian Wu (hokein) Changes This patch stops storing a source range in `CXXOperatorCallExpr` and keeps only the begin location. This change allows us to retain the optimization #141058 when switching to 64-bit source locations.

[clang] [clang] Remove source range from CXXOperatorCallExpr (PR #147028)

2025-07-04 Thread Haojian Wu via cfe-commits
https://github.com/hokein created https://github.com/llvm/llvm-project/pull/147028 This patch stops storing a source range in `CXXOperatorCallExpr` and keeps only the begin location. This change allows us to retain the optimization #141058 when switching to 64-bit source locations. Performan

[clang] [UserManual] Document clang option for loop interchange (PR #147014)

2025-07-04 Thread Ryotaro Kasuga via cfe-commits
https://github.com/kasuga-fj commented: It is already documented in [Clang command line argument reference](https://clang.llvm.org/docs/ClangCommandLineReference.html#cmdoption-clang-floop-interchange) (perhaps this is automatically generated based on [`clang/Driver/Options.td`](https://github

[clang] [clang][analyzer] Add checker 'unix.cstring.MissingTerminatingZero' (PR #146664)

2025-07-04 Thread Donát Nagy via cfe-commits
@@ -2098,6 +2098,58 @@ Check the size argument passed into C string functions for common erroneous patt // warn: potential buffer overflow } +.. _unix-cstring-MissingTerminatingZero: + +unix.cstring.MissingTerminatingZero (C) +""" +Ch

[clang] [flang] [flang] Add -fcomplex-arithmetic= option and select complex division algorithm (PR #146641)

2025-07-04 Thread Shunsuke Watanabe via cfe-commits
@@ -9,6 +9,7 @@ #ifndef FORTRAN_OPTIMIZER_CODEGEN_CODEGEN_H #define FORTRAN_OPTIMIZER_CODEGEN_CODEGEN_H +#include "flang/Frontend/CodeGenOptions.h" s-watanabe314 wrote: Thank you for the reviews! > Not requesting to do that here, but I feel the CodeGenOptions

[clang] [clang][analyzer] Add checker 'unix.cstring.MissingTerminatingZero' (PR #146664)

2025-07-04 Thread Donát Nagy via cfe-commits
@@ -0,0 +1,295 @@ +//=== MissingTerminatingZeroChecker.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] [lld] [llvm] [Clang][AArch64] Remove redundant tune args to the backend (PR #146896)

2025-07-04 Thread Tomer Shafir via cfe-commits
https://github.com/tomershafir updated https://github.com/llvm/llvm-project/pull/146896 >From 10e9d8f141c0a31ecc189b3365d5d18c65c7ae4b Mon Sep 17 00:00:00 2001 From: tomershafir Date: Thu, 3 Jul 2025 16:53:26 +0300 Subject: [PATCH 1/2] [Clang][AArch64] Remove redundant tune args to the backend

[clang] [UserManual] Document clang option for loop interchange (PR #147014)

2025-07-04 Thread Madhur Amilkanthwar via cfe-commits
madhur13490 wrote: I see. I can drop this, but I couldn't find a link from the User Manual to the [Clang command line argument reference](https://clang.llvm.org/docs/ClangCommandLineReference.html#cmdoption-clang-floop-interchange). Is there one? https://github.com/llvm/llvm-project/pull/1470

[clang] [analyzer] Avoid unnecessary super region invalidation in `CStringChecker` (PR #146212)

2025-07-04 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat approved this pull request. LGTM, thanks for the updates! Before merging the commit consider adding a note to the PR description / commit message that in the case of `strlcat` you use `size` as an approximation of the exact `amountCopied`. https://github.com/llvm/

[clang-tools-extra] [clangd][NFC] added const and constexpr (PR #143193)

2025-07-04 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor commented: Patch LGTM, but it may have to be approved by one of clangd's maintainers that I added. You should also add `NFC` in the title if you have non-functional changes. https://github.com/llvm/llvm-project/pull/143193 ___

[libclc] [NFC][libclc] Rename __CLC_FUNCTION to either FUNCTION or __IMPL_FUNCTION (PR #146999)

2025-07-04 Thread Fraser Cormack via cfe-commits
https://github.com/frasercrmck approved this pull request. Brill, thanks https://github.com/llvm/llvm-project/pull/146999 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Remove source range from CXXOperatorCallExpr (PR #147028)

2025-07-04 Thread Corentin Jabot via cfe-commits
@@ -158,9 +158,9 @@ class CXXOperatorCallExpr final : public CallExpr { : getOperatorLoc(); } - SourceLocation getBeginLoc() const { return Range.getBegin(); } - SourceLocation getEndLoc() const { return Range.getEnd(); } - SourceRange getSourceRange() cons

[clang-tools-extra] [clang-tidy] Add portability-avoid-platform-specific-fundamental-types (PR #146970)

2025-07-04 Thread via cfe-commits
@@ -0,0 +1,121 @@ +//===--- AvoidPlatformSpecificFundamentalTypesCheck.cpp - clang-tidy +//---===// +// +// 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-Ide

[clang-tools-extra] [clang-tidy] Add portability-avoid-platform-specific-fundamental-types (PR #146970)

2025-07-04 Thread via cfe-commits
@@ -0,0 +1,121 @@ +//===--- AvoidPlatformSpecificFundamentalTypesCheck.cpp - clang-tidy +//---===// +// +// 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-Ide

[clang-tools-extra] [clang-tidy] Add portability-avoid-platform-specific-fundamental-types (PR #146970)

2025-07-04 Thread via cfe-commits
https://github.com/EugeneZelenko edited https://github.com/llvm/llvm-project/pull/146970 ___ 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 portability-avoid-platform-specific-fundamental-types (PR #146970)

2025-07-04 Thread via cfe-commits
@@ -0,0 +1,121 @@ +//===--- AvoidPlatformSpecificFundamentalTypesCheck.cpp - clang-tidy +//---===// EugeneZelenko wrote: Please merge with previous line. https://github.com/llvm/llvm-project/pull/146970 ___

[clang] a465e35 - [Sema] Remove an unnecessary cast (NFC) (#146985)

2025-07-04 Thread via cfe-commits
Author: Kazu Hirata Date: 2025-07-04T07:56:28-07:00 New Revision: a465e35908b65563c7be96a9cc514c38e1bf8b8e URL: https://github.com/llvm/llvm-project/commit/a465e35908b65563c7be96a9cc514c38e1bf8b8e DIFF: https://github.com/llvm/llvm-project/commit/a465e35908b65563c7be96a9cc514c38e1bf8b8e.diff L

[clang] [Sema] Remove an unnecessary cast (NFC) (PR #146985)

2025-07-04 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/146985 ___ 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 portability-avoid-platform-specific-fundamental-types (PR #146970)

2025-07-04 Thread via cfe-commits
@@ -0,0 +1,43 @@ +//===--- AvoidPlatformSpecificFundamentalTypesCheck.h - clang-tidy ---*- C++ +//-*-===// EugeneZelenko wrote: Please merge with previous line. https://github.com/llvm/llvm-project/pull/146970 ___

[clang-tools-extra] [clang-tidy] Add portability-avoid-platform-specific-fundamental-types (PR #146970)

2025-07-04 Thread via cfe-commits
https://github.com/EugeneZelenko commented: Please add Release Notes entry. https://github.com/llvm/llvm-project/pull/146970 ___ 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 portability-avoid-platform-specific-fundamental-types (PR #146970)

2025-07-04 Thread via cfe-commits
@@ -0,0 +1,111 @@ +.. title:: clang-tidy - portability-avoid-platform-specific-fundamental-types + +portability-avoid-platform-specific-fundamental-types += + +Finds fundamental types and recommends using typedefs or fixed-width

[clang] [llvm] [FMV][AArch64] Allow user to override version priority (option2). (PR #147073)

2025-07-04 Thread Alexandros Lamprineas via cfe-commits
https://github.com/labrinea created https://github.com/llvm/llvm-project/pull/147073 Supports option 2 of https://github.com/ARM-software/acle/issues/403 depends on option 1 https://github.com/llvm/llvm-project/pull/146092 >From c5bd398ad9116a29f363be4f0b9ec54fca0d7016 Mon Sep 17 00:00:00 2001

[clang-tools-extra] [clang-tidy][NFC] fix compilation by disambiguating equality operator (PR #147048)

2025-07-04 Thread via cfe-commits
@@ -144,7 +144,7 @@ TaggedUnionMemberCountCheck::getNumberOfEnumValues(const EnumDecl *ED) { if (EnableCountingEnumHeuristic && LastEnumConstant && isCountingEnumLikeName(LastEnumConstant->getName()) && - (LastEnumConstant->getInitVal() == (EnumValues.size() - 1)

  1   2   3   4   >