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

2025-07-02 Thread Mythreya Kuricheti via cfe-commits
MythreyaK wrote: > How does completion handle things like this? @cor3ntin Oh I totally forgot about this! Thanks! I'll check it in the evening. https://github.com/llvm/llvm-project/pull/146649 ___ cfe-commits mailing list cfe-commits@lists.llvm.org ht

[clang] [libcxx] [Clang] Diagnose forming references to nullptr (PR #143667)

2025-07-02 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll commented: Changes to CWG1458 test are fine, because it's still unspecified behavior, so we're conforming either way. Kudos for getting the expected directives (almost) right. https://github.com/llvm/llvm-project/pull/143667 ___

[clang-tools-extra] [clang-tidy] add modernize-use-constexpr check (PR #146553)

2025-07-02 Thread Julian Schmidt via cfe-commits
5chmidti wrote: > Another interesting case, it seems somehow multiple constexprs got added, ex: > > ```c++ > template > constexpr constexpr constexpr constexpr constexpr constexpr constexpr > constexpr int numberOfSidesOfDimension(int dimension); > ``` > > This actually compiles, though with

[clang] [CIR] Clean up FPAttr (PR #146662)

2025-07-02 Thread Henrich Lauko via cfe-commits
https://github.com/xlauko updated https://github.com/llvm/llvm-project/pull/146662 >From a957afae2db5a9dca87048f8e5f5e1c092992a53 Mon Sep 17 00:00:00 2001 From: xlauko Date: Wed, 2 Jul 2025 09:56:38 +0200 Subject: [PATCH] [CIR] Clean up FPAttr - Adds CIR_ prefix to the definition - Removes red

[clang] [CIR] Implement NotEqualOp for ComplexType (PR #146129)

2025-07-02 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/146129 >From 964a930b9f96423d04155b9972bfd8540c59d911 Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Fri, 27 Jun 2025 20:10:48 +0200 Subject: [PATCH 1/6] [CIR] Implement NotEqualOp for ComplexType --- clang/i

[clang] [NFC] Remove getDefaultCallingConvention IsBuiltin (PR #145904)

2025-07-02 Thread Harald van Dijk via cfe-commits
hvdijk wrote: > > Would it not still be important for that for RVV intrinsics? > > Pretty sure we bypass all the normal calling convention lowering, in this > context. Ah, this is confusing. There's two types of RVV intrinsics that use this code. Many use `ManualCodegen` which indeed bypasses

[clang-tools-extra] [clang-tidy] add modernize-use-constexpr check (PR #146553)

2025-07-02 Thread via cfe-commits
@@ -0,0 +1,985 @@ +//===--- UseConstexprCheck.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-Identifier: Ap

[clang-tools-extra] [clang-tidy] add modernize-use-constexpr check (PR #146553)

2025-07-02 Thread via cfe-commits
@@ -0,0 +1,985 @@ +//===--- UseConstexprCheck.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-Identifier: Ap

[clang-tools-extra] [clang-tidy] add modernize-use-constexpr check (PR #146553)

2025-07-02 Thread via cfe-commits
@@ -142,6 +142,10 @@ New checks Finds unscoped (non-class) ``enum`` declarations and suggests using ``enum class`` instead. +- New :doc:`modernize-use-constexpr + ` check that finds functions and + variables that can be declared `constexpr`. EugeneZelenk

[clang-tools-extra] [clang-tidy] add modernize-use-constexpr check (PR #146553)

2025-07-02 Thread via cfe-commits
@@ -0,0 +1,985 @@ +//===--- UseConstexprCheck.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-Identifier: Ap

[clang-tools-extra] [clang-tidy] add modernize-use-constexpr check (PR #146553)

2025-07-02 Thread via cfe-commits
@@ -0,0 +1,985 @@ +//===--- UseConstexprCheck.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-Identifier: Ap

[clang-tools-extra] [clang-tidy] add modernize-use-constexpr check (PR #146553)

2025-07-02 Thread via cfe-commits
@@ -0,0 +1,985 @@ +//===--- UseConstexprCheck.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-Identifier: Ap

[clang] [libcxx] [Clang] Diagnose forming references to nullptr (PR #143667)

2025-07-02 Thread Timm Baeder via cfe-commits
@@ -1662,9 +1662,11 @@ namespace NullptrCast { constexpr A *na = nullptr; constexpr B *nb = nullptr; constexpr A &ra = *nb; // both-error {{constant expression}} \ - // both-note {{cannot access base class of null pointer}} +

[clang] [CIR] Clean up FPAttr (PR #146662)

2025-07-02 Thread Henrich Lauko via cfe-commits
https://github.com/xlauko updated https://github.com/llvm/llvm-project/pull/146662 >From 5d8c80501735c96f600e6454adec33a6c5ead4e0 Mon Sep 17 00:00:00 2001 From: xlauko Date: Wed, 2 Jul 2025 09:56:38 +0200 Subject: [PATCH] [CIR] Clean up FPAttr - Adds CIR_ prefix to the definition - Removes red

[clang-tools-extra] [clang-tidy] add modernize-use-constexpr check (PR #146553)

2025-07-02 Thread via cfe-commits
@@ -0,0 +1,985 @@ +//===--- UseConstexprCheck.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-Identifier: Ap

[clang-tools-extra] [clang-tidy] add modernize-use-constexpr check (PR #146553)

2025-07-02 Thread via cfe-commits
@@ -0,0 +1,985 @@ +//===--- UseConstexprCheck.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-Identifier: Ap

[clang-tools-extra] [clang-tidy] add modernize-use-constexpr check (PR #146553)

2025-07-02 Thread via cfe-commits
@@ -0,0 +1,985 @@ +//===--- UseConstexprCheck.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-Identifier: Ap

[clang] [Clang] Properly use `CommaJoined` for `--offload-arch` (PR #146687)

2025-07-02 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 closed https://github.com/llvm/llvm-project/pull/146687 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-07-02 Thread Balazs Benics via cfe-commits
steakhal wrote: I resign from review. I don't have time to review 100+ lines PRs right now. https://github.com/llvm/llvm-project/pull/146212 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-com

[clang] [CIR] Add mlir-translate to CMake (PR #146608)

2025-07-02 Thread via cfe-commits
https://github.com/Andres-Salamanca closed https://github.com/llvm/llvm-project/pull/146608 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Add OptInfo attribute (PR #146261)

2025-07-02 Thread Sirui Mu via cfe-commits
https://github.com/Lancern closed https://github.com/llvm/llvm-project/pull/146261 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] My change (PR #146729)

2025-07-02 Thread via cfe-commits
https://github.com/ykhatav created https://github.com/llvm/llvm-project/pull/146729 None >From cfd949c1a70ae25c5c35e48d92166b45aef63654 Mon Sep 17 00:00:00 2001 From: "Khatavkar, Yashasvi" Date: Wed, 2 Jul 2025 08:23:14 -0700 Subject: [PATCH 1/2] Fix scoping of dependent typedefs --- clang/l

[clang] [llvm] [HLSL][SPRIV] Handle signed RWBuffer correctly (PR #144774)

2025-07-02 Thread Steven Perron via cfe-commits
https://github.com/s-perron updated https://github.com/llvm/llvm-project/pull/144774 >From 7d3d8bb30863dd860183f7b9635aa34b72a9c3ae Mon Sep 17 00:00:00 2001 From: Steven Perron Date: Wed, 18 Jun 2025 09:19:45 -0400 Subject: [PATCH 1/5] [HLSL][SPRIV] Handle sign RWBuffer correctly MIME-Version:

[clang] ce99db9 - [CIR] Add mlir-translate to CMake (#146608)

2025-07-02 Thread via cfe-commits
Author: Andres-Salamanca Date: 2025-07-02T10:28:38-05:00 New Revision: ce99db9d1b8ab609575893fc8026143d9b4765c9 URL: https://github.com/llvm/llvm-project/commit/ce99db9d1b8ab609575893fc8026143d9b4765c9 DIFF: https://github.com/llvm/llvm-project/commit/ce99db9d1b8ab609575893fc8026143d9b4765c9.di

[clang] d04d255 - [Clang] Properly use `CommaJoined` for `--offload-arch` (#146687)

2025-07-02 Thread via cfe-commits
Author: Joseph Huber Date: 2025-07-02T10:26:32-05:00 New Revision: d04d2557255a55aa3df5f76cfe7ee7cef7bf99a4 URL: https://github.com/llvm/llvm-project/commit/d04d2557255a55aa3df5f76cfe7ee7cef7bf99a4 DIFF: https://github.com/llvm/llvm-project/commit/d04d2557255a55aa3df5f76cfe7ee7cef7bf99a4.diff

[clang] [clang][ARM] Include arm_acle.h in intrin.h on supported platforms (PR #144172)

2025-07-02 Thread Nick Sarnie via cfe-commits
@@ -50,11 +50,11 @@ BUILTIN(__builtin_arm_wfi, "v", "") BUILTIN(__builtin_arm_sev, "v", "") BUILTIN(__builtin_arm_sevl, "v", "") BUILTIN(__builtin_arm_chkfeat, "WUiWUi", "") -TARGET_HEADER_BUILTIN(__yield, "v", "h", ARMACLE_H, ALL_LANGUAGES, "") -TARGET_HEADER_BUILTIN(__wfe,

[clang] [CIR] Add nothrow attribute to the call operation (PR #145178)

2025-07-02 Thread Bruno Cardoso Lopes via cfe-commits
https://github.com/bcardosolopes edited https://github.com/llvm/llvm-project/pull/145178 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [mlir] [flang][flang-driver][mlir][OpenMP] atomic control support (PR #143441)

2025-07-02 Thread Anchu Rajendran S via cfe-commits
https://github.com/anchuraj updated https://github.com/llvm/llvm-project/pull/143441 >From 55e513da2cb2d68dfb91e889bb66b7fdd58090ac Mon Sep 17 00:00:00 2001 From: Anchu Rajendran Date: Wed, 4 Jun 2025 15:12:49 -0500 Subject: [PATCH 1/5] [flang][flang-driver] atomic control support --- clang/i

[clang] Fix scope of typedefs present inside a template class (PR #146729)

2025-07-02 Thread via cfe-commits
https://github.com/ykhatav edited https://github.com/llvm/llvm-project/pull/146729 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-scan-deps] Fix "unterminated conditional directive" bug (PR #146645)

2025-07-02 Thread Ziqing Luo via cfe-commits
@@ -880,6 +880,37 @@ TEST(MinimizeSourceToDependencyDirectivesTest, EXPECT_EQ(pp_eof, Directives[22].Kind); } +TEST(MinimizeSourceToDependencyDirectivesTest, + TestFixedBugThatReportUnterminatedDirectiveFalsely) { + SmallVector Out; + SmallVector Tokens; + SmallVector

[clang] HIPSPV: Unbundle SDL (PR #136412)

2025-07-02 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/lib/Driver/ToolChains/HIPSPV.cpp ``

[clang] [lld] [llvm] [LLVM][WebAssembly] Implement branch hinting proposal (PR #146230)

2025-07-02 Thread Lukas Döllerer via cfe-commits
https://github.com/Lukasdoe updated https://github.com/llvm/llvm-project/pull/146230 From e4b0ccd8e1ac579066c559e890c3d610bbf226fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20D=C3=B6llerer?= Date: Wed, 2 Jul 2025 10:14:20 +0200 Subject: [PATCH] [LLVM][WebAssembly] Implement branch hinting

[clang] Docs: ambiguous use of "explicitly" in [[clang::no_specializaiton]] (PR #143839)

2025-07-02 Thread Corentin Jabot via cfe-commits
cor3ntin wrote: Let's go with @frederick-vs-ja if that makes people happier! https://github.com/llvm/llvm-project/pull/143839 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [lld] [llvm] [LLVM][WebAssembly] Implement branch hinting proposal (PR #146230)

2025-07-02 Thread Lukas Döllerer via cfe-commits
Lukasdoe wrote: - lld now inserts combined branch hint section directly in front of code section - fixed failing tests - reordered branch hints option to fit into alphabetically sorted options declarations https://github.com/llvm/llvm-project/pull/146230

[clang] [Multilib] Extend the Multilib system to support an IncludepPath field. (PR #146651)

2025-07-02 Thread Simi Pallipurath via cfe-commits
https://github.com/simpal01 edited https://github.com/llvm/llvm-project/pull/146651 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Multilib] Extend the Multilib system to support an IncludepPath field. (PR #146651)

2025-07-02 Thread Simi Pallipurath via cfe-commits
https://github.com/simpal01 edited https://github.com/llvm/llvm-project/pull/146651 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Multilib] Extend the Multilib system to support an IncludepPath field. (PR #146651)

2025-07-02 Thread Simi Pallipurath via cfe-commits
https://github.com/simpal01 edited https://github.com/llvm/llvm-project/pull/146651 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Multilib] Extend the Multilib system to support an IncludepPath field. (PR #146651)

2025-07-02 Thread Simi Pallipurath via cfe-commits
https://github.com/simpal01 edited https://github.com/llvm/llvm-project/pull/146651 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Multilib] Extend the Multilib system to support an IncludepPath field. (PR #146651)

2025-07-02 Thread Simi Pallipurath via cfe-commits
https://github.com/simpal01 edited https://github.com/llvm/llvm-project/pull/146651 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Multilib] Extend the Multilib system to support an IncludepPath field. (PR #146651)

2025-07-02 Thread Simi Pallipurath via cfe-commits
https://github.com/simpal01 edited https://github.com/llvm/llvm-project/pull/146651 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-07-02 Thread Mythreya Kuricheti via cfe-commits
https://github.com/MythreyaK updated https://github.com/llvm/llvm-project/pull/146649 >From 7f8581f01c3c25363b77100635c6df7223badba3 Mon Sep 17 00:00:00 2001 From: Mythreya Kuricheti Date: Wed, 2 Jul 2025 01:26:25 -0700 Subject: [PATCH] [clang][CodeComplete] skip explicit obj param in Signatur

[libclc] [libclc] Declare workitem built-ins in clc, move ptx-nvidiacl workitem built-ins into clc (PR #144333)

2025-07-02 Thread Fraser Cormack via cfe-commits
frasercrmck wrote: I am seeing unresolved CLC functions in `nvptx--.bc` and `nvptx64--.bc`. I think it's because we're now building things like `get_num_groups` for `nvptx`/`nvptx64`, whereas previously they were not being built for those targets. We're also not building `__clc_get_num_groups`

[clang] [OpenCL] Add decls for cl_intel_subgroups_char, cl_intel_subgroups_long (PR #146655)

2025-07-02 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Mészáros Gergely (Maetveis) Changes These extensions add char and long support to the subgroup builtins. They are already supported by the Intel Graphics Compiler. --- Full diff: https://github.com/llvm/llvm-project/pull/146655.diff 1 Fi

[clang] [OpenCL] Add decls for cl_intel_subgroups_char, cl_intel_subgroups_long (PR #146655)

2025-07-02 Thread Mészáros Gergely via cfe-commits
https://github.com/Maetveis created https://github.com/llvm/llvm-project/pull/146655 These extensions add char and long support to the subgroup builtins. They are already supported by the Intel Graphics Compiler. From 536ee942918338f655dbf85cc746028bf39bf7b8 Mon Sep 17 00:00:00 2001 From: Gerge

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

2025-07-02 Thread Mészáros Gergely via cfe-commits
https://github.com/Maetveis created https://github.com/llvm/llvm-project/pull/146656 This extension extends the subgroup block read and write functions defined by `cl_intel_subgroups` (and, when supported, `cl_intel_subgroups_char`, `cl_intel_subgroups_short`, and `cl_intel_subgroups_long`) to

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

2025-07-02 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-x86 Author: Mészáros Gergely (Maetveis) Changes This extension extends the subgroup block read and write functions defined by `cl_intel_subgroups` (and, when supported, `cl_intel_subgroups_char`, `cl_intel_subgroups_short`, and `cl_intel_subgro

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

2025-07-02 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Mészáros Gergely (Maetveis) Changes This extension extends the subgroup block read and write functions defined by `cl_intel_subgroups` (and, when supported, `cl_intel_subgroups_char`, `cl_intel_subgroups_short`, and `cl_intel_subgroups_lo

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

2025-07-02 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 h -- clang/lib/Headers/opencl-c.h `` View the d

[clang] [llvm] [RISCV] Add big-endian support to RISC-V backend (PR #146534)

2025-07-02 Thread Pengcheng Wang via cfe-commits
https://github.com/wangpc-pp commented: How are we going to verify the correctness? Does qemu support big-endian riscv64? https://github.com/llvm/llvm-project/pull/146534 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/c

[clang] [OpenCL] Add decls for cl_intel_subgroups_char, cl_intel_subgroups_long (PR #146655)

2025-07-02 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 h -- clang/lib/Headers/opencl-c.h `` View the d

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

2025-07-02 Thread Mészáros Gergely via cfe-commits
Maetveis wrote: > ⚠️ C/C++ code formatter, clang-format found issues in your code. ⚠️ This file is not formatted currently, the changes should match the current formatting style. https://github.com/llvm/llvm-project/pull/146656 ___ cfe-commits mailin

[clang] [OpenCL] Add decls for cl_intel_subgroups_char, cl_intel_subgroups_long (PR #146655)

2025-07-02 Thread Mészáros Gergely via cfe-commits
Maetveis wrote: > ⚠️ C/C++ code formatter, clang-format found issues in your code. ⚠️ This file is not formatted currently, the changes should match the current formatting style. https://github.com/llvm/llvm-project/pull/146655 ___ cfe-commits mailin

[clang] [llvm] [AVR] Handle flash RO data mapped to data space for newer devices (PR #146244)

2025-07-02 Thread Tom Vijlbrief via cfe-commits
https://github.com/tomtor updated https://github.com/llvm/llvm-project/pull/146244 >From a08a6a071db9bf553bb64fcfa39d2ed80e000fe6 Mon Sep 17 00:00:00 2001 From: Tom Vijlbrief Date: Fri, 27 Jun 2025 17:16:35 +0200 Subject: [PATCH 1/2] [AVR] Handle mapped RO data for newer devices --- clang/inc

[clang] clang: Fix parsing of seh exception model (PR #146643)

2025-07-02 Thread Martin Storsjö via cfe-commits
https://github.com/mstorsjo approved this pull request. Thanks, this looks good to me! I'd still wait a little bit in case a Clang maintainer has an opinion on it, but it seems to fix the issue for me. https://github.com/llvm/llvm-project/pull/146643

[clang] [llvm] [AVR] Handle flash RO data mapped to data space for newer devices (PR #146244)

2025-07-02 Thread Ben Shi via cfe-commits
benshi001 wrote: > > I do not think this PR is necessary, since there is no bug, I have > > explained in #146537. > > You are right, so this PR is not a bug fix, but just adding features and a > minor optimization. Currently I am focusing on bugfix and compatibility with avr-gcc-7.3 (which is

[clang] clang: Forward exception_model flag for bitcode inputs (PR #146342)

2025-07-02 Thread Martin Storsjö via cfe-commits
mstorsjo wrote: > > This broke building C++ modules for mingw targets. Repro: > > `empty.cppm`: > > ```c++ > > export module empty; > > ``` > > > > > > > > > > > > > > > > > > > > > > > > ``` > > $ clang -target x86_64-windows-gnu -x c++-module empty.cppm

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

2025-07-02 Thread via cfe-commits
@@ -4210,6 +4215,7 @@ class Parser : public CodeCompletionHandler { /// \endverbatim ExprResult ParseParenExpression(ParenParseOption &ExprType, bool stopIfCastExpr, bool isTypeCast, + bool ParenKnownToBeNon

[clang] [llvm] [AVR] Handle flash RO data mapped to data space for newer devices (PR #146244)

2025-07-02 Thread Ben Shi via cfe-commits
benshi001 wrote: > > I do not think this PR is necessary, since there is no bug, I have > > explained in #146537. > > You are right, so this PR is not a bug fix, but just adding features and a > minor optimization. Currently I am focusing on bugfix and compatibility/substitutability with avr

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

2025-07-02 Thread via cfe-commits
@@ -35,6 +35,7 @@ namespace clang { class TextDiagnostic : public DiagnosticRenderer { raw_ostream &OS; const Preprocessor *PP; + llvm::StringMap> SimplifiedFileNameCache; Sirraide wrote: Not anymore; forgot to remove that. https://github.com/llvm/llvm-p

[clang] [llvm] [AVR] Handle flash RO data mapped to data space for newer devices (PR #146244)

2025-07-02 Thread Ben Shi via cfe-commits
benshi001 wrote: > > I do not think this PR is necessary, since there is no bug, I have > > explained in #146537. > > You are right, so this PR is not a bug fix, but just adding features and a > minor optimization. Currently I am focusing on bugfix and compatibility/substitutability with avr

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

2025-07-02 Thread via cfe-commits
@@ -2403,3 +2403,75 @@ SourceManagerForFile::SourceManagerForFile(StringRef FileName, assert(ID.isValid()); SourceMgr->setMainFileID(ID); } + +StringRef +SourceManager::getNameForDiagnostic(StringRef Filename, +const DiagnosticOptions &O

[clang] [llvm] [AVR] Handle flash RO data mapped to data space for newer devices (PR #146244)

2025-07-02 Thread Tom Vijlbrief via cfe-commits
@@ -651,8 +651,19 @@ void AVR::Linker::ConstructJob(Compilation &C, const JobAction &JA, // This is almost always required because otherwise avr-ld // will assume 'avr2' and warn about the program being larger // than the bare minimum supports. - if (Linker.find("avr-ld

[clang] [clang] Add option for -nolibc in Driver/ToolChains/Baremetal.cpp (PR #145700)

2025-07-02 Thread William Huynh via cfe-commits
https://github.com/saturn691 updated https://github.com/llvm/llvm-project/pull/145700 >From 97c87ceb781eee0a04bd93299a341e03cbe68ddd Mon Sep 17 00:00:00 2001 From: William Huynh Date: Wed, 25 Jun 2025 14:25:22 +0100 Subject: [PATCH 1/2] [clang] Add option for -nolibc in Driver/ToolChains/Barem

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

2025-07-02 Thread Yanzuo Liu via cfe-commits
https://github.com/zwuis edited https://github.com/llvm/llvm-project/pull/146649 ___ 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-07-02 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/5] [Clang] [Diagnostics] Simplify filenames that contain '..' ---

[clang] [clang] Add option for -nolibc in Driver/ToolChains/Baremetal.cpp (PR #145700)

2025-07-02 Thread William Huynh via cfe-commits
https://github.com/saturn691 updated https://github.com/llvm/llvm-project/pull/145700 >From 97c87ceb781eee0a04bd93299a341e03cbe68ddd Mon Sep 17 00:00:00 2001 From: William Huynh Date: Wed, 25 Jun 2025 14:25:22 +0100 Subject: [PATCH 1/4] [clang] Add option for -nolibc in Driver/ToolChains/Barem

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

2025-07-02 Thread via cfe-commits
Sirraide wrote: Ok, looks like the clang-tidy test failure is related to the `-header-filter` option: ```C++ // Check that `-header-filter` operates on the same file paths as paths in // diagnostics printed by ClangTidy. #include "dir1/dir2/../header_alias.h" // CHECK_HEADER_ALIAS: dir1/dir2/../

[clang] [llvm] [Clang][OpenMP] Non-contiguous strided update (PR #144635)

2025-07-02 Thread Amit Tiwari via cfe-commits
https://github.com/amitamd7 updated https://github.com/llvm/llvm-project/pull/144635 >From bdff136d17695f009bdbe6a133e1241cbb233ed5 Mon Sep 17 00:00:00 2001 From: amtiwari Date: Mon, 16 Jun 2025 01:07:01 -0400 Subject: [PATCH] strided_update_offloading with lit-tests and clang-unittests added

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

2025-07-02 Thread Juan Manuel Martinez Caamaño via cfe-commits
jmmartinez wrote: If there are no other remarks for landing this patch, I'll land it next week. https://github.com/llvm/llvm-project/pull/143507 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe

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

2025-07-02 Thread Matt Arsenault via cfe-commits
Juan Manuel Martinez =?utf-8?q?Caama=C3=B1o?= , Juan Manuel Martinez =?utf-8?q?Caama=C3=B1o?= , Juan Manuel Martinez =?utf-8?q?Caama=C3=B1o?= , Juan Manuel Martinez =?utf-8?q?Caama=C3=B1o?= , Juan Manuel Martinez =?utf-8?q?Caama=C3=B1o?= Message-ID: In-Reply-To: https://github.com/arsenm approv

[clang] [clang][SPIRV] Remove volatile variants of GenericCastToPtr* built-ins (PR #146298)

2025-07-02 Thread Victor Lomuller via cfe-commits
@@ -93,16 +73,6 @@ __SPIRV_BUILTIN_ALIAS(__builtin_spirv_generic_cast_to_ptr_explicit) __private const void * __spirv_GenericCastToPtrExplicit_ToPrivate(__generic const void *, int) __SPIRV_NOEXCEPT; -extern __SPIRV_overloadable -__SP

[clang] [clang] Add option for -nolibc in Driver/ToolChains/Baremetal.cpp (PR #145700)

2025-07-02 Thread William Huynh via cfe-commits
https://github.com/saturn691 updated https://github.com/llvm/llvm-project/pull/145700 >From 97c87ceb781eee0a04bd93299a341e03cbe68ddd Mon Sep 17 00:00:00 2001 From: William Huynh Date: Wed, 25 Jun 2025 14:25:22 +0100 Subject: [PATCH 1/3] [clang] Add option for -nolibc in Driver/ToolChains/Barem

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

2025-07-02 Thread via cfe-commits
Sirraide wrote: > should the header filter apply to the original filename, I mean, I guess this beacuse it’s what the user specified and it’s what we’re currently doing? It’s just that the end result might be weird, e.g. if a user writes `-exclude-header=filter='a/foo.h'` and then we print dia

[clang] [clang] Add option for -nolibc in Driver/ToolChains/Baremetal.cpp (PR #145700)

2025-07-02 Thread William Huynh via cfe-commits
https://github.com/saturn691 edited https://github.com/llvm/llvm-project/pull/145700 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [lld] [llvm] [LLVM][WebAssembly] Implement branch hinting proposal (PR #146230)

2025-07-02 Thread Lukas Döllerer via cfe-commits
@@ -2608,6 +2612,21 @@ void WebAssemblyCFGStackify::rewriteDepthImmediates(MachineFunction &MF) { Stack.push_back(std::make_pair(&MBB, &MI)); break; + case WebAssembly::BR_IF: { +// this is the last place where we can easily calculate the branch +

[clang] [llvm] [SPIRV] Add more id and range builtIns (PR #143909)

2025-07-02 Thread Michal Paszkowski via cfe-commits
https://github.com/michalpaszkowski approved this pull request. https://github.com/llvm/llvm-project/pull/143909 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [lld] [llvm] [LLVM][WebAssembly] Implement branch hinting proposal (PR #146230)

2025-07-02 Thread Lukas Döllerer via cfe-commits
@@ -2608,6 +2612,21 @@ void WebAssemblyCFGStackify::rewriteDepthImmediates(MachineFunction &MF) { Stack.push_back(std::make_pair(&MBB, &MI)); break; + case WebAssembly::BR_IF: { +// this is the last place where we can easily calculate the branch +

[clang] [lld] [llvm] [LLVM][WebAssembly] Implement branch hinting proposal (PR #146230)

2025-07-02 Thread Lukas Döllerer via cfe-commits
https://github.com/Lukasdoe edited https://github.com/llvm/llvm-project/pull/146230 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [lld] [llvm] [LLVM][WebAssembly] Implement branch hinting proposal (PR #146230)

2025-07-02 Thread Lukas Döllerer via cfe-commits
https://github.com/Lukasdoe edited https://github.com/llvm/llvm-project/pull/146230 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [SPIRV] Add more id and range builtIns (PR #143909)

2025-07-02 Thread Nathan Gauër via cfe-commits
https://github.com/Keenuts approved this pull request. https://github.com/llvm/llvm-project/pull/143909 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [SPIRV] Add more id and range builtIns (PR #143909)

2025-07-02 Thread Farzon Lotfi via cfe-commits
https://github.com/farzonl approved this pull request. https://github.com/llvm/llvm-project/pull/143909 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISCV] Add big-endian support to RISC-V backend (PR #146534)

2025-07-02 Thread Djordje Todorovic via cfe-commits
djtodoro wrote: > How are we going to verify the correctness? Does qemu support big-endian > riscv64? Good question. We have an initial support for it developed internally inside MIPS, for both qemu and Linux kernel, but team from Codethink is trying to upstream similar effort already, so ple

[clang] [libcxx] [clang] [modules] Add err_main_in_named_module (PR #146635)

2025-07-02 Thread Ashwin Banwari via cfe-commits
https://github.com/kish1n updated https://github.com/llvm/llvm-project/pull/146635 >From 76bd9279c0410fa53c8a8ca34229f5ca3a4812e3 Mon Sep 17 00:00:00 2001 From: Ashwin Banwari Date: Mon, 30 Jun 2025 18:10:24 -0700 Subject: [PATCH 1/5] Reapply "[clang] [modules] Add err_main_in_named_module (#1

[clang] [clang-scan-deps] Fix "unterminated conditional directive" bug (PR #146645)

2025-07-02 Thread Ziqing Luo via cfe-commits
https://github.com/ziqingluo-90 updated https://github.com/llvm/llvm-project/pull/146645 >From b9c3c4e0eca567937e59b2ae21f805d8156f7204 Mon Sep 17 00:00:00 2001 From: Ziqing Luo Date: Wed, 2 Jul 2025 15:46:37 +0800 Subject: [PATCH 1/2] [clang-scan-deps] Fix "unterminated conditional directive"

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

2025-07-02 Thread Mythreya Kuricheti via cfe-commits
https://github.com/MythreyaK edited https://github.com/llvm/llvm-project/pull/146649 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AVR] Handle flash RO data mapped to data space for newer devices (PR #146244)

2025-07-02 Thread Tom Vijlbrief via cfe-commits
tomtor wrote: > I do not think this PR is necessary, since there is no bug, I have explained > in #146537. You are right, so this PR is not a bug fix, but just adding features and a minor optimization. https://github.com/llvm/llvm-project/pull/146244 _

[clang] [llvm] [AVR] Handle flash RO data mapped to data space for newer devices (PR #146244)

2025-07-02 Thread Tom Vijlbrief via cfe-commits
https://github.com/tomtor edited https://github.com/llvm/llvm-project/pull/146244 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-scan-deps] Fix "unterminated conditional directive" bug (PR #146645)

2025-07-02 Thread Ziqing Luo via cfe-commits
https://github.com/ziqingluo-90 created https://github.com/llvm/llvm-project/pull/146645 `clang-scan-deps` threw "unterminated conditional directive" error falsely on the following example: ``` #ifndef __TEST #define __TEST #if defined(__TEST_DUMMY) #if defined(__TEST_DUMMY2) #pragma GCC w

[clang] [clang-scan-deps] Fix "unterminated conditional directive" bug (PR #146645)

2025-07-02 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Ziqing Luo (ziqingluo-90) Changes `clang-scan-deps` threw "unterminated conditional directive" error falsely on the following example: ``` #ifndef __TEST #define __TEST #if defined(__TEST_DUMMY) #if defined(__TEST_DUMMY2) #pragma GCC

[clang] [NFC][C++][Modules] Mark P2788R0(DR) as implemented and added more test (PR #144214)

2025-07-02 Thread Corentin Jabot via cfe-commits
cor3ntin wrote: Adding @hubert-reinterpretcast I think some / most of the tests are unrelated to the paper, but there seem to be sufficient tests in 62a16d5e2069542351c164aa0e3b216dc8e153c4 https://github.com/llvm/llvm-project/pull/144214 ___ cfe-c

[clang] [llvm] [DenseMap] Do not align pointer sentinel values (NFC) (PR #146595)

2025-07-02 Thread Nikita Popov via cfe-commits
nikic wrote: > Do you know if this runs into issues with undefined behavior? I don't know > the exact rules, but remember reading something along the lines that some OOB > pointers cannot even be compared without running into UB. Having pointers > that don't respect type alignment sounds like

[clang] [llvm] [WIP] ABI Lowering Library (PR #140112)

2025-07-02 Thread Nikita Popov via cfe-commits
@@ -871,20 +928,50 @@ const CGFunctionInfo &CodeGenTypes::arrangeLLVMFunctionInfo( } else if (info.getCC() == CC_Swift || info.getCC() == CC_SwiftAsync) { swiftcall::computeABIInfo(CGM, *FI); } else { -CGM.getABIInfo().computeInfo(*FI); +if (isBPF) + CGM.f

[clang] [clang] Handle consteval constructors with default initialization. (PR #144970)

2025-07-02 Thread Corentin Jabot via cfe-commits
https://github.com/cor3ntin approved this pull request. Can you add a changelog entry? LGTM otherwiswe https://github.com/llvm/llvm-project/pull/144970 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listi

[clang] [llvm] [WIP] ABI Lowering Library (PR #140112)

2025-07-02 Thread Nikita Popov via cfe-commits
@@ -825,6 +831,47 @@ void computeSPIRKernelABIInfo(CodeGenModule &CGM, CGFunctionInfo &FI); } } // namespace clang +ABIArgInfo CodeGenTypes::convertABIArgInfo(const llvm::abi::ABIArgInfo &abiInfo, + QualType type) { + ABIArgInfo res

[clang] [clang-scan-deps] Fix "unterminated conditional directive" bug (PR #146645)

2025-07-02 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/lib/Lex/DependencyDirectivesScanner.cpp clang/

[clang] [llvm] [WIP] ABI Lowering Library (PR #140112)

2025-07-02 Thread Nikita Popov via cfe-commits
@@ -17,19 +17,50 @@ #include "llvm/ABI/ABIFunctionInfo.h" #include "llvm/ABI/Types.h" #include +#include +#include namespace llvm { namespace abi { +struct ABICompatInfo { + unsigned Version = UINT_MAX; + + struct ABIFlags { +bool PassInt128VectorsInMem : 1; +

[clang] Docs: ambiguous use of "explicitly" in [[clang::no_specializaiton]] (PR #143839)

2025-07-02 Thread Nikolas Klauser via cfe-commits
philnik777 wrote: > > Thank you all for weighing in here. It seems there is some disagreement on > > how to move forward with this. I believe the current change addresses the > > initial issue this PR is tied to, which aimed to clarify this attribute > > affects more than just explicit special

[clang] [clang-scan-deps] Fix "unterminated conditional directive" bug (PR #146645)

2025-07-02 Thread Ziqing Luo via cfe-commits
https://github.com/ziqingluo-90 edited https://github.com/llvm/llvm-project/pull/146645 ___ 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-07-02 Thread Corentin Jabot via cfe-commits
@@ -2403,3 +2403,75 @@ SourceManagerForFile::SourceManagerForFile(StringRef FileName, assert(ID.isValid()); SourceMgr->setMainFileID(ID); } + +StringRef +SourceManager::getNameForDiagnostic(StringRef Filename, +const DiagnosticOptions &O

[clang] [llvm] [clang][python][test] Move python binding tests to lit framework (PR #146486)

2025-07-02 Thread Jannick Kremer via cfe-commits
https://github.com/DeinAlptraum closed https://github.com/llvm/llvm-project/pull/146486 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

<    1   2   3   4   5   >