[clang] [llvm] [CGData][ThinLTO][NFC] Prep for two-codegen rounds (PR #90934)

2024-10-03 Thread Kyungwoo Lee via cfe-commits
https://github.com/kyulee-com updated https://github.com/llvm/llvm-project/pull/90934 >From 0378aa86d0ad24069c191250d76bc0f3800eb7ae Mon Sep 17 00:00:00 2001 From: Kyungwoo Lee Date: Fri, 26 Apr 2024 20:02:52 -0700 Subject: [PATCH 1/3] [ThinLTO][NFC] Prep for two-codegen rounds --- clang/lib/

[clang] [flang] [flang][driver] Make -stdlib= option visible to flang and silently ignored by it (PR #110598)

2024-10-03 Thread Michael Kruse via cfe-commits
Meinersbur wrote: While the FortranRuntime is written in C++, it is ensured that it does not depend on libc++.so/libstdc++.so ([regression test](https://github.com/llvm/llvm-project/blob/main/flang/test/Runtime/no-cpp-dep.c)). Hence what C++ runtime the user links into their executable shouldn

[clang-tools-extra] [clang-tidy] insert ``static`` keyword in correct position for misc-use-internal-linkage (PR #108792)

2024-10-03 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 updated https://github.com/llvm/llvm-project/pull/108792 >From 795b3ae677210ff50f7710a0cf73d435889b68ae Mon Sep 17 00:00:00 2001 From: Congcong Cai Date: Mon, 16 Sep 2024 13:47:10 +0800 Subject: [PATCH] [clang-tidy] insert ``static`` keyword in correct position f

[clang-tools-extra] [clang-tidy] insert ``static`` keyword in correct position for misc-use-internal-linkage (PR #108792)

2024-10-03 Thread Congcong Cai via cfe-commits
HerrCai0907 wrote: friendly ping @5chmidti and other person who has time to review PR. https://github.com/llvm/llvm-project/pull/108792 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Multilib error fixes (PR #110804)

2024-10-03 Thread Simon Tatham via cfe-commits
https://github.com/statham-arm updated https://github.com/llvm/llvm-project/pull/110804 >From 531253ab8c33cc69a927b28a1608675cd9ef709c Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Mon, 30 Sep 2024 16:12:00 +0100 Subject: [PATCH 1/4] [clang][Driver] Rename "FatalError" key to "Error" in mu

[clang] Multilib error fixes (PR #110804)

2024-10-03 Thread Simon Tatham via cfe-commits
@@ -217,15 +215,15 @@ struct MultilibSetSerialization { template <> struct llvm::yaml::MappingTraits { static void mapping(llvm::yaml::IO &io, MultilibSerialization &V) { io.mapOptional("Dir", V.Dir); -io.mapOptional("FatalError", V.FatalError); +io.mapOptional("E

[clang] [llvm] Update llvm::Registry to work for LLVM shared library builds on windows (PR #109024)

2024-10-03 Thread John Brawn via cfe-commits
john-brawn-arm wrote: > @john-brawn-arm This may be hard to remember, but this a path you've tread > before could the LLVM_INSTANTIATE_REGISTRY just be changed to a fulll class > explicit template instantiation? It looks like the approach you're going for is: * Registry is declared as extern

[clang] [llvm] [PowerPC][ISelLowering] Support -mstack-protector-guard=tls (PR #110928)

2024-10-03 Thread Nathan Chancellor via cfe-commits
@@ -3605,7 +3605,8 @@ static void RenderSSPOptions(const Driver &D, const ToolChain &TC, StringRef Value = A->getValue(); if (!EffectiveTriple.isX86() && !EffectiveTriple.isAArch64() && !EffectiveTriple.isARM() && !EffectiveTriple.isThumb() && -!Effecti

[clang] [flang] [flang][driver] Make -stdlib= option visible to flang and silently ignored by it (PR #110598)

2024-10-03 Thread Paul Osmialowski via cfe-commits
pawosm-arm wrote: > Note that the test will fail when `LLVM_DEFAULT_TARGET_TRIPLE` is set to > anything else than the host platform. Because of this. Clang tests never > invoke the linker, but check the output of `-###`. However, Flang already has > tests with the same issue. I wonder how the

[clang] [clang] Support --sysroot= for ${arch}-windows-msvc targets (PR #96417)

2024-10-03 Thread via cfe-commits
https://github.com/trcrsired updated https://github.com/llvm/llvm-project/pull/96417 >From 8c69c802a8cda31fe886dcd0ae64f80538c04c51 Mon Sep 17 00:00:00 2001 From: trcrsired Date: Sun, 23 Jun 2024 00:07:19 -0400 Subject: [PATCH] Support --sysroot= for ${arch}-windows-msvc targets I think it is

[clang] Multilib error fixes (PR #110804)

2024-10-03 Thread Peter Smith via cfe-commits
https://github.com/smithp35 approved this pull request. Thanks for the updates. I don't have any more comments. I've approved the patch on my side. Will be worth waiting for a bit to see if any other reviewers have any feedback. https://github.com/llvm/llvm-project/pull/110804

[clang] [llvm] [HLSL] Implement `WaveReadLaneAt` intrinsics (PR #111010)

2024-10-03 Thread Finn Plummer via cfe-commits
https://github.com/inbelic created https://github.com/llvm/llvm-project/pull/111010 - create a clang built-in in Builtins.td - add semantic checking in SemaHLSL.cpp - create - add lowering to spirv backend op GroupNonUniformShuffle with Scope = 2 (Group) in SPIRVInstruction

[clang] [flang] [flang][driver] Make -stdlib= option visible to flang and silently ignored by it (PR #110598)

2024-10-03 Thread Paul Osmialowski via cfe-commits
pawosm-arm wrote: > (and there isn't even a warning that the option is unused) > > @pawosm-arm Wasn't this ever an issue? Should those to be consistent? Interesting, clang would do the same as flang-new patched with my patch. Maybe addition of the warning would be a good idea, if it isn't an o

[clang] [Clang] Add "extend lifetime" flags and release note (PR #110000)

2024-10-03 Thread Stephen Tozer via cfe-commits
SLTozer wrote: Ping - if anyone isn't able to review themselves but has an idea of someone who might, adding/pinging them would also be appreciated. https://github.com/llvm/llvm-project/pull/11 ___ cfe-commits mailing list cfe-commits@lists.llvm.o

[clang] [clang][dataflow] Add a lattice to help cache const accessor methods (PR #111006)

2024-10-03 Thread Jan Voung via cfe-commits
https://github.com/jvoung ready_for_review https://github.com/llvm/llvm-project/pull/111006 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][dataflow] Add a lattice to help cache const accessor methods (PR #111006)

2024-10-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-clang-analysis Author: Jan Voung (jvoung) Changes By caching const accessor methods we can sometimes treat method call results as stable (e.g., for issue https://github.com/llvm/llvm-project/issues/58510). Users can clear the

[clang] [Clang] Fix __builtin_dynamic_object_size off by 4 (PR #111015)

2024-10-03 Thread Jan Hendrik Farr via cfe-commits
https://github.com/Cydox created https://github.com/llvm/llvm-project/pull/111015 Fixes: #111009 Change the behavior of __bdos to be in-line with gcc by changing the behvaior from: ``` max(sizeof(struct s), offsetof(struct s, array) + p->count * sizeof(*p->array)) ``` to: ``` sizeof(struct

[clang] [Clang] Fix __builtin_dynamic_object_size off by 4 (PR #111015)

2024-10-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-clang-codegen Author: Jan Hendrik Farr (Cydox) Changes Fixes: #111009 Change the behavior of __bdos to be in-line with gcc by changing the behvaior from: ``` max(sizeof(struct s), offsetof(struct s, array) + p->count * size

[clang] [Clang] Fix __builtin_dynamic_object_size off by 4 (PR #111015)

2024-10-03 Thread Jan Hendrik Farr via cfe-commits
Cydox wrote: cc @nathanchance @kees @bwendling @efriedma-quic https://github.com/llvm/llvm-project/pull/111015 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [HLSL] Implement `WaveReadLaneAt` intrinsic for spirv backend (PR #111010)

2024-10-03 Thread Finn Plummer via cfe-commits
https://github.com/inbelic edited https://github.com/llvm/llvm-project/pull/111010 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Fix __builtin_dynamic_object_size off by 4 (PR #111015)

2024-10-03 Thread Jan Hendrik Farr via cfe-commits
Cydox wrote: I'm not 100% sure if the gcc or the clang behavior is currently correct. However, I'm gonna argue that gcc has it correct. gcc currently says that the __bdos of struct containing a flexible array member is: ``` sizeof() + sizeof() * ``` clang however does the following: ``` ma

[clang-tools-extra] [clang-tidy] exclude CXXParenListInitExpr from RedundantCastingCheck (PR #109741)

2024-10-03 Thread Julian Schmidt via cfe-commits
5chmidti wrote: Actually, shouldn't this check instead change an explicit cast for a `CXXParenListExpr` from `static_cast(42)` to `C(42)`? Doing this would be fairly simple and there should not be any case that wouldn't support it FWICT. https://github.com/llvm/llvm-project/pull/109741 ___

[clang] [Clang] Fix __builtin_dynamic_object_size off by 4 (PR #111015)

2024-10-03 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 313ad85dfa40a18f2edefd7ce2edc0528d5a554a 0f03f52e68a0dd1bbe01a9eefa9337ae54e57586 --e

[clang-tools-extra] 81fcdc6 - [clangd] Add CodeAction to swap operands to binary operators (#78999)

2024-10-03 Thread via cfe-commits
Author: Tor Shepherd Date: 2024-10-03T18:34:02+02:00 New Revision: 81fcdc63594d94aa2111422e758a24eb9fc88066 URL: https://github.com/llvm/llvm-project/commit/81fcdc63594d94aa2111422e758a24eb9fc88066 DIFF: https://github.com/llvm/llvm-project/commit/81fcdc63594d94aa2111422e758a24eb9fc88066.diff

[clang-tools-extra] [llvm] [clangd] Add CodeAction to swap operands to binary operators (PR #78999)

2024-10-03 Thread Julian Schmidt via cfe-commits
https://github.com/5chmidti closed https://github.com/llvm/llvm-project/pull/78999 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Fix __builtin_dynamic_object_size off by 4 (PR #111015)

2024-10-03 Thread Jan Hendrik Farr via cfe-commits
https://github.com/Cydox updated https://github.com/llvm/llvm-project/pull/111015 >From 0f03f52e68a0dd1bbe01a9eefa9337ae54e57586 Mon Sep 17 00:00:00 2001 From: Jan Hendrik Farr Date: Thu, 3 Oct 2024 17:41:43 +0200 Subject: [PATCH 1/2] [Clang] Fix __builtin_dynamic_object_size off by 4 Fixes: #

[clang-tools-extra] [clang-tidy] Create bugprone-bitwise-pointer-cast check (PR #108083)

2024-10-03 Thread Julian Schmidt via cfe-commits
https://github.com/5chmidti edited https://github.com/llvm/llvm-project/pull/108083 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Create bugprone-bitwise-pointer-cast check (PR #108083)

2024-10-03 Thread Julian Schmidt via cfe-commits
https://github.com/5chmidti approved this pull request. > Let me know there's anything else to fix or if we can merge. Maybe give it like a day if someone wants to chime in. https://github.com/llvm/llvm-project/pull/108083 ___ cfe-commits mailing list

[clang-tools-extra] [clang-tidy] Create bugprone-bitwise-pointer-cast check (PR #108083)

2024-10-03 Thread Julian Schmidt via cfe-commits
@@ -0,0 +1,44 @@ +//===--- BitwisePointerCastCheck.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: Apa

[clang] a72248c - Drop dangling comments from a recent test

2024-10-03 Thread Paul Robinson via cfe-commits
Author: Paul Robinson Date: 2024-10-03T12:56:29-04:00 New Revision: a72248cb65a74aff3cc5aef8d2807fc7efb4fb75 URL: https://github.com/llvm/llvm-project/commit/a72248cb65a74aff3cc5aef8d2807fc7efb4fb75 DIFF: https://github.com/llvm/llvm-project/commit/a72248cb65a74aff3cc5aef8d2807fc7efb4fb75.diff

[clang] c195981 - [CGData][ThinLTO][NFC] Prep for two-codegen rounds (#90934)

2024-10-03 Thread via cfe-commits
Author: Kyungwoo Lee Date: 2024-10-03T09:58:01-07:00 New Revision: c1959813d6a650de7626ef9b7a7313369277f49e URL: https://github.com/llvm/llvm-project/commit/c1959813d6a650de7626ef9b7a7313369277f49e DIFF: https://github.com/llvm/llvm-project/commit/c1959813d6a650de7626ef9b7a7313369277f49e.diff

[clang] [llvm] [CGData][ThinLTO][NFC] Prep for two-codegen rounds (PR #90934)

2024-10-03 Thread Kyungwoo Lee via cfe-commits
https://github.com/kyulee-com closed https://github.com/llvm/llvm-project/pull/90934 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] support static analyzer checker configuration in `--verify-config` (PR #109523)

2024-10-03 Thread Julian Schmidt via cfe-commits
https://github.com/5chmidti updated https://github.com/llvm/llvm-project/pull/109523 >From 8364d6def042734fe1efc1396646d160f3355a52 Mon Sep 17 00:00:00 2001 From: Julian Schmidt Date: Fri, 20 Sep 2024 01:52:31 +0200 Subject: [PATCH 1/2] [clang-tidy] support static analyzer checker configuratio

[clang-tools-extra] [clang-tidy] support `return c ? a : b;` in bugprone-return-const-ref-from-parameter (PR #107657)

2024-10-03 Thread Julian Schmidt via cfe-commits
https://github.com/5chmidti updated https://github.com/llvm/llvm-project/pull/107657 >From b00b02b3d92a88fcf7d688b39d52e74e59f76ecd Mon Sep 17 00:00:00 2001 From: Julian Schmidt Date: Sat, 7 Sep 2024 01:54:38 +0200 Subject: [PATCH] [clang-tidy] support `return c ? a : b;` in bugprone-return-co

[clang-tools-extra] 4f0ad8d - [clang-tidy] support static analyzer checker configuration in `--verify-config` (#109523)

2024-10-03 Thread via cfe-commits
Author: Julian Schmidt Date: 2024-10-03T19:10:36+02:00 New Revision: 4f0ad8d80a04faabc715d355744ba887c74e37f1 URL: https://github.com/llvm/llvm-project/commit/4f0ad8d80a04faabc715d355744ba887c74e37f1 DIFF: https://github.com/llvm/llvm-project/commit/4f0ad8d80a04faabc715d355744ba887c74e37f1.diff

[clang-tools-extra] [clang-tidy] support static analyzer checker configuration in `--verify-config` (PR #109523)

2024-10-03 Thread Julian Schmidt via cfe-commits
https://github.com/5chmidti closed https://github.com/llvm/llvm-project/pull/109523 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Add "extend lifetime" flags and release note (PR #110000)

2024-10-03 Thread Paul T Robinson via cfe-commits
https://github.com/pogo59 commented: It seems a little odd to have only positive forms of these flags; usually toggles would have both positive and negative forms. Maybe @MaskRay has an opinion? The release note doesn't say: Does `-fextend-lifetimes` imply `-fextend-this-pointer`? They're imp

[clang] Turn Wdeprecated-literal-operator on by default (PR #111027)

2024-10-03 Thread Erich Keane via cfe-commits
https://github.com/erichkeane created https://github.com/llvm/llvm-project/pull/111027 It would be nice to see what our users think about this change, as this is something that WG21/EWG quite wants to fix a handful of questionable issues with UB. Depending on the outcome of this after being co

[clang] Turn Wdeprecated-literal-operator on by default (PR #111027)

2024-10-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Erich Keane (erichkeane) Changes It would be nice to see what our users think about this change, as this is something that WG21/EWG quite wants to fix a handful of questionable issues with UB. Depending on the outcome of this after being

[clang] Turn Wdeprecated-literal-operator on by default (PR #111027)

2024-10-03 Thread Erich Keane via cfe-commits
@@ -503,17 +503,16 @@ bool Sema::checkLiteralOperatorId(const CXXScopeSpec &SS, const IdentifierInfo *II = Name.Identifier; ReservedIdentifierStatus Status = II->isReserved(PP.getLangOpts()); SourceLocation Loc = Name.getEndLoc(); -if (!PP.getSourceManager().isI

[clang] [llvm] [PowerPC][ISelLowering] Support -mstack-protector-guard=tls (PR #110928)

2024-10-03 Thread Keith Packard via cfe-commits
https://github.com/keith-packard updated https://github.com/llvm/llvm-project/pull/110928 >From 74b14206ea2ec0772063ce55440531834a8a0ae7 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Mon, 16 Sep 2024 15:41:38 +0200 Subject: [PATCH 1/4] [PowerPC][ISelLowering] Support -mstack-protector-gua

[clang] [llvm] [PowerPC][ISelLowering] Support -mstack-protector-guard=tls (PR #110928)

2024-10-03 Thread Keith Packard via cfe-commits
@@ -3605,7 +3605,8 @@ static void RenderSSPOptions(const Driver &D, const ToolChain &TC, StringRef Value = A->getValue(); if (!EffectiveTriple.isX86() && !EffectiveTriple.isAArch64() && !EffectiveTriple.isARM() && !EffectiveTriple.isThumb() && -!Effecti

[clang] [Clang] Add "extend lifetime" flags and release note (PR #110000)

2024-10-03 Thread David Blaikie via cfe-commits
@@ -2217,6 +2217,11 @@ bool CompilerInvocation::ParseCodeGenArgs(CodeGenOptions &Opts, ArgList &Args, Args.getAllArgValues(OPT_fsanitize_trap_EQ), Diags, Opts.SanitizeTrap); + Opts.ExtendThisPtr = + Opts.OptimizationLevel > 0

[clang] [Clang] Add "extend lifetime" flags and release note (PR #110000)

2024-10-03 Thread David Blaikie via cfe-commits
@@ -0,0 +1,12 @@ +// RUN: %clang_cc1 %s -emit-llvm -O2 -fextend-lifetimes -o - | FileCheck --check-prefixes=CHECK-ALL,CHECK-O2 %s +// RUN: %clang_cc1 %s -emit-llvm -O0 -fextend-lifetimes -o - | FileCheck --check-prefixes=CHECK-ALL,CHECK-O0 %s + +// Checks that we emit the functi

[clang] [Clang] Add "extend lifetime" flags and release note (PR #110000)

2024-10-03 Thread David Blaikie via cfe-commits
@@ -211,6 +211,16 @@ New Compiler Flags only for thread-local variables, and none (which corresponds to the existing ``-fno-c++-static-destructors`` flag) skips all static destructors registration. +- The ``-fextend-lifetimes`` and ``-fextend-this-ptr`` flags have been ad

[clang] [llvm] [PowerPC][ISelLowering] Support -mstack-protector-guard=tls (PR #110928)

2024-10-03 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 144dc4c3b152ccc7da340c0493da0308a577e5ad e81fc453386a060de81e72f9ff06ae81c168c0e7 --e

[clang] [llvm] [PowerPC][ISelLowering] Support -mstack-protector-guard=tls (PR #110928)

2024-10-03 Thread Keith Packard via cfe-commits
https://github.com/keith-packard updated https://github.com/llvm/llvm-project/pull/110928 >From 3ac025bd12d42b9318edf7aefe1d93a6d06b95bb Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Mon, 16 Sep 2024 15:41:38 +0200 Subject: [PATCH 1/4] [PowerPC][ISelLowering] Support -mstack-protector-gua

[clang] c098435 - Add cross builtins and cross HLSL function to DirectX and SPIR-V backend (#109180)

2024-10-03 Thread via cfe-commits
Author: Joshua Batista Date: 2024-10-03T10:24:09-07:00 New Revision: c098435eaa5d6bf2a00ac0e674914cd97790ab5b URL: https://github.com/llvm/llvm-project/commit/c098435eaa5d6bf2a00ac0e674914cd97790ab5b DIFF: https://github.com/llvm/llvm-project/commit/c098435eaa5d6bf2a00ac0e674914cd97790ab5b.diff

[clang] [llvm] Add cross builtins and cross HLSL function to DirectX and SPIR-V backend (PR #109180)

2024-10-03 Thread Joshua Batista via cfe-commits
https://github.com/bob80905 closed https://github.com/llvm/llvm-project/pull/109180 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libcxx] [clang] Handle template argument conversions for non-pack param to pack argument (PR #110963)

2024-10-03 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov updated https://github.com/llvm/llvm-project/pull/110963 >From e98e024104501f61e589deaeee13553d67e2a64e Mon Sep 17 00:00:00 2001 From: Matheus Izvekov Date: Thu, 3 Oct 2024 01:14:52 -0300 Subject: [PATCH] [clang] Handle template argument conversions for non-pack par

[clang-tools-extra] [clangd] support the zig c++ compiler wrapper (PR #100759)

2024-10-03 Thread Duncan Ogilvie via cfe-commits
mrexodia wrote: Ping! https://github.com/llvm/llvm-project/pull/100759 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Make some binary operations imply requires clause (PR #110942)

2024-10-03 Thread Emilia Kond via cfe-commits
@@ -3528,6 +3528,17 @@ bool UnwrappedLineParser::parseRequires() { return false; } break; +case tok::equalequal: +case tok::greaterequal: +case tok::lessequal: +case tok::r_paren: +case tok::pipepipe: + if (OpenAngles == 0) { +

[clang] 3692995 - [CodeGen] Fix warnings

2024-10-03 Thread Kazu Hirata via cfe-commits
Author: Kazu Hirata Date: 2024-10-03T10:47:26-07:00 New Revision: 36929955f5f0ff9b7ab1314dcbbb374d52f18a42 URL: https://github.com/llvm/llvm-project/commit/36929955f5f0ff9b7ab1314dcbbb374d52f18a42 DIFF: https://github.com/llvm/llvm-project/commit/36929955f5f0ff9b7ab1314dcbbb374d52f18a42.diff L

[clang] [clang][ExtractAPI] Fix up casting from CXXClassRecord (PR #110983)

2024-10-03 Thread Zixu Wang via cfe-commits
https://github.com/zixu-w approved this pull request. https://github.com/llvm/llvm-project/pull/110983 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [CGData][ThinLTO] Global Outlining with Two-CodeGen Rounds (PR #90933)

2024-10-03 Thread Kyungwoo Lee via cfe-commits
https://github.com/kyulee-com updated https://github.com/llvm/llvm-project/pull/90933 >From 4344f540008d4fd079bb009318b5b0b070bec0f8 Mon Sep 17 00:00:00 2001 From: Kyungwoo Lee Date: Fri, 13 Sep 2024 08:51:00 -0700 Subject: [PATCH 1/6] [CGData][ThinLTO] Global Outlining with Two-CodeGen Rounds

[clang] Turn Wdeprecated-literal-operator on by default (PR #111027)

2024-10-03 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll edited https://github.com/llvm/llvm-project/pull/111027 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Turn Wdeprecated-literal-operator on by default (PR #111027)

2024-10-03 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll commented: The rest of changes to DR tests look good. https://github.com/llvm/llvm-project/pull/111027 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Turn Wdeprecated-literal-operator on by default (PR #111027)

2024-10-03 Thread Vlad Serebrennikov via cfe-commits
@@ -203,6 +203,9 @@ namespace cwg1762 { // cwg1762: 14 float operator ""E(const char *); // since-cxx11-error@-1 {{invalid suffix on literal; C++11 requires a space between literal and identifier}} // since-cxx11-warning@-2 {{user-defined literal suffixes not starting wi

[clang] Turn Wdeprecated-literal-operator on by default (PR #111027)

2024-10-03 Thread Erich Keane via cfe-commits
@@ -203,6 +203,9 @@ namespace cwg1762 { // cwg1762: 14 float operator ""E(const char *); // since-cxx11-error@-1 {{invalid suffix on literal; C++11 requires a space between literal and identifier}} // since-cxx11-warning@-2 {{user-defined literal suffixes not starting wi

[clang] Add visibility features for z/OS (eg. _Export, pragma export) (PR #111035)

2024-10-03 Thread Sean Perry via cfe-commits
https://github.com/perry-ca created https://github.com/llvm/llvm-project/pull/111035 The z/OS operating system uses the linker to control what symbols are exported from shared libraries. The compilation step sets a bit on each symbol that should be exported from a shared library and then the

[clang] Add visibility features for z/OS (eg. _Export, pragma export) (PR #111035)

2024-10-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Sean Perry (perry-ca) Changes The z/OS operating system uses the linker to control what symbols are exported from shared libraries. The compilation step sets a bit on each symbol that should be exported from a shared library and

[clang] Add visibility features for z/OS (eg. _Export, pragma export) (PR #111035)

2024-10-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-systemz Author: Sean Perry (perry-ca) Changes The z/OS operating system uses the linker to control what symbols are exported from shared libraries. The compilation step sets a bit on each symbol that should be exported from a shared library a

[clang] Add visibility features for z/OS (eg. _Export, pragma export) (PR #111035)

2024-10-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Sean Perry (perry-ca) Changes The z/OS operating system uses the linker to control what symbols are exported from shared libraries. The compilation step sets a bit on each symbol that should be exported from a shared library and

[clang] Turn `-Wdeprecated-literal-operator` on by default (PR #111027)

2024-10-03 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll edited https://github.com/llvm/llvm-project/pull/111027 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Add visibility features for z/OS (eg. _Export, pragma export) (PR #111035)

2024-10-03 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 34d0c99d82791607d96db18b94218269106ef3b8 9cfc3ccba6bca8b9b2146e0830e21dc42e5cecdb --e

[clang] [llvm] [CGData][ThinLTO] Global Outlining with Two-CodeGen Rounds (PR #90933)

2024-10-03 Thread Kyungwoo Lee via cfe-commits
kyulee-com wrote: > IIUC, we must use `-codegen-data-generate` and `-codegen-data-use` in the > profiled and post-link build, respectively, whereas they are done in the same > build here. @rlavaee It is not strictly necessary to run both `-codegen-data-generate` and `-codegen-data-use` for ea

[clang] [compiler-rt] [llvm] [FMV][AArch64] Unify features ssbs and ssbs2. (PR #110297)

2024-10-03 Thread Alexandros Lamprineas via cfe-commits
https://github.com/labrinea updated https://github.com/llvm/llvm-project/pull/110297 >From 82047dc021979fe58001b15c740649c3d44dd23b Mon Sep 17 00:00:00 2001 From: Alexandros Lamprineas Date: Fri, 27 Sep 2024 16:37:26 +0100 Subject: [PATCH] [FMV][AArch64] Unify features ssbs and ssbs2. Accordin

[clang] 1cc3ffa - clangCodeGen: Reformat and refactor. NFC.

2024-10-03 Thread NAKAMURA Takumi via cfe-commits
Author: NAKAMURA Takumi Date: 2024-10-03T17:56:19+09:00 New Revision: 1cc3ffab4076ad727a2346b17b34486d848da9f6 URL: https://github.com/llvm/llvm-project/commit/1cc3ffab4076ad727a2346b17b34486d848da9f6 DIFF: https://github.com/llvm/llvm-project/commit/1cc3ffab4076ad727a2346b17b34486d848da9f6.dif

[clang] [clang-format] Handle template closer followed by braces (PR #110971)

2024-10-03 Thread Owen Pan via cfe-commits
https://github.com/owenca created https://github.com/llvm/llvm-project/pull/110971 Fixes #110968. >From b98834264b09fb283cc060ee06576b014809ec5f Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Thu, 3 Oct 2024 01:57:14 -0700 Subject: [PATCH] [clang-format] Handle template closer followed by brace

[clang] [clang-format] Handle template closer followed by braces (PR #110971)

2024-10-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: Owen Pan (owenca) Changes Fixes #110968. --- Full diff: https://github.com/llvm/llvm-project/pull/110971.diff 2 Files Affected: - (modified) clang/lib/Format/UnwrappedLineParser.cpp (+5) - (modified) clang/unittests/Format/Token

[clang] [alpha.webkit.UncountedLocalVarsChecker] Recursive functions are erroneously treated as non-trivial (PR #110973)

2024-10-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Ryosuke Niwa (rniwa) Changes This PR fixes the bug that alpha.webkit.UncountedLocalVarsChecker erroneously treats a trivial recursive function as non-trivial. This was caused by TrivialFunctionAnalysis::isTrivialImpl which takes a stateme

[clang] [alpha.webkit.UncountedLocalVarsChecker] Recursive functions are erroneously treated as non-trivial (PR #110973)

2024-10-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-static-analyzer-1 Author: Ryosuke Niwa (rniwa) Changes This PR fixes the bug that alpha.webkit.UncountedLocalVarsChecker erroneously treats a trivial recursive function as non-trivial. This was caused by TrivialFunctionAnalysis::isTrivialImpl whi

[clang] [alpha.webkit.UncountedLocalVarsChecker] Recursive functions are erroneously treated as non-trivial (PR #110973)

2024-10-03 Thread Ryosuke Niwa via cfe-commits
https://github.com/rniwa created https://github.com/llvm/llvm-project/pull/110973 This PR fixes the bug that alpha.webkit.UncountedLocalVarsChecker erroneously treats a trivial recursive function as non-trivial. This was caused by TrivialFunctionAnalysis::isTrivialImpl which takes a statement

[clang] [Clang][Driver] Support relative paths for CLANG_CONFIG_FILE_SYSTEM_DIR (PR #110962)

2024-10-03 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay approved this pull request. LGTM if you remove the unneeded, outer brace https://github.com/llvm/llvm-project/pull/110962 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo

[clang] [clang-format] Make some binary operations imply requires clause (PR #110942)

2024-10-03 Thread Emilia Kond via cfe-commits
@@ -3528,6 +3528,17 @@ bool UnwrappedLineParser::parseRequires() { return false; } break; +case tok::equalequal: +case tok::greaterequal: +case tok::lessequal: +case tok::r_paren: +case tok::pipepipe: + if (OpenAngles == 0) { +

[clang] [clang][analyzer] Less redundant warnings from FixedAddressChecker (PR #110458)

2024-10-03 Thread Balázs Kéri via cfe-commits
https://github.com/balazske closed https://github.com/llvm/llvm-project/pull/110458 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 1701895 - [clang][analyzer] Less redundant warnings from FixedAddressChecker (#110458)

2024-10-03 Thread via cfe-commits
Author: Balázs Kéri Date: 2024-10-03T09:17:51+02:00 New Revision: 1701895c362176cb898eba509b18e8d72d8095c9 URL: https://github.com/llvm/llvm-project/commit/1701895c362176cb898eba509b18e8d72d8095c9 DIFF: https://github.com/llvm/llvm-project/commit/1701895c362176cb898eba509b18e8d72d8095c9.diff L

[clang-tools-extra] [clang-tidy] loop convert can handle lambda init capture (PR #109159)

2024-10-03 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 updated https://github.com/llvm/llvm-project/pull/109159 >From 4fc1d24c4ff22a8da22454aebe7053ea76419767 Mon Sep 17 00:00:00 2001 From: Congcong Cai Date: Wed, 18 Sep 2024 23:26:02 +0800 Subject: [PATCH 1/2] [clang-tidy] loop convert can handle lambda init capture

[clang-tools-extra] e984d11 - [clang-tidy] loop convert can handle lambda init capture (#109159)

2024-10-03 Thread via cfe-commits
Author: Congcong Cai Date: 2024-10-03T16:16:49+08:00 New Revision: e984d11d7257343da366d9fa03749a43a6d6af72 URL: https://github.com/llvm/llvm-project/commit/e984d11d7257343da366d9fa03749a43a6d6af72 DIFF: https://github.com/llvm/llvm-project/commit/e984d11d7257343da366d9fa03749a43a6d6af72.diff

[clang-tools-extra] [clang-tidy] loop convert can handle lambda init capture (PR #109159)

2024-10-03 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 closed https://github.com/llvm/llvm-project/pull/109159 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][ASTMatcher]Handle variable templates in `isInstantiated` and `isInTemplateInstantiation` matchers (PR #110666)

2024-10-03 Thread Fred Tingaud via cfe-commits
https://github.com/frederic-tingaud-sonarsource edited https://github.com/llvm/llvm-project/pull/110666 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][ASTMatcher] Handle variable templates in `isInstantiated` and `isInTemplateInstantiation` matchers (PR #110666)

2024-10-03 Thread via cfe-commits
https://github.com/tomasz-kaminski-sonarsource edited https://github.com/llvm/llvm-project/pull/110666 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Fix a bug that misannotates binary operators */&/&& (PR #110945)

2024-10-03 Thread Emilia Kond via cfe-commits
https://github.com/rymiel approved this pull request. https://github.com/llvm/llvm-project/pull/110945 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Make some binary operations imply requires clause (PR #110942)

2024-10-03 Thread Owen Pan via cfe-commits
@@ -3528,6 +3528,17 @@ bool UnwrappedLineParser::parseRequires() { return false; } break; +case tok::equalequal: +case tok::greaterequal: +case tok::lessequal: +case tok::r_paren: +case tok::pipepipe: + if (OpenAngles == 0) { +

[clang] [Clang][Driver][AArch64] Add support for aarch64-amazon-linux triple (PR #109263)

2024-10-03 Thread Peter Waller via cfe-commits
peterwaller-arm wrote: Consensus expressed so far seems to be in favour of merging but I'll wait to give further opportunity for comment or objection before merging on Tuesday 8th around 0900 UTC. https://github.com/llvm/llvm-project/pull/109263 ___

[clang] [clang-format] Make some binary operations imply requires clause (PR #110942)

2024-10-03 Thread Emilia Kond via cfe-commits
@@ -3528,6 +3528,17 @@ bool UnwrappedLineParser::parseRequires() { return false; } break; +case tok::equalequal: +case tok::greaterequal: +case tok::lessequal: +case tok::r_paren: +case tok::pipepipe: + if (OpenAngles == 0) { +

[clang] [clang-format] Make some binary operations imply requires clause (PR #110942)

2024-10-03 Thread Owen Pan via cfe-commits
@@ -3528,6 +3528,17 @@ bool UnwrappedLineParser::parseRequires() { return false; } break; +case tok::equalequal: +case tok::greaterequal: +case tok::lessequal: +case tok::r_paren: +case tok::pipepipe: + if (OpenAngles == 0) { +

[clang] [libcxx] [clang] remove extra space in warn_atomic_op_oversized (NFC) (PR #110955)

2024-10-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-libcxx @llvm/pr-subscribers-clang Author: Enna1 (Enna1) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/110955.diff 4 Files Affected: - (modified) clang/include/clang/Basic/DiagnosticFrontendKinds.td (+1-1) - (modified) clang/test/

[clang] [libcxx] [clang] remove extra space in warn_atomic_op_oversized (NFC) (PR #110955)

2024-10-03 Thread via cfe-commits
https://github.com/Enna1 ready_for_review https://github.com/llvm/llvm-project/pull/110955 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Serialization] Avoid repeated hash lookups (NFC) (PR #110950)

2024-10-03 Thread Nikita Popov via cfe-commits
https://github.com/nikic approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/110950 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Driver] Support relative paths for CLANG_CONFIG_FILE_SYSTEM_DIR (PR #110962)

2024-10-03 Thread Carlo Cabrera via cfe-commits
carlocab wrote: Thanks, done! I thought that was preferred given the handling of `CLANG_CONFIG_FILE_USER_DIR` below it. https://github.com/llvm/llvm-project/pull/110962 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi

[clang] [libcxx] [clang] remove extra space in warn_atomic_op_oversized (NFC) (PR #110955)

2024-10-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-risc-v Author: Enna1 (Enna1) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/110955.diff 4 Files Affected: - (modified) clang/include/clang/Basic/DiagnosticFrontendKinds.td (+1-1) - (modified) clang/test/CodeGen/RISCV/riscv

[clang] [Clang][Driver] Support relative paths for CLANG_CONFIG_FILE_SYSTEM_DIR (PR #110962)

2024-10-03 Thread Carlo Cabrera via cfe-commits
https://github.com/carlocab updated https://github.com/llvm/llvm-project/pull/110962 >From e31545f666eb4ca32030956a38dbc4078a64068c Mon Sep 17 00:00:00 2001 From: Carlo Cabrera Date: Thu, 3 Oct 2024 14:15:07 +0800 Subject: [PATCH] [Clang][Driver] Support relative paths for CLANG_CONFIG_FILE_SY

[clang] [Analysis] Avoid repeated hash lookups (NFC) (PR #110949)

2024-10-03 Thread Nikita Popov via cfe-commits
https://github.com/nikic approved this pull request. https://github.com/llvm/llvm-project/pull/110949 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [AST] Avoid repeated hash lookups (NFC) (PR #110947)

2024-10-03 Thread Nikita Popov via cfe-commits
https://github.com/nikic approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/110947 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Sema] Avoid repeated hash lookups (NFC) (PR #110951)

2024-10-03 Thread Nikita Popov via cfe-commits
https://github.com/nikic approved this pull request. https://github.com/llvm/llvm-project/pull/110951 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Make some binary operations imply requires clause (PR #110942)

2024-10-03 Thread Owen Pan via cfe-commits
@@ -3528,6 +3528,17 @@ bool UnwrappedLineParser::parseRequires() { return false; } break; +case tok::equalequal: +case tok::greaterequal: +case tok::lessequal: +case tok::r_paren: +case tok::pipepipe: + if (OpenAngles == 0) { +

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

2024-10-03 Thread Ming-Yi Lai via cfe-commits
mylai-mtk wrote: Hello, is there anything more that I should amend about this PR? 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] loop convert can handle lambda init capture (PR #109159)

2024-10-03 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 updated https://github.com/llvm/llvm-project/pull/109159 >From 4fc1d24c4ff22a8da22454aebe7053ea76419767 Mon Sep 17 00:00:00 2001 From: Congcong Cai Date: Wed, 18 Sep 2024 23:26:02 +0800 Subject: [PATCH 1/2] [clang-tidy] loop convert can handle lambda init capture

[clang-tools-extra] [clang-tidy] loop convert can handle lambda init capture (PR #109159)

2024-10-03 Thread Congcong Cai via cfe-commits
@@ -980,3 +980,30 @@ namespace PR78381 { } } } + +namespace GH109083 { +void test() { + const int N = 6; + int Arr[N] = {1, 2, 3, 4, 5, 6}; + + for (int I = 0; I < N; ++I) { +auto V = [T = Arr[I]]() {}; + } + // CHECK-MESSAGES: :[[@LINE-3]]:3: warning: use range-

<    1   2   3   4   5   >