[clang] 8ba0d0f - [clang][bytcode][NFC] Use UnsignedOrNone for global ids (#157328)

2025-09-07 Thread via cfe-commits
Author: Timm Baeder Date: 2025-09-08T08:56:46+02:00 New Revision: 8ba0d0f72f25229cfa2de9b7352866d7a33c1e54 URL: https://github.com/llvm/llvm-project/commit/8ba0d0f72f25229cfa2de9b7352866d7a33c1e54 DIFF: https://github.com/llvm/llvm-project/commit/8ba0d0f72f25229cfa2de9b7352866d7a33c1e54.diff L

[clang] [clang][bytcode][NFC] Use UnsignedOrNone for global ids (PR #157328)

2025-09-07 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr closed https://github.com/llvm/llvm-project/pull/157328 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clangd] Retrieve documentation for member function instance from index (PR #153337)

2025-09-07 Thread Nathan Ridge via cfe-commits
HighCommander4 wrote: Review ping https://github.com/llvm/llvm-project/pull/153337 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][RISCV] support BITINT with mixed-type (PR #156592)

2025-09-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Piyou Chen (BeMg) Changes Implement https://github.com/riscv-non-isa/riscv-elf-psabi-doc/pull/419. This patch makes the type extension based on the variable type for BIGINT, rather than using sign extension for all cases. --- Full diff

[clang] [clang][RISCV] support BITINT with mixed-type (PR #156592)

2025-09-07 Thread Piyou Chen via cfe-commits
https://github.com/BeMg updated https://github.com/llvm/llvm-project/pull/156592 >From 092700505e150a5de6e623bf12f0dbd557017e24 Mon Sep 17 00:00:00 2001 From: Piyou Chen Date: Fri, 13 Jun 2025 03:11:08 -0700 Subject: [PATCH 1/4] [clang][RISCV] support BITINT with mixed-type --- clang/lib/CodeG

[clang-tools-extra] c5ed3c6 - [clang-tidy] Minor documentation wording for performance-noexcept-move-constructor (#157384)

2025-09-07 Thread via cfe-commits
Author: Nicolas van Kempen Date: 2025-09-08T04:56:10Z New Revision: c5ed3c6073aa6b22baff126b901a297fba7ecf64 URL: https://github.com/llvm/llvm-project/commit/c5ed3c6073aa6b22baff126b901a297fba7ecf64 DIFF: https://github.com/llvm/llvm-project/commit/c5ed3c6073aa6b22baff126b901a297fba7ecf64.diff

[clang-tools-extra] [clang-tidy] Minor documentation wording for performance-noexcept-move-constructor (PR #157384)

2025-09-07 Thread Nicolas van Kempen via cfe-commits
nicovank wrote: Wow, I thought auto merge would wait for a reviewer approval. Oops. Good thing this is harmless. Please let me know if there was an issue. https://github.com/llvm/llvm-project/pull/157384 ___ cfe-commits mailing list cfe-commits@lists.

[clang-tools-extra] [clang-tidy] New bugprone-derived-method-shadowing-base-method (PR #154746)

2025-09-07 Thread via cfe-commits
https://github.com/t-a-james updated https://github.com/llvm/llvm-project/pull/154746 >From 39ad4945d05f3e88fd32dfdea585aa99c6ba985f Mon Sep 17 00:00:00 2001 From: Tom James Date: Thu, 21 Aug 2025 13:14:24 +0100 Subject: [PATCH 01/30] [clang-tidy] New bugprone-method-hiding check --- .../bugp

[clang-tools-extra] [clang-tidy] New bugprone-derived-method-shadowing-base-method (PR #154746)

2025-09-07 Thread via cfe-commits
https://github.com/t-a-james updated https://github.com/llvm/llvm-project/pull/154746 >From 39ad4945d05f3e88fd32dfdea585aa99c6ba985f Mon Sep 17 00:00:00 2001 From: Tom James Date: Thu, 21 Aug 2025 13:14:24 +0100 Subject: [PATCH 01/30] [clang-tidy] New bugprone-method-hiding check --- .../bugp

[clang-tools-extra] [clang-tidy] New bugprone-derived-method-shadowing-base-method (PR #154746)

2025-09-07 Thread via cfe-commits
@@ -0,0 +1,124 @@ +// RUN: %check_clang_tidy %s bugprone-derived-method-shadowing-base-method %t + +class Base +{ +void method(); +void methodWithArg(int I); + +virtual Base* getThis() = 0; +}; + +class A : public Base +{ +public: +void method(); +// CHECK-MESSAGE

[clang-tools-extra] [clang-tidy] New bugprone-derived-method-shadowing-base-method (PR #154746)

2025-09-07 Thread via cfe-commits
@@ -0,0 +1,127 @@ +//===--===// +// +// 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] [Clang] [Sema] Make `-Wincompatible-pointer-types` an error by default (PR #157364)

2025-09-07 Thread Sam James via cfe-commits
thesamesam wrote: https://github.com/llvm/llvm-project/issues/74605 https://github.com/llvm/llvm-project/pull/157364 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] New bugprone-derived-method-shadowing-base-method (PR #154746)

2025-09-07 Thread via cfe-commits
@@ -0,0 +1,127 @@ +//===--===// +// +// 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-tools-extra] [clang-tidy] New bugprone-derived-method-shadowing-base-method (PR #154746)

2025-09-07 Thread via cfe-commits
https://github.com/t-a-james updated https://github.com/llvm/llvm-project/pull/154746 >From 39ad4945d05f3e88fd32dfdea585aa99c6ba985f Mon Sep 17 00:00:00 2001 From: Tom James Date: Thu, 21 Aug 2025 13:14:24 +0100 Subject: [PATCH 01/25] [clang-tidy] New bugprone-method-hiding check --- .../bugp

[clang] [lldb] [llvm] [mlir] MC: Add Triple overloads for more MC constructors (PR #157321)

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

[clang-tools-extra] [clang-tidy] Minor documentation wording for performance-noexcept-move-constructor (PR #157384)

2025-09-07 Thread Nicolas van Kempen via cfe-commits
https://github.com/nicovank closed https://github.com/llvm/llvm-project/pull/157384 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Minor documentation wording for performance-noexcept-move-constructor (PR #157384)

2025-09-07 Thread Nicolas van Kempen via cfe-commits
nicovank wrote: Feel free to ship immediately if OK. https://github.com/llvm/llvm-project/pull/157384 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Minor documentation wording for performance-noexcept-move-constructor (PR #157384)

2025-09-07 Thread Nicolas van Kempen via cfe-commits
https://github.com/nicovank auto_merge_enabled https://github.com/llvm/llvm-project/pull/157384 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Minor documentation wording for performance-noexcept-move-constructor (PR #157384)

2025-09-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Nicolas van Kempen (nicovank) Changes Fix #157343. --- Full diff: https://github.com/llvm/llvm-project/pull/157384.diff 1 Files Affected: - (modified) clang-tools-extra/docs/clang-tidy/checks/performance/noexcept-move-con

[clang-tools-extra] [clang-tidy] Minor documentation wording for performance-noexcept-move-constructor (PR #157384)

2025-09-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: Nicolas van Kempen (nicovank) Changes Fix #157343. --- Full diff: https://github.com/llvm/llvm-project/pull/157384.diff 1 Files Affected: - (modified) clang-tools-extra/docs/clang-tidy/checks/performance/noexcept-move-constructo

[clang-tools-extra] [clang-tidy] Minor documentation wording for performance-noexcept-move-constructor (PR #157384)

2025-09-07 Thread Nicolas van Kempen via cfe-commits
https://github.com/nicovank created https://github.com/llvm/llvm-project/pull/157384 Fix #157343. >From 9d425a009d17385cc9bf1b9649084e68fde65c9f Mon Sep 17 00:00:00 2001 From: Nicolas van Kempen Date: Mon, 8 Sep 2025 00:44:15 -0400 Subject: [PATCH] [clang-tidy] Minor documentation wording fo

[clang] [lldb] [llvm] [mlir] MC: Add Triple overloads for more MC constructors (PR #157321)

2025-09-07 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `lldb-remote-linux-ubuntu` running on `as-builder-9` while building `bolt,clang,lldb,llvm,mlir` at step 16 "test-check-lldb-api". Full details are available at: https://lab.llvm.org/buildbot/#/builders/195/builds/14270 Here

[clang] [lldb] [llvm] [mlir] MC: Add Triple overloads for more MC constructors (PR #157321)

2025-09-07 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm closed https://github.com/llvm/llvm-project/pull/157321 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [Clang-Tidy] Handle nested-name-specifier in "llvm-prefer-isa-or-dyn-cast-in-conditionals" (PR #155982)

2025-09-07 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `sanitizer-x86_64-linux-fast` running on `sanitizer-buildbot4` while building `clang-tools-extra` at step 2 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/169/builds/14787 Here is the rel

[clang] [clang-format] Add option AllowShortRecordOnASingleLine (PR #154580)

2025-09-07 Thread Tomáš Slanina via cfe-commits
https://github.com/itzexpoexpo updated https://github.com/llvm/llvm-project/pull/154580 From 000ea7fb5703f9a409d64c2ba61e556e21187cee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Slanina?= Date: Wed, 20 Aug 2025 19:28:23 +0200 Subject: [PATCH 01/15] [clang-format] Add option Allo

[clang] [lldb] [llvm] [mlir] MC: Add Triple overloads for more MC constructors (PR #157321)

2025-09-07 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm updated https://github.com/llvm/llvm-project/pull/157321 >From 5f2205d454e38e63ab6d9ed2a41ff8d8b674ec6b Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Sun, 7 Sep 2025 09:03:22 +0900 Subject: [PATCH 1/2] MC: Add Triple overloads for more MC constructors Avoids mor

[clang] [lldb] [llvm] [mlir] MC: Add Triple overloads for more MC constructors (PR #157321)

2025-09-07 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm auto_merge_enabled https://github.com/llvm/llvm-project/pull/157321 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [Clang-Tidy] Handle nested-name-specifier in "llvm-prefer-isa-or-dyn-cast-in-conditionals" (PR #155982)

2025-09-07 Thread Yanzuo Liu via cfe-commits
https://github.com/zwuis closed https://github.com/llvm/llvm-project/pull/155982 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] 2ec6b3b - [Clang-Tidy] Handle nested-name-specifier in "llvm-prefer-isa-or-dyn-cast-in-conditionals" (#155982)

2025-09-07 Thread via cfe-commits
Author: Yanzuo Liu Date: 2025-09-08T10:19:52+08:00 New Revision: 2ec6b3bceda275b4146bb229668e38797d6afe62 URL: https://github.com/llvm/llvm-project/commit/2ec6b3bceda275b4146bb229668e38797d6afe62 DIFF: https://github.com/llvm/llvm-project/commit/2ec6b3bceda275b4146bb229668e38797d6afe62.diff LO

[clang-tools-extra] [Clang-Tidy] Handle nested-name-specifier in "llvm-prefer-isa-or-dyn-cast-in-conditionals" (PR #155982)

2025-09-07 Thread Yanzuo Liu via cfe-commits
zwuis wrote: Thank you for your review! https://github.com/llvm/llvm-project/pull/155982 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [lldb] [llvm] [mlir] MC: Add Triple overloads for more MC constructors (PR #157321)

2025-09-07 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm updated https://github.com/llvm/llvm-project/pull/157321 >From 5f2205d454e38e63ab6d9ed2a41ff8d8b674ec6b Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Sun, 7 Sep 2025 09:03:22 +0900 Subject: [PATCH] MC: Add Triple overloads for more MC constructors Avoids more Tr

[clang-tools-extra] [Clang-Tidy] Handle nested-name-specifier in "llvm-prefer-isa-or-dyn-cast-in-conditionals" (PR #155982)

2025-09-07 Thread Yanzuo Liu via cfe-commits
https://github.com/zwuis updated https://github.com/llvm/llvm-project/pull/155982 >From 426caa9f66cddd1deac23b397baf75f6809f6f52 Mon Sep 17 00:00:00 2001 From: Yanzuo Liu Date: Fri, 29 Aug 2025 15:15:24 +0800 Subject: [PATCH 1/6] Handle nested-name-specifier in "llvm-prefer-isa-or-dyn-cast-in-

[clang] [clang-format] Add option AllowShortRecordOnASingleLine (PR #154580)

2025-09-07 Thread Tomáš Slanina via cfe-commits
itzexpoexpo wrote: Nevermind, I missed that in this case `Never` should not apply since the record is not considered as on a single line, only the block is, so your expected behavior is indeed correct. I'll look into fixing it. https://github.com/llvm/llvm-project/pull/154580 _

[clang] [llvm] [mlir] MC: Add Triple overloads for more MC constructors (PR #157321)

2025-09-07 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay approved this pull request. https://github.com/llvm/llvm-project/pull/157321 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Fix side effects resolving overloads of builtin functions (#138651) (PR #154034)

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

[clang] [clang] Fix side effects resolving overloads of builtin functions (#138651) (PR #154034)

2025-09-07 Thread via cfe-commits
comex wrote: Updated. Aside from adding a release note, I also discovered some related issues that are fixed by adding a `SFINAETrap` in addition to the `EnterExpressionEvaluationContext`. See the added test in `non-trivial-c-union.m` (the `__builtin_addressof` call previously yielded a com

[clang] [clang] Fix side effects resolving overloads of builtin functions (#138651) (PR #154034)

2025-09-07 Thread via cfe-commits
https://github.com/comex updated https://github.com/llvm/llvm-project/pull/154034 >From 5a0549b35cd5b3b4ecb8a25bcde1560cf85c094d Mon Sep 17 00:00:00 2001 From: comex Date: Sun, 17 Aug 2025 12:41:44 -0700 Subject: [PATCH] [clang] Fix side effects resolving overloads of builtin functions (#13865

[clang] [clang-format] Add option AllowShortRecordOnASingleLine (PR #154580)

2025-09-07 Thread Tomáš Slanina via cfe-commits
itzexpoexpo wrote: Wouldn't this be the correct behavior though? Since records are a subset of blocks, it feels like it should override the blocks option, letting it be the catch-all and `...Record...` an exception. Although looking at `tryMergeSimpleBlock`, the option already overrides `Allo

[clang-tools-extra] [Clang-Tidy] Handle nested-name-specifier in "llvm-prefer-isa-or-dyn-cast-in-conditionals" (PR #155982)

2025-09-07 Thread via cfe-commits
@@ -196,6 +196,16 @@ Changes in existing checks adding an option to allow pointer arithmetic via prefix/postfix increment or decrement operators. +- Improved :doc:`llvm-prefer-isa-or-dyn-cast-in-conditionals + ` check: + + - Fix-it handles Callees with nested-name-specif

[clang-tools-extra] [Clang-Tidy] Handle nested-name-specifier in "llvm-prefer-isa-or-dyn-cast-in-conditionals" (PR #155982)

2025-09-07 Thread via cfe-commits
@@ -22,105 +23,104 @@ AST_MATCHER(Expr, isMacroID) { return Node.getExprLoc().isMacroID(); } void PreferIsaOrDynCastInConditionalsCheck::registerMatchers( MatchFinder *Finder) { - auto Condition = hasCondition(implicitCastExpr(has( - callExpr(unless(isMacroID()), un

[clang] [libcxx] [clang][ThreadSafety] Handle mutex scope (PR #157171)

2025-09-07 Thread Aaron Puchert via cfe-commits
https://github.com/aaronpuchert edited https://github.com/llvm/llvm-project/pull/157171 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libclc] [Clang] Rename elementwise builtins to `clzg` and `ctzg` (PR #157128)

2025-09-07 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 updated https://github.com/llvm/llvm-project/pull/157128 >From 97ee7e3b1cfc06b434b71987b9b0a9fd8b14a236 Mon Sep 17 00:00:00 2001 From: Joseph Huber Date: Fri, 5 Sep 2025 10:42:07 -0500 Subject: [PATCH 1/2] [Clang] Rename elementwise builtins to `clzg` and `ctzg` Summ

[clang] [clang-format] Add option AllowShortRecordOnASingleLine (PR #154580)

2025-09-07 Thread via cfe-commits
=?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= S

[clang] [clang][CodeGen][MSVC] Return vector types from methods indirectly (PR #157365)

2025-09-07 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] [clang][CodeGen][MSVC] Return vector types from methods indirectly (PR #157365)

2025-09-07 Thread Henry Baba-Weiss via cfe-commits
henrybw wrote: cc @RKSimon @rnk @efriedma-quic https://github.com/llvm/llvm-project/pull/157365 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][CodeGen][MSVC] Return vector types from methods indirectly (PR #157365)

2025-09-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Henry Baba-Weiss (henrybw) Changes The MSVC ABI almost always returns vector types directly, but on x86 and x86_64, there seems to be a special case for member functions, which return vector types indirectly. Fixes #104. --- Full diff:

[clang] [clang][CodeGen][MSVC] Return vector types from methods indirectly (PR #157365)

2025-09-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Henry Baba-Weiss (henrybw) Changes The MSVC ABI almost always returns vector types directly, but on x86 and x86_64, there seems to be a special case for member functions, which return vector types indirectly. Fixes #104. --- Ful

[clang] [libclc] [Clang] Rename elementwise builtins to `clzg` and `ctzg` (PR #157128)

2025-09-07 Thread Joseph Huber via cfe-commits
jhuber6 wrote: > I don't really mind what they're called. As I said in the original RFC and PR > that introduced the builtins, I have no particular favourites. > > However, do note that the elementwise builtins are not _exactly_ like > clzg/ctzg in that they don't have _target-specific_ zero-i

[clang] [clang][CodeGen][MSVC] Return vector types from methods indirectly (PR #157365)

2025-09-07 Thread Henry Baba-Weiss via cfe-commits
https://github.com/henrybw created https://github.com/llvm/llvm-project/pull/157365 The MSVC ABI almost always returns vector types directly, but on x86 and x86_64, there seems to be a special case for member functions, which return vector types indirectly. Fixes #104. >From 8f42b86f8d487b9f

[clang] [libcxx] [clang][ThreadSafety] Handle mutex scope (PR #157171)

2025-09-07 Thread Aaron Puchert via cfe-commits
aaronpuchert wrote: Commented on #156760: the issues is that we don't support scoped lockable arguments for the attributes. (That is, we support a different syntax since #110523, but we can't use that for `std::lock` which accepts both lockable and scoped lockable arguments, possibly even mixe

[clang] Thread Safety Analysis: Graduate ACQUIRED_BEFORE() and ACQUIRED_AFTER() from beta features (PR #152853)

2025-09-07 Thread Aaron Puchert via cfe-commits
aaronpuchert wrote: The behavior of before/after is a bit weird in some cases, but I guess it's mostly used within the same class where it should be fine. Unlike the rest of the analysis, it doesn't work with expressions but strips them down to the bare `FieldDecl` or `VarDecl`. This has some

[clang] [libcxx] [clang][ThreadSafety] Handle mutex scope (PR #157171)

2025-09-07 Thread Aaron Puchert via cfe-commits
@@ -0,0 +1,45 @@ +// RUN: %clang_cc1 -include %s -verify -fsyntax-only -Wthread-safety %s + +#ifndef HEADER +#define HEADER + +#define LOCKABLE__attribute__ ((lockable)) +#define EXCLUSIVE_LOCK_FUNCTION(...) __attribute__ ((exclusive_lock_function(__VA_ARGS__))) + +

[clang] [NFC] Change const char* to StringRef (PR #154179)

2025-09-07 Thread Chris B via cfe-commits
https://github.com/llvm-beanz closed https://github.com/llvm/llvm-project/pull/154179 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 799d346 - [NFC] Change const char* to StringRef (#154179)

2025-09-07 Thread via cfe-commits
Author: Chris B Date: 2025-09-07T16:05:37-05:00 New Revision: 799d3466fa97e24082cb036e71a7a92f72597b4e URL: https://github.com/llvm/llvm-project/commit/799d3466fa97e24082cb036e71a7a92f72597b4e DIFF: https://github.com/llvm/llvm-project/commit/799d3466fa97e24082cb036e71a7a92f72597b4e.diff LOG:

[clang] [libcxx] [clang][ThreadSafety] Handle mutex scope (PR #157171)

2025-09-07 Thread Aaron Puchert via cfe-commits
@@ -0,0 +1,45 @@ +// RUN: %clang_cc1 -include %s -verify -fsyntax-only -Wthread-safety %s + +#ifndef HEADER +#define HEADER + +#define LOCKABLE__attribute__ ((lockable)) +#define EXCLUSIVE_LOCK_FUNCTION(...) __attribute__ ((exclusive_lock_function(__VA_ARGS__))) + +

[clang] Allow for custom code model in clang::Interpreter (PR #156977)

2025-09-07 Thread Jeaye Wilkerson via cfe-commits
https://github.com/jeaye updated https://github.com/llvm/llvm-project/pull/156977 >From 65d55e32ffa78138c016040c1344e929528a017b Mon Sep 17 00:00:00 2001 From: jeaye Date: Thu, 4 Sep 2025 13:48:40 -0700 Subject: [PATCH 1/2] Allow for custom code model in clang::Interpreter This is necessary wh

[clang] [Clang] [Sema] Make `-Wincompatible-pointer-types` an error by default (PR #157364)

2025-09-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-backend-x86 Author: None (Sirraide) Changes GCC 14 also made this an error by default, and I thought it’d make sense to follow suit. --- Patch is 146.31 KiB, truncated to 20.00 KiB below, full version: https://github.com/ll

[clang] [libcxx] [clang][ThreadSafety] Handle mutex scope (PR #157171)

2025-09-07 Thread Aaron Puchert via cfe-commits
https://github.com/aaronpuchert requested changes to this pull request. It looks like there is some confusion around the concepts here: `unique_lock` is not a `lockable` but a [`scoped_lockable`](https://clang.llvm.org/docs/ThreadSafetyAnalysis.html#scoped-capability). The latter should be aut

[clang] [clang-repl] Teach clang-repl how to load PCHs (reprise) (PR #157359)

2025-09-07 Thread Jeaye Wilkerson via cfe-commits
https://github.com/jeaye updated https://github.com/llvm/llvm-project/pull/157359 >From 73669c01825214c51d0ddb79dce6ec0235633d08 Mon Sep 17 00:00:00 2001 From: Vassil Vassilev Date: Thu, 30 May 2024 05:05:41 + Subject: [PATCH 1/9] [clang-repl] Teach clang-repl how to load PCHs. --- clang/

[clang] [libcxx] [clang][ThreadSafety] Handle mutex scope (PR #157171)

2025-09-07 Thread Aaron Puchert via cfe-commits
@@ -0,0 +1,45 @@ +// RUN: %clang_cc1 -include %s -verify -fsyntax-only -Wthread-safety %s + +#ifndef HEADER +#define HEADER + +#define LOCKABLE__attribute__ ((lockable)) +#define EXCLUSIVE_LOCK_FUNCTION(...) __attribute__ ((exclusive_lock_function(__VA_ARGS__))) + +

[clang] [libcxx] [clang][ThreadSafety] Handle mutex scope (PR #157171)

2025-09-07 Thread Aaron Puchert via cfe-commits
@@ -2443,6 +2443,22 @@ void ThreadSafetyAnalyzer::intersectAndWarn(FactSet &EntrySet, if (join(FactMan[*EntryIt], ExitFact, JoinLoc, EntryLEK)) *EntryIt = Fact; } else if (!ExitFact.managed() || EntryLEK == LEK_LockedAtEndOfFunction) { + if (EntryLEK ==

[clang-tools-extra] [clang-tidy] do not diagnose array types within implicit instantiations of a template (PR #132924)

2025-09-07 Thread St. Muench via cfe-commits
stmuench wrote: > I will land the patch at the end of the week @vbvictor many thanks for taking care https://github.com/llvm/llvm-project/pull/132924 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/list

[clang] [clang-repl] Teach clang-repl how to load PCHs (reprise) (PR #157359)

2025-09-07 Thread Jeaye Wilkerson via cfe-commits
jeaye wrote: Looks like the previous run of the Linux job failed in an unrelated area: https://productionresultssa6.blob.core.windows.net/actions-results/de1b4c8c-9dc9-4d5e-90f7-2ed4ede76dce/workflow-job-run-20b49bb8-304c-5069-9f6b-84a81382ac9a/logs/job/job-logs.txt?rsct=text%2Fplain&se=2025-09-

[clang-tools-extra] [Clang-Tidy] Handle nested-name-specifier in "llvm-prefer-isa-or-dyn-cast-in-conditionals" (PR #155982)

2025-09-07 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/155982 ___ 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 `misc-const-correctness` work with `auto` variables and lambdas (PR #157319)

2025-09-07 Thread Victor Chernyakin via cfe-commits
localspook wrote: Re: adding it under an option I'm struggling to imagine a user that wants this change: ```diff - int i = 10; + int const i = 10; ``` but *doesn't* want this change: ```diff - auto i = 10; + auto const i = 10; ``` The way I see it, this PR is more of a bugfix rather than a new f

[clang-tools-extra] [clang-tidy] make `misc-const-correctness` work with `auto` variables and lambdas (PR #157319)

2025-09-07 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook updated https://github.com/llvm/llvm-project/pull/157319 >From e28e9e234b6165b49884cf254e1fb4efe44fe756 Mon Sep 17 00:00:00 2001 From: Victor Chernyakin Date: Sat, 6 Sep 2025 17:35:36 -0700 Subject: [PATCH 1/3] [clang-tidy] make `misc-const-correctness` work with

[clang] [clang-repl] Teach clang-repl how to load PCHs (reprise) (PR #157359)

2025-09-07 Thread Jeaye Wilkerson via cfe-commits
https://github.com/jeaye updated https://github.com/llvm/llvm-project/pull/157359 >From 73669c01825214c51d0ddb79dce6ec0235633d08 Mon Sep 17 00:00:00 2001 From: Vassil Vassilev Date: Thu, 30 May 2024 05:05:41 + Subject: [PATCH 1/8] [clang-repl] Teach clang-repl how to load PCHs. --- clang/

[clang-tools-extra] [clang-tidy][NFC] Do less unnecessary work in `NoLintDirectiveHandler` (PR #147553)

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

[clang-tools-extra] [clang-tidy] do not diagnose array types within implicit instantiations of a template (PR #132924)

2025-09-07 Thread via cfe-commits
github-actions[bot] wrote: @stmuench Congratulations on having your first Pull Request (PR) merged into the LLVM Project! Your changes will be combined with recent changes from other authors, then tested by our [build bots](https://lab.llvm.org/buildbot/). If there is a problem with a build

[clang-tools-extra] 6fc32e9 - [clang-tidy] do not diagnose array types within implicit instantiations of a template (#132924)

2025-09-07 Thread via cfe-commits
Author: St. Muench Date: 2025-09-07T22:54:37+03:00 New Revision: 6fc32e93066c59a39b3c8c9be4e4f416653a917e URL: https://github.com/llvm/llvm-project/commit/6fc32e93066c59a39b3c8c9be4e4f416653a917e DIFF: https://github.com/llvm/llvm-project/commit/6fc32e93066c59a39b3c8c9be4e4f416653a917e.diff LO

[clang-tools-extra] [clang-tidy] do not diagnose array types within implicit instantiations of a template (PR #132924)

2025-09-07 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor closed https://github.com/llvm/llvm-project/pull/132924 ___ 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 `misc-const-correctness` work with `auto` variables and lambdas (PR #157319)

2025-09-07 Thread Victor Chernyakin via cfe-commits
localspook wrote: > I notice now there's no update in Release Notes for this. There is though; did you maybe mean documentation? https://github.com/llvm/llvm-project/pull/157319 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.ll

[clang-tools-extra] [clang-tidy][NFC] Enable `readability-container-contains` check in clang-tidy config and apply fix-its (PR #157123)

2025-09-07 Thread Baranov Victor via cfe-commits
vbvictor wrote: Do you wish to have this merged or wait for your commit approval (it can take 2-3week if unlucky)? https://github.com/llvm/llvm-project/pull/157123 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/

[clang-tools-extra] [clang-tidy] make `misc-const-correctness` work with `auto` variables and lambdas (PR #157319)

2025-09-07 Thread Victor Chernyakin via cfe-commits
@@ -10,6 +10,12 @@ template void type_dependent_variables() { T value = 42; auto &ref = value; + // CHECK-MESSAGES:[[@LINE-1]]:3: warning: variable 'ref' of type 'int &' can be declared 'const' + // CHECK-FIXES: auto const&ref = value; + // + // FIXME: This is a fals

[clang-tools-extra] [clang-tidy] make `misc-const-correctness` work with `auto` variables and lambdas (PR #157319)

2025-09-07 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook updated https://github.com/llvm/llvm-project/pull/157319 >From e28e9e234b6165b49884cf254e1fb4efe44fe756 Mon Sep 17 00:00:00 2001 From: Victor Chernyakin Date: Sat, 6 Sep 2025 17:35:36 -0700 Subject: [PATCH 1/2] [clang-tidy] make `misc-const-correctness` work with

[clang] [clang-repl] Teach clang-repl how to load PCHs (reprise) (PR #157359)

2025-09-07 Thread Jeaye Wilkerson via cfe-commits
https://github.com/jeaye updated https://github.com/llvm/llvm-project/pull/157359 >From 73669c01825214c51d0ddb79dce6ec0235633d08 Mon Sep 17 00:00:00 2001 From: Vassil Vassilev Date: Thu, 30 May 2024 05:05:41 + Subject: [PATCH 1/8] [clang-repl] Teach clang-repl how to load PCHs. --- clang/

[clang-tools-extra] [clang-tidy] make `misc-const-correctness` work with `auto` variables and lambdas (PR #157319)

2025-09-07 Thread Victor Chernyakin via cfe-commits
@@ -10,6 +10,12 @@ template void type_dependent_variables() { T value = 42; auto &ref = value; + // CHECK-MESSAGES:[[@LINE-1]]:3: warning: variable 'ref' of type 'int &' can be declared 'const' + // CHECK-FIXES: auto const&ref = value; localspook wrote

[clang] [clang-repl] Teach clang-repl how to load PCHs (reprise) (PR #157359)

2025-09-07 Thread Jeaye Wilkerson via cfe-commits
https://github.com/jeaye updated https://github.com/llvm/llvm-project/pull/157359 >From 73669c01825214c51d0ddb79dce6ec0235633d08 Mon Sep 17 00:00:00 2001 From: Vassil Vassilev Date: Thu, 30 May 2024 05:05:41 + Subject: [PATCH 1/8] [clang-repl] Teach clang-repl how to load PCHs. --- clang/

[clang-tools-extra] [clang-tidy] Remove 'clang-analyzer-*' checks from default checks. (PR #157306)

2025-09-07 Thread Baranov Victor via cfe-commits
vbvictor wrote: > Perhaps having a section for "Breaking changes" or otherwise "Stuff you need > to take action on" would help. I support this, another solution could be bold text or preamble like "Important ⚠️". But I think dedicated section is the best. https://github.com/llvm/llvm-pr

[clang] [clang-repl] Teach clang-repl how to load PCHs (reprise) (PR #157359)

2025-09-07 Thread Jeaye Wilkerson via cfe-commits
https://github.com/jeaye edited https://github.com/llvm/llvm-project/pull/157359 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-repl] Add support for running custom code in Remote JIT executor (PR #157358)

2025-09-07 Thread Abhinav Kumar via cfe-commits
https://github.com/kr-2003 updated https://github.com/llvm/llvm-project/pull/157358 >From 4410aeb08dc14a4f29c9ec0e8730a1bde3386665 Mon Sep 17 00:00:00 2001 From: kr-2003 Date: Mon, 8 Sep 2025 00:19:44 +0530 Subject: [PATCH 1/4] [clang-repl] Adding custom lambda in launchExecutor --- clang/inc

[clang] [clang-repl] Teach clang-repl how to load PCHs (reprise) (PR #157359)

2025-09-07 Thread Jeaye Wilkerson via cfe-commits
https://github.com/jeaye updated https://github.com/llvm/llvm-project/pull/157359 >From 73669c01825214c51d0ddb79dce6ec0235633d08 Mon Sep 17 00:00:00 2001 From: Vassil Vassilev Date: Thu, 30 May 2024 05:05:41 + Subject: [PATCH 1/8] [clang-repl] Teach clang-repl how to load PCHs. --- clang/

[clang] [clang-repl] Teach clang-repl how to load PCHs (reprise) (PR #157359)

2025-09-07 Thread Jeaye Wilkerson via cfe-commits
https://github.com/jeaye edited https://github.com/llvm/llvm-project/pull/157359 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-repl] Add support for running custom code in Remote JIT executor (PR #157358)

2025-09-07 Thread Abhinav Kumar via cfe-commits
https://github.com/kr-2003 updated https://github.com/llvm/llvm-project/pull/157358 >From 4410aeb08dc14a4f29c9ec0e8730a1bde3386665 Mon Sep 17 00:00:00 2001 From: kr-2003 Date: Mon, 8 Sep 2025 00:19:44 +0530 Subject: [PATCH 1/3] [clang-repl] Adding custom lambda in launchExecutor --- clang/inc

[clang] [clang-repl] Teach clang-repl how to load PCHs (reprise) (PR #157359)

2025-09-07 Thread via cfe-commits
github-actions[bot] wrote: :warning: Python code formatter, darker found issues in your code. :warning: You can test this locally with the following command: ``bash darker --check --diff -r origin/main...HEAD clang/test/lit.cfg.py `` :warning: The reproduction instruction

[clang] [clang-repl] Teach clang-repl how to load PCHs (reprise) (PR #157359)

2025-09-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Jeaye Wilkerson (jeaye) Changes This is an updated version of @vgvassilev's PR from last year here: https://github.com/llvm/llvm-project/pull/94166 In short, it includes: 1. The fix for a blocking issue where `clang::Interpreter`

[clang] [clang-repl] Teach clang-repl how to load PCHs (reprise) (PR #157359)

2025-09-07 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] [clang-repl] Teach clang-repl how to load PCHs (reprise) (PR #157359)

2025-09-07 Thread Jeaye Wilkerson via cfe-commits
https://github.com/jeaye created https://github.com/llvm/llvm-project/pull/157359 This is an updated version of @vgvassilev's PR from last year here: https://github.com/llvm/llvm-project/pull/94166 In short, it includes: 1. The fix for a blocking issue where `clang::Interpreter` cannot resolv

[clang] [clang-repl] Add support for running custom code in Remote JIT executor (PR #157358)

2025-09-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Abhinav Kumar (kr-2003) Changes Introduce a custom lambda mechanism that allows injecting user-defined code into the Remote JIT’s executor. --- Full diff: https://github.com/llvm/llvm-project/pull/157358.diff 4 Files Affected: - (modif

[clang] [clang-repl] Add support for running custom code in Remote JIT executor (PR #157358)

2025-09-07 Thread Abhinav Kumar via cfe-commits
https://github.com/kr-2003 created https://github.com/llvm/llvm-project/pull/157358 Introduce a custom lambda mechanism that allows injecting user-defined code into the Remote JIT’s executor. >From 4410aeb08dc14a4f29c9ec0e8730a1bde3386665 Mon Sep 17 00:00:00 2001 From: kr-2003 Date: Mon, 8 Se

[clang-tools-extra] [clang-tidy] make `misc-const-correctness` work with `auto` variables and lambdas (PR #157319)

2025-09-07 Thread Carlos Galvez via cfe-commits
https://github.com/carlosgalvezp requested changes to this pull request. I notice now there's no update in Release Notes for this. I also agree with previous reviewers that adding an option would be helpful to ease in adopting to this new behavior. I would still make it on-by-default, though.

[clang-tools-extra] [clang-tidy] make `misc-const-correctness` work with `auto` variables and lambdas (PR #157319)

2025-09-07 Thread Carlos Galvez via cfe-commits
https://github.com/carlosgalvezp approved this pull request. LGTM, minor comments! https://github.com/llvm/llvm-project/pull/157319 ___ 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 `misc-const-correctness` work with `auto` variables and lambdas (PR #157319)

2025-09-07 Thread Carlos Galvez via cfe-commits
@@ -10,6 +10,12 @@ template void type_dependent_variables() { T value = 42; auto &ref = value; + // CHECK-MESSAGES:[[@LINE-1]]:3: warning: variable 'ref' of type 'int &' can be declared 'const' + // CHECK-FIXES: auto const&ref = value; + // + // FIXME: This is a fals

[clang-tools-extra] [clang-tidy] make `misc-const-correctness` work with `auto` variables and lambdas (PR #157319)

2025-09-07 Thread Carlos Galvez via cfe-commits
@@ -10,6 +10,12 @@ template void type_dependent_variables() { T value = 42; auto &ref = value; + // CHECK-MESSAGES:[[@LINE-1]]:3: warning: variable 'ref' of type 'int &' can be declared 'const' + // CHECK-FIXES: auto const&ref = value; carlosgalvezp wr

[clang-tools-extra] [clang-tidy] Rename 'cert-err34-c' to 'bugprone-unchecked-string-to-number-conversion' (PR #157285)

2025-09-07 Thread Carlos Galvez via cfe-commits
https://github.com/carlosgalvezp approved this pull request. LGTM, thank you! https://github.com/llvm/llvm-project/pull/157285 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Remove 'clang-analyzer-*' checks from default checks. (PR #157306)

2025-09-07 Thread Carlos Galvez via cfe-commits
https://github.com/carlosgalvezp approved this pull request. LGTM, but I wonder if we need a 2-release cycle for this, after all people might silently lose an important part of clang-tidy coverage and the note in the release notes could be hard to spot in the middle of the other notes. Perhaps

[clang] [Clang] Rename elementwise builtins to `clzg` and `ctzg` (PR #157128)

2025-09-07 Thread Fraser Cormack via cfe-commits
frasercrmck wrote: I don't really mind what they're called. As I said in the original RFC and PR that introduced the builtins, I have no particular favourites. However, do note that the elementwise builtins are not *exactly* like clzg/ctzg in that they don't have _target-specific_ zero-is-unde

[clang-tools-extra] [clang-tidy] make `misc-const-correctness` work with `auto` variables and lambdas (PR #157319)

2025-09-07 Thread Baranov Victor via cfe-commits
vbvictor wrote: I don't know how hard it is to achieve, but I'd like to have 2 distinct options: one for "normal" local variables, another for lambdas https://github.com/llvm/llvm-project/pull/157319 ___ cfe-commits mailing list cfe-commits@lists.llvm

[clang-tools-extra] [clang-tidy] make `misc-const-correctness` work with `auto` variables and lambdas (PR #157319)

2025-09-07 Thread Baranov Victor via cfe-commits
vbvictor wrote: I think Piotr's comment on the original review is still valid: - Missing configuration option for this change (changing default behavior) - Missing documentation update - Tests for auto&&, auto* etc.. https://github.com/llvm/llvm-project/pull/157319

[clang] [X86] make the set/r/4 intrinsics macros into functions (PR #156819)

2025-09-07 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon updated https://github.com/llvm/llvm-project/pull/156819 >From 1e8482846c5d623192bb5ce8e21dbc4eeb3fd591 Mon Sep 17 00:00:00 2001 From: SadiinsoSnowfall Date: Thu, 4 Sep 2025 09:28:09 +0200 Subject: [PATCH] made the AVX512 _set macros into functions --- clang/lib/Hea

  1   2   3   4   >