[clang-tools-extra] [clangd] Enable parsing of forwarding functions in the preamble by default (PR #127359)

2025-02-17 Thread kadir çetinkaya via cfe-commits
https://github.com/kadircet approved this pull request. thanks, as long as we're keeping the underlying option I think this makes sense! we can flip it in production if we see big regressions https://github.com/llvm/llvm-project/pull/127359 ___ cfe-co

[clang-tools-extra] [clangd] Enable parsing of forwarding functions in the preamble by default (PR #127359)

2025-02-17 Thread kadir çetinkaya via cfe-commits
https://github.com/kadircet commented: thanks, as long as we're keeping the underlying option I think this makes sense! we can flip it in production if we see big regressions https://github.com/llvm/llvm-project/pull/127359 ___ cfe-commits mailing lis

[clang] Thread Safety Analysis: Handle address-of followed by dereference (PR #127397)

2025-02-17 Thread Marco Elver via cfe-commits
https://github.com/melver closed https://github.com/llvm/llvm-project/pull/127397 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Thread Safety Analysis: Handle address-of followed by dereference (PR #127397)

2025-02-17 Thread Marco Elver via cfe-commits
melver wrote: Superseded by https://github.com/llvm/llvm-project/pull/127396 https://github.com/llvm/llvm-project/pull/127397 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Thread Safety Analysis: Support warning on taking address of guarded variables (PR #123063)

2025-02-17 Thread Marco Elver via cfe-commits
https://github.com/melver converted_to_draft https://github.com/llvm/llvm-project/pull/123063 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Thread Safety Analysis: Support warning on taking address of guarded variables (PR #123063)

2025-02-17 Thread Marco Elver via cfe-commits
melver wrote: [...] > Then we only need to make sure that `checkPtAccess` can look through `&`, as > mentioned above. (Casts should already be unwrapped.) This might not even > need a new flag, it's just closing a gap in the existing analysis. Thanks for the suggestions! I implemented both -

[clang] Thread Safety Analysis: Improved pointer handling (PR #127396)

2025-02-17 Thread Marco Elver via cfe-commits
https://github.com/melver edited https://github.com/llvm/llvm-project/pull/127396 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Thread Safety Analysis: Improved pointer handling (PR #127396)

2025-02-17 Thread Marco Elver via cfe-commits
https://github.com/melver edited https://github.com/llvm/llvm-project/pull/127396 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Thread Safety Analysis: Support warning on passing/returning pointers to guarded variables (PR #127396)

2025-02-17 Thread Marco Elver via cfe-commits
https://github.com/melver edited https://github.com/llvm/llvm-project/pull/127396 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Thread Safety Analysis: Improved pointer handling (PR #127396)

2025-02-17 Thread Marco Elver via cfe-commits
melver wrote: (Side-note: I cannot figure out what the canonical way to do "stacked commits" is for LLVM these days, so I'm just doing this the "old" way i.e. plain and simple normal git commits which I will commit separately after PR review.) https://github.com/llvm/llvm-project/pull/127396 _

[clang] [flang] [flang][OpenMP] Upstream first part of `do concurrent` mapping (PR #126026)

2025-02-17 Thread Kareem Ergawy via cfe-commits
ergawy wrote: Ping! Any objections to merging this PR? cc @skatrak @clementval @tarunprabhu (and other reviewers). https://github.com/llvm/llvm-project/pull/126026 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/

[clang] [clang][analyzer] Add checker 'alpha.core.FixedAddressDereference' (PR #127191)

2025-02-17 Thread Balázs Kéri via cfe-commits
@@ -129,6 +129,8 @@ The ``SuppressAddressSpaces`` option suppresses warnings for null dereferences of all pointers with address spaces. You can disable this behavior with the option ``-analyzer-config core.NullDereference:SuppressAddressSpaces=false``. +Value of this option is

[clang] [clang-repl] Disable EmulatedTLS on Windows (PR #127468)

2025-02-17 Thread Aaron Jomy via cfe-commits
https://github.com/aaronj0 edited https://github.com/llvm/llvm-project/pull/127468 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][analyzer] Add checker 'alpha.core.FixedAddressDereference' (PR #127191)

2025-02-17 Thread Balázs Kéri via cfe-commits
@@ -1,7 +1,163 @@ // RUN: %clang_analyze_cc1 -analyzer-checker=core,alpha.core -verify %s -// expected-no-diagnostics -void foo(void) { +extern void __assert_fail (__const char *__assertion, __const char *__file, +unsigned int __line, __const char *__function) + __attri

[clang-tools-extra] Add AllowFalseEvaluated flag to clang-tidy noexcept-move-constructor check (PR #126897)

2025-02-17 Thread Dmitry Nechitaev via cfe-commits
https://github.com/Nechda updated https://github.com/llvm/llvm-project/pull/126897 >From 6b9b6e44b7b122721a4371dbe20618a90753f666 Mon Sep 17 00:00:00 2001 From: Dmitry Nechitaev Date: Mon, 17 Feb 2025 13:30:46 +0300 Subject: [PATCH] Add AllowFalseEvaluated to clang-tidy noexcept-move-construct

[clang] [clang-linker-wrapper] Avoid repeated hash lookups (NFC) (PR #127443)

2025-02-17 Thread Nikita Popov via cfe-commits
https://github.com/nikic approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/127443 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Clang/bug113094 (PR #127439)

2025-02-17 Thread Mariya Podchishchaeva via cfe-commits
https://github.com/Fznamznon edited https://github.com/llvm/llvm-project/pull/127439 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libclc] [libclc] Improve nextafter behaviour around zero (PR #127469)

2025-02-17 Thread Fraser Cormack via cfe-commits
https://github.com/frasercrmck created https://github.com/llvm/llvm-project/pull/127469 This commit improves the behaviour of (__clc_)nextafter around zero. Specifically, the nextafter value of very small negative numbers in the positive direction is now negative zero. Previously we'd return p

[libclc] [libclc] Improve nextafter behaviour around zero (PR #127469)

2025-02-17 Thread Fraser Cormack via cfe-commits
frasercrmck wrote: With this PR and with #126905 I achieved a fully passing OpenCL-CTS conversions run. https://github.com/llvm/llvm-project/pull/127469 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/lis

[clang-tools-extra] Add AllowFalseEvaluated flag to clang-tidy noexcept-move-constructor check (PR #126897)

2025-02-17 Thread Dmitry Nechitaev via cfe-commits
https://github.com/Nechda updated https://github.com/llvm/llvm-project/pull/126897 >From 4d5b0beebec8f3b2f5c6f90d7d26bde53118a26a Mon Sep 17 00:00:00 2001 From: Dmitry Nechitaev Date: Mon, 17 Feb 2025 13:30:46 +0300 Subject: [PATCH] Add AllowFalseEvaluated to clang-tidy noexcept-move-construct

[libclc] [libclc] Fix int<->float conversion builtins (PR #126905)

2025-02-17 Thread Fraser Cormack via cfe-commits
frasercrmck wrote: See #127469 for the fix for the other conversion builtins. https://github.com/llvm/llvm-project/pull/126905 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [compiler-rt] [llvm] [SystemZ] Add support for half (fp16) (PR #109164)

2025-02-17 Thread Jonas Paulsson via cfe-commits
@@ -229,7 +229,7 @@ class TargetInfo : public TransferrableTargetInfo, bool NoAsmVariants; // True if {|} are normal characters. bool HasLegalHalfType; // True if the backend supports operations on the half // LLVM IR type. - bool HalfArgsAndRetur

[clang] [clang][analyzer] Add checker 'alpha.core.FixedAddressDereference' (PR #127191)

2025-02-17 Thread Balázs Kéri via cfe-commits
@@ -1,6 +1,6 @@ // NOTE: Use '-fobjc-gc' to test the analysis being run twice, and multiple reports are not issued. -// RUN: %clang_analyze_cc1 -triple i386-apple-darwin10 -analyzer-checker=core,alpha.core,osx.cocoa.AtSync -Wno-strict-prototypes -Wno-pointer-to-int-cast -verif

[clang] [clang] Fix false positive regression for lifetime analysis warning. (PR #127460)

2025-02-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Haojian Wu (hokein) Changes This fixes a false positive caused by #114044. For `GSLPointer*` types, it's less clear whether the lifetime issue is about the GSLPointer object itself or the owner it points to. To avoid false positives, we

[clang] [Feature]: merge host and kernel dependencies for heterogeneous compilation (PR #119513)

2025-02-17 Thread via cfe-commits
zhouronghua wrote: @yxsamliu @dyung hi, boss, do u have time to review my patch, I merged kernel and host dep file in it. https://github.com/llvm/llvm-project/pull/119513 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org

[clang] [Clang][RISCV] Add preprocessor macros for Zicfilp CFI scheme (PR #109600)

2025-02-17 Thread Ming-Yi Lai via cfe-commits
https://github.com/mylai-mtk updated https://github.com/llvm/llvm-project/pull/109600 >From 3bb0b659009ade3dcd04d7bbb88b57e7b072fac5 Mon Sep 17 00:00:00 2001 From: Ming-Yi Lai Date: Fri, 10 May 2024 14:16:59 +0800 Subject: [PATCH 1/6] [clang][RISCV] Add Zicfilp CFI scheme preprocessor macros T

[clang] [clang] Fix false positive regression for lifetime analysis warning. (PR #127460)

2025-02-17 Thread Haojian Wu via cfe-commits
https://github.com/hokein updated https://github.com/llvm/llvm-project/pull/127460 >From 26cf4cd668f9a2d533014a85e8da4a91ce6c8994 Mon Sep 17 00:00:00 2001 From: Haojian Wu Date: Mon, 17 Feb 2025 10:08:14 +0100 Subject: [PATCH] [clang] Fix false positive regression for lifetime analysis warning

[clang] [clang-linker-wrapper] Avoid repeated hash lookups (NFC) (PR #127443)

2025-02-17 Thread Nikita Popov via cfe-commits
https://github.com/nikic edited https://github.com/llvm/llvm-project/pull/127443 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-linker-wrapper] Avoid repeated hash lookups (NFC) (PR #127443)

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

[clang-tools-extra] [clang-tidy] Avoid repeated hash lookups (NFC) (PR #127444)

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

[clang] [compiler-rt] [llvm] [SystemZ] Add support for half (fp16) (PR #109164)

2025-02-17 Thread Jonas Paulsson via cfe-commits
@@ -35,100 +35,96 @@ using namespace llvm; #include "SystemZGenRegisterInfo.inc" const unsigned SystemZMC::GR32Regs[16] = { - SystemZ::R0L, SystemZ::R1L, SystemZ::R2L, SystemZ::R3L, - SystemZ::R4L, SystemZ::R5L, SystemZ::R6L, SystemZ::R7L, - SystemZ::R8L, SystemZ::R9L, Syst

[clang] [analyzer] Delay the checker constructions after parsing (PR #127409)

2025-02-17 Thread Balázs Kéri via cfe-commits
https://github.com/balazske edited https://github.com/llvm/llvm-project/pull/127409 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Feature]: merge host and kernel dependencies for heterogeneous compilation (PR #119513)

2025-02-17 Thread via cfe-commits
https://github.com/zhouronghua updated https://github.com/llvm/llvm-project/pull/119513 >From 2cdd6b416ae9cef65a2d1f9d0175537303dc8265 Mon Sep 17 00:00:00 2001 From: "ronghua.zhou" Date: Fri, 14 Feb 2025 01:04:51 + Subject: [PATCH] [Feature]: support for the BC library file into the compile

[clang-tools-extra] [clang-tidy] Add support for `-ignore-insert-conflict` in `run-clang-tidy.py` (PR #127066)

2025-02-17 Thread Vicente Mataix Ferrándiz via cfe-commits
https://github.com/loumalouomega updated https://github.com/llvm/llvm-project/pull/127066 From 6c210298a5aab4eeb0d155534d739e21ba315469 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vicente=20Mataix=20Ferr=C3=A1ndiz?= Date: Thu, 13 Feb 2025 15:28:30 +0100 Subject: [PATCH 1/5] [tool] Remove legacy ar

[clang-tools-extra] [clang-tidy] Add support for `-ignore-insert-conflict` in `run-clang-tidy.py` (PR #127066)

2025-02-17 Thread Vicente Mataix Ferrándiz via cfe-commits
@@ -446,6 +448,12 @@ async def main() -> None: action="store_true", help="Allow empty enabled checks.", ) +parser.add_argument( +"-ignore-insert-conflict", loumalouomega wrote: Should be Okay now. https://github.com/llvm/llvm-p

[clang-tools-extra] [clang-tidy] Add support for `-ignore-insert-conflict` in `run-clang-tidy.py` (PR #127066)

2025-02-17 Thread Vicente Mataix Ferrándiz via cfe-commits
https://github.com/loumalouomega edited https://github.com/llvm/llvm-project/pull/127066 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Driver][MSVC] Add lto-sample-profile option for lld-link (PR #127442)

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

[clang] [Driver][MSVC] Add lto-sample-profile option for lld-link (PR #127442)

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

[clang] [Feature]: merge host and kernel dependencies for heterogeneous compilation (PR #119513)

2025-02-17 Thread via cfe-commits
https://github.com/zhouronghua updated https://github.com/llvm/llvm-project/pull/119513 >From 11dafbfdf57f4fc5153ee3fcb697cc0b65c74a25 Mon Sep 17 00:00:00 2001 From: "ronghua.zhou" Date: Fri, 14 Feb 2025 01:04:51 + Subject: [PATCH] [Feature]: support for the BC library file into the compile

[clang] [Feature]: merge host and kernel dependencies for heterogeneous compilation (PR #119513)

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

[clang] [Clang][RISCV] Add preprocessor macros for Zicfilp CFI scheme (PR #109600)

2025-02-17 Thread Kito Cheng via cfe-commits
@@ -238,6 +238,25 @@ void RISCVTargetInfo::getTargetDefines(const LangOptions &Opts, else Builder.defineMacro("__riscv_32e"); } + + if (Opts.CFProtectionBranch) { +auto Scheme = Opts.getCFBranchLabelScheme(); +if (Scheme == CFBranchLabelSchemeKind::Default

[clang] [Clang][RISCV] Add preprocessor macros for Zicfilp CFI scheme (PR #109600)

2025-02-17 Thread Kito Cheng via cfe-commits
https://github.com/kito-cheng commented: Just last one comment from me https://github.com/llvm/llvm-project/pull/109600 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][RISCV] Add preprocessor macros for Zicfilp CFI scheme (PR #109600)

2025-02-17 Thread Kito Cheng via cfe-commits
https://github.com/kito-cheng edited https://github.com/llvm/llvm-project/pull/109600 ___ 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 support for `-ignore-insert-conflict` in `run-clang-tidy.py` (PR #127066)

2025-02-17 Thread Vicente Mataix Ferrándiz via cfe-commits
@@ -446,6 +448,12 @@ async def main() -> None: action="store_true", help="Allow empty enabled checks.", ) +parser.add_argument( +"-ignore-insert-conflict", +action="store_true", +default=True, loumalouomega wrote:

[clang-tools-extra] [clang-tidy] Add bugprone-smartptr-reset-ambiguous-call check (PR #121291)

2025-02-17 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor updated https://github.com/llvm/llvm-project/pull/121291 >From 42e03bb9cc9bd815476b0a3f06ac5f58826e3708 Mon Sep 17 00:00:00 2001 From: Victor Baranov Date: Fri, 31 Jan 2025 19:29:05 +0300 Subject: [PATCH 1/3] [clang-tidy] add new check bugprone-reset-ambiguous-call

[clang] [clang][analyzer] Add checker 'alpha.core.FixedAddressDereference' (PR #127191)

2025-02-17 Thread Donát Nagy via cfe-commits
@@ -211,17 +211,15 @@ def DereferenceModeling : Checker<"DereferenceModeling">, Documentation, Hidden; -def NullDereferenceChecker : Checker<"NullDereference">, - HelpText<"Check for dereferences of null pointers">, - CheckerOptions<[ -CmdLineOption - ]>, - Documen

[clang-tools-extra] [clang-tidy] Avoid repeated hash lookups (NFC) (PR #127444)

2025-02-17 Thread Nikita Popov via cfe-commits
https://github.com/nikic approved this pull request. https://github.com/llvm/llvm-project/pull/127444 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-linker-wrapper] Avoid repeated hash lookups (NFC) (PR #127443)

2025-02-17 Thread Nikita Popov via cfe-commits
@@ -1060,8 +1060,9 @@ Expected getSymbolsFromBitcode(MemoryBufferRef Buffer, OffloadKind Kind, if (Sym.isFormatSpecific() || !Sym.isGlobal()) continue; - bool NewSymbol = Syms.count(Sym.getName()) == 0; - auto OldSym = NewSymbol ? Sym_None : Syms[Sym.g

[clang-tools-extra] [clangd] Store full decl/def range with symbol locations (PR #118102)

2025-02-17 Thread kadir çetinkaya via cfe-commits
kadircet wrote: I am a little hesitant on the memory growth implications, as this won't be a fixed cost we have in static index, but also a significant increase in dynamic-index memory footprint (which grows proportionally with number of touched files in an editing session). We're going to pay

[clang-tools-extra] [clang-tidy] Add support for `-ignore-insert-conflict` in `run-clang-tidy.py` (PR #127066)

2025-02-17 Thread Vicente Mataix Ferrándiz via cfe-commits
https://github.com/loumalouomega edited https://github.com/llvm/llvm-project/pull/127066 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Add `__builtin_sincospi` that lowers to `llvm.sincospi.*` (PR #127065)

2025-02-17 Thread Sander de Smalen via cfe-commits
https://github.com/sdesmalen-arm approved this pull request. https://github.com/llvm/llvm-project/pull/127065 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Clang/bug113094 (PR #127439)

2025-02-17 Thread Mariya Podchishchaeva via cfe-commits
https://github.com/Fznamznon commented: Thank you for the fix! I added more reviewers with offloading background. Could you please also modify the title and the description of the PR so it says what was the problem and how it was fixed instead of simply saying it fixed this bug? https://github

[clang] Clang/bug113094 (PR #127439)

2025-02-17 Thread Mariya Podchishchaeva via cfe-commits
@@ -0,0 +1,6 @@ +// RUN: %clang -fopenmp --offload-arch=sm_90 -nocudalib -target aarch64-unknown-linux-gnu -c -Xclang -verify %s Fznamznon wrote: We don't usually use clang driver in front-end tests. Could you please create a run line using pure front-end, i.e.

[clang] Clang/bug113094 (PR #127439)

2025-02-17 Thread Mariya Podchishchaeva via cfe-commits
@@ -8336,12 +8336,11 @@ static bool verifyValidIntegerConstantExpr(Sema &S, const ParsedAttr &Attr, /// match one of the standard Neon vector types. static void HandleNeonVectorTypeAttr(QualType &CurType, const ParsedAttr &Attr, Sema &S, Ve

[clang-tools-extra] Enforce SL.con.3: Add check to replace operator[] with at() [Cont.] (PR #95220)

2025-02-17 Thread Paul Heidekrüger via cfe-commits
@@ -0,0 +1,124 @@ +//===--- ProBoundsAvoidUncheckedContainerAccesses.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] Add AllowFalseEvaluated flag to clang-tidy noexcept-move-constructor check (PR #126897)

2025-02-17 Thread Dmitry Nechitaev via cfe-commits
https://github.com/Nechda updated https://github.com/llvm/llvm-project/pull/126897 >From 2d09fb25fcb82a1e05403d520f9e541486b0eb82 Mon Sep 17 00:00:00 2001 From: Dmitry Nechitaev Date: Mon, 17 Feb 2025 12:43:29 +0300 Subject: [PATCH 1/2] Add AllowFalseEvaluated to clang-tidy noexcept-move-const

[clang] [llvm] [RISCV] Add Support of RISCV Zibimm Experimental Extension (PR #127463)

2025-02-17 Thread via cfe-commits
https://github.com/BoyaoWang430 updated https://github.com/llvm/llvm-project/pull/127463 >From 12e1501093fa7253514b256b26544ec2c2308b8c Mon Sep 17 00:00:00 2001 From: wangboyao Date: Mon, 17 Feb 2025 17:35:52 +0800 Subject: [PATCH] [RISCV] Add Support of RISCV Zibimm Experimental Extension ---

[clang] [clang][analyzer] Teach the BlockInCriticalSectionChecker about O_NONBLOCK streams (PR #127049)

2025-02-17 Thread Gábor Horváth via cfe-commits
https://github.com/Xazax-hun commented: Mostly looks good to me, I have one question inline. https://github.com/llvm/llvm-project/pull/127049 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-c

[clang] [nfc][analyzer] Add MemSpace trait to program state (PR #123003)

2025-02-17 Thread Gábor Horváth via cfe-commits
https://github.com/Xazax-hun approved this pull request. I am fine going ahead with this. https://github.com/llvm/llvm-project/pull/123003 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-comm

[clang] [llvm] [RISCV] Add Support of RISCV Zibimm Experimental Extension (PR #127463)

2025-02-17 Thread via cfe-commits
https://github.com/BoyaoWang430 updated https://github.com/llvm/llvm-project/pull/127463 >From 582580f5d02ad607ff4c533c183ca756a7d28513 Mon Sep 17 00:00:00 2001 From: wangboyao Date: Mon, 17 Feb 2025 17:35:52 +0800 Subject: [PATCH] [RISCV] Add Support of RISCV Zibimm Experimental Extension ---

[clang] [clang][analysis] Fix flaky clang/test/Analysis/live-stmts.cpp test (PR #126913)

2025-02-17 Thread Mikael Holmén via cfe-commits
mikaelholmen wrote: > FYI I just > [merged](https://github.com/llvm/llvm-project/commit/f378e52ed3c6f8da4973f97f1ef043c2eb0da721) > my second attempt of enabling and fixing the flaky test. Let me know if it > works. @metaflow @mikaelholmen No failures so far :) https://github.com/llvm/llvm-p

[clang] [flang] [lld] [llvm] [Flang] Remove FLANG_INCLUDE_RUNTIME (PR #124126)

2025-02-17 Thread Michael Kruse via cfe-commits
https://github.com/Meinersbur edited https://github.com/llvm/llvm-project/pull/124126 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [lld] [llvm] [Flang-RT] Build libflang_rt.so (PR #121782)

2025-02-17 Thread Michael Kruse via cfe-commits
https://github.com/Meinersbur closed https://github.com/llvm/llvm-project/pull/121782 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Fix error recovery while PTU cleanup (PR #127467)

2025-02-17 Thread Anutosh Bhat via cfe-commits
https://github.com/anutosh491 edited https://github.com/llvm/llvm-project/pull/127467 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] Add AllowFalseEvaluated flag to clang-tidy noexcept-move-constructor check (PR #126897)

2025-02-17 Thread Dmitry Nechitaev via cfe-commits
https://github.com/Nechda updated https://github.com/llvm/llvm-project/pull/126897 >From 4cb769546f81634e6734859d3232084aa8aa33e8 Mon Sep 17 00:00:00 2001 From: Dmitry Nechitaev Date: Mon, 17 Feb 2025 12:55:04 +0300 Subject: [PATCH 1/2] Add AllowFalseEvaluated to clang-tidy noexcept-move-const

[clang-tools-extra] Enforce SL.con.3: Add check to replace operator[] with at() [Cont.] (PR #95220)

2025-02-17 Thread Paul Heidekrüger via cfe-commits
paulhdk wrote: Sorry for letting this sit for long! I've addressed the most recent comments. Based on what @leunam99 wrote above, the following questions are still unresolved: * It is still unclear to us how templates should be addressed when suggesting fixes.
 For instance, what should happe

[clang] Fix error recovery while PTU cleanup (PR #127467)

2025-02-17 Thread Anutosh Bhat via cfe-commits
anutosh491 wrote: cc @ferdymercury @vgvassilev https://github.com/llvm/llvm-project/pull/127467 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][analysis] Fix flaky clang/test/Analysis/live-stmts.cpp test (2nd attempt) (PR #127406)

2025-02-17 Thread Balazs Benics via cfe-commits
https://github.com/steakhal closed https://github.com/llvm/llvm-project/pull/127406 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] f378e52 - [clang][analysis] Fix flaky clang/test/Analysis/live-stmts.cpp test (2nd attempt) (#127406)

2025-02-17 Thread via cfe-commits
Author: Balazs Benics Date: 2025-02-17T11:12:55+01:00 New Revision: f378e52ed3c6f8da4973f97f1ef043c2eb0da721 URL: https://github.com/llvm/llvm-project/commit/f378e52ed3c6f8da4973f97f1ef043c2eb0da721 DIFF: https://github.com/llvm/llvm-project/commit/f378e52ed3c6f8da4973f97f1ef043c2eb0da721.diff

[clang] [clang][analysis] Fix flaky clang/test/Analysis/live-stmts.cpp test (PR #126913)

2025-02-17 Thread Balazs Benics via cfe-commits
steakhal wrote: FYI I just [merged](https://github.com/llvm/llvm-project/commit/f378e52ed3c6f8da4973f97f1ef043c2eb0da721) my second attempt of enabling and fixing the flaky test. Let me know if it works. https://github.com/llvm/llvm-project/pull/126913

[clang] Fix error recovery while PTU cleanup (PR #127467)

2025-02-17 Thread Anutosh Bhat via cfe-commits
anutosh491 wrote: Hmmm, the code formatter has a suggestion. Just increases the lines on a simple test. Not sure if the code formatter should be respected here ! https://github.com/llvm/llvm-project/pull/127467 ___ cfe-commits mailing list cfe-commits

[clang-tools-extra] [clang-tidy] Add support for `-ignore-insert-conflict` in `run-clang-tidy.py` (PR #127066)

2025-02-17 Thread Vicente Mataix Ferrándiz via cfe-commits
@@ -446,6 +448,12 @@ async def main() -> None: action="store_true", help="Allow empty enabled checks.", ) +parser.add_argument( +"-ignore-insert-conflict", loumalouomega wrote: Sorry if I use an old version of clang, the system

[clang-tools-extra] Add AllowFalseEvaluated flag to clang-tidy noexcept-move-constructor check (PR #126897)

2025-02-17 Thread Dmitry Nechitaev via cfe-commits
https://github.com/Nechda updated https://github.com/llvm/llvm-project/pull/126897 >From 4cb769546f81634e6734859d3232084aa8aa33e8 Mon Sep 17 00:00:00 2001 From: Dmitry Nechitaev Date: Mon, 17 Feb 2025 12:55:04 +0300 Subject: [PATCH 1/2] Add AllowFalseEvaluated to clang-tidy noexcept-move-const

[clang] [clang][analyzer] Add checker 'alpha.core.FixedAddressDereference' (PR #127191)

2025-02-17 Thread Balazs Benics via cfe-commits
=?utf-8?q?Balázs_Kéri?= Message-ID: In-Reply-To: @@ -129,6 +129,8 @@ The ``SuppressAddressSpaces`` option suppresses warnings for null dereferences of all pointers with address spaces. You can disable this behavior with the option ``-analyzer-config core.NullDereference:Supp

[clang] [clang][analyzer] Add checker 'alpha.core.FixedAddressDereference' (PR #127191)

2025-02-17 Thread Balázs Kéri via cfe-commits
@@ -155,30 +162,47 @@ static bool isDeclRefExprToReference(const Expr *E) { void DereferenceChecker::reportBug(DerefKind K, ProgramStateRef State, const Stmt *S, CheckerContext &C) const { - if (!CheckNullDereference) { -C.addSink(); -

[clang] [compiler-rt] [llvm] [SystemZ] Add support for half (fp16) (PR #109164)

2025-02-17 Thread Jonas Paulsson via cfe-commits
@@ -65,6 +65,7 @@ void __clear_cache(void *start, void *end) { #elif defined(_WIN32) && (defined(__arm__) || defined(__aarch64__)) FlushInstructionCache(GetCurrentProcess(), start, end - start); #elif defined(__arm__) && !defined(__APPLE__) +#elif defined(__s390__) --

[clang] Fix error recovery while PTU cleanup (PR #127467)

2025-02-17 Thread via cfe-commits
ferdymercury wrote: Thanks! fyi also @hahnjo https://github.com/llvm/llvm-project/pull/127467 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] Add AllowFalseEvaluated flag to clang-tidy noexcept-move-constructor check (PR #126897)

2025-02-17 Thread Dmitry Nechitaev via cfe-commits
https://github.com/Nechda updated https://github.com/llvm/llvm-project/pull/126897 >From 7b9028f66ec305f734ff29ffcfd623b0bb993f52 Mon Sep 17 00:00:00 2001 From: Dmitry Nechitaev Date: Mon, 17 Feb 2025 13:16:09 +0300 Subject: [PATCH] Add AllowFalseEvaluated to clang-tidy noexcept-move-construct

[clang-tools-extra] [clang-tidy] Add support for `-ignore-insert-conflict` in `run-clang-tidy.py` (PR #127066)

2025-02-17 Thread Vicente Mataix Ferrándiz via cfe-commits
https://github.com/loumalouomega updated https://github.com/llvm/llvm-project/pull/127066 From 6c210298a5aab4eeb0d155534d739e21ba315469 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vicente=20Mataix=20Ferr=C3=A1ndiz?= Date: Thu, 13 Feb 2025 15:28:30 +0100 Subject: [PATCH 1/4] [tool] Remove legacy ar

[clang] [clang-repl] Disable EmulatedTLS on Windows (PR #127468)

2025-02-17 Thread Aaron Jomy via cfe-commits
https://github.com/aaronj0 created https://github.com/llvm/llvm-project/pull/127468 When running the clang-repl interpreter on windows, calling ```cpp Interpreter->Process(R"( #include void f1(std::string &s) { std::cout<< s.c_str(); };

[clang] Fix error recovery while PTU cleanup (PR #127467)

2025-02-17 Thread Anutosh Bhat via cfe-commits
anutosh491 wrote: For anyone interested in seeing the error at realtime, I am just leaving the static link for xeus-cpp-lite here. https://compiler-research.org/xeus-cpp/lab/index.html Possibly trying something like ``` int x = 5; auto capture = [&]() { return x * 2; }; ``` Should display the

[clang] [llvm] [RISCV] Add Support of RISCV Zibimm Experimental Extension (PR #127463)

2025-02-17 Thread via cfe-commits
https://github.com/BoyaoWang430 created https://github.com/llvm/llvm-project/pull/127463 Add Support of RISCV Zibimm v0.1 Experimental Extension. >From a90aa31f9a0cb4b050dfa0eeefa499b09b4b0b71 Mon Sep 17 00:00:00 2001 From: wangboyao Date: Mon, 17 Feb 2025 17:35:52 +0800 Subject: [PATCH] [RIS

[clang] [clang-repl] Disable EmulatedTLS on Windows (PR #127468)

2025-02-17 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] Disable EmulatedTLS on Windows (PR #127468)

2025-02-17 Thread Aaron Jomy via cfe-commits
https://github.com/aaronj0 edited https://github.com/llvm/llvm-project/pull/127468 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][bytecode] Restructure Program::CurrentDeclaration handling (PR #127456)

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

[clang] f09fd94 - [clang][bytecode] Restructure Program::CurrentDeclaration handling (#127456)

2025-02-17 Thread via cfe-commits
Author: Timm Baeder Date: 2025-02-17T11:24:43+01:00 New Revision: f09fd94d6b40a80e18093fdfc7d9b199210f69fd URL: https://github.com/llvm/llvm-project/commit/f09fd94d6b40a80e18093fdfc7d9b199210f69fd DIFF: https://github.com/llvm/llvm-project/commit/f09fd94d6b40a80e18093fdfc7d9b199210f69fd.diff L

[clang] [clang][bytecode] Restructure Program::CurrentDeclaration handling (PR #127456)

2025-02-17 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/127456 Properly reset to the last ID and return the current ID from getCurrentDecl(). >From 9f40e18f792c8307464f7acf75f5ec9376318d5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Mon, 17 Feb 2025

[clang] [clang][bytecode] Restructure Program::CurrentDeclaration handling (PR #127456)

2025-02-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes Properly reset to the last ID and return the current ID from getCurrentDecl(). --- Full diff: https://github.com/llvm/llvm-project/pull/127456.diff 3 Files Affected: - (modified) clang/lib/AST/ByteCode/Com

[clang-tools-extra] [clang-tidy] Add support for `-ignore-insert-conflict` in `run-clang-tidy.py` (PR #127066)

2025-02-17 Thread Carlos Galvez via cfe-commits
Vicente Mataix =?utf-8?q?Ferrándiz?= , Vicente Mataix =?utf-8?q?Ferrándiz?= , Vicente Mataix =?utf-8?q?Ferrándiz?= Message-ID: In-Reply-To: @@ -446,6 +448,12 @@ async def main() -> None: action="store_true", help="Allow empty enabled checks.", ) +pars

[clang-tools-extra] [clang-tidy] Add support for `-ignore-insert-conflict` in `run-clang-tidy.py` (PR #127066)

2025-02-17 Thread Carlos Galvez via cfe-commits
Vicente Mataix =?utf-8?q?Ferrándiz?= , Vicente Mataix =?utf-8?q?Ferrándiz?= , Vicente Mataix =?utf-8?q?Ferrándiz?= Message-ID: In-Reply-To: https://github.com/carlosgalvezp edited https://github.com/llvm/llvm-project/pull/127066 ___ cfe-commits maili

[clang-tools-extra] [clang-tidy] Add support for `-ignore-insert-conflict` in `run-clang-tidy.py` (PR #127066)

2025-02-17 Thread Carlos Galvez via cfe-commits
Vicente Mataix =?utf-8?q?Ferrándiz?= , Vicente Mataix =?utf-8?q?Ferrándiz?= , Vicente Mataix =?utf-8?q?Ferrándiz?= Message-ID: In-Reply-To: @@ -446,6 +448,12 @@ async def main() -> None: action="store_true", help="Allow empty enabled checks.", ) +pars

[clang] [analyzer][NFC] Trivial cleanup in ArrayBoundChecker (PR #126941)

2025-02-17 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat closed https://github.com/llvm/llvm-project/pull/126941 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 6684a59 - [analyzer][NFC] Trivial cleanup in ArrayBoundChecker (#126941)

2025-02-17 Thread via cfe-commits
Author: Donát Nagy Date: 2025-02-17T09:37:29+01:00 New Revision: 6684a5970e74b8b4c0c83361a90e25dae9646db0 URL: https://github.com/llvm/llvm-project/commit/6684a5970e74b8b4c0c83361a90e25dae9646db0 DIFF: https://github.com/llvm/llvm-project/commit/6684a5970e74b8b4c0c83361a90e25dae9646db0.diff LO

[clang] [clang] Fix false positive regression for lifetime analysis warning. (PR #127460)

2025-02-17 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 6684a5970e74b8b4c0c83361a90e25dae9646db0 26cf4cd668f9a2d533014a85e8da4a91ce6c8994 --e

[clang] [Clang][RISCV] Add preprocessor macros for Zicfilp CFI scheme (PR #109600)

2025-02-17 Thread Ming-Yi Lai via cfe-commits
@@ -238,6 +238,25 @@ void RISCVTargetInfo::getTargetDefines(const LangOptions &Opts, else Builder.defineMacro("__riscv_32e"); } + + if (Opts.CFProtectionBranch) { +auto Scheme = Opts.getCFBranchLabelScheme(); +if (Scheme == CFBranchLabelSchemeKind::Default

[clang] [clang-repl] Disable EmulatedTLS on Windows (PR #127468)

2025-02-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Aaron Jomy (aaronj0) Changes When running the clang-repl interpreter on windows, calling ```cpp Interpreter->Process(R"( #include void f1(std::string &s) { std::cout<< s.c_str(); };

[clang-tools-extra] [clangd] Update XRefs to support overriden ObjC methods (PR #127109)

2025-02-17 Thread kadir çetinkaya via cfe-commits
@@ -430,6 +439,22 @@ locateASTReferent(SourceLocation CurLoc, const syntax::Token *TouchedIdentifier, continue; } } +// Special case: - (void)^method; should jump to all overrides. Note that an +// Objective-C method can override a parent class or pr

[clang] [analyzer] Add hack in ArrayBound to cover up missing casts (PR #127117)

2025-02-17 Thread Gábor Horváth via cfe-commits
https://github.com/Xazax-hun approved this pull request. Looks good! Suppressing results for cases we do not model properly is the right thing to do. That being said, I wonder if we should record the presence of casts when we produce `ElementRegion`s to better help checks suppress potentially

[clang] [clang][analysis] Fix flaky clang/test/Analysis/live-stmts.cpp test (2nd attempt) (PR #127406)

2025-02-17 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat approved this pull request. Let's hope that this fixes the issue. https://github.com/llvm/llvm-project/pull/127406 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-

[clang-tools-extra] [clang-tidy] Add support for `-ignore-insert-conflict` in `run-clang-tidy.py` (PR #127066)

2025-02-17 Thread Carlos Galvez via cfe-commits
Vicente Mataix =?utf-8?q?Ferrándiz?= , Vicente Mataix =?utf-8?q?Ferrándiz?= , Vicente Mataix =?utf-8?q?Ferrándiz?= Message-ID: In-Reply-To: https://github.com/carlosgalvezp edited https://github.com/llvm/llvm-project/pull/127066 ___ cfe-commits maili

  1   2   3   4   5   >