[clang] [WebKit checkers] Recognize adoptRef as a safe function (PR #120629)

2024-12-19 Thread Ryosuke Niwa via cfe-commits
https://github.com/rniwa closed https://github.com/llvm/llvm-project/pull/120629 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [webkit.UncountedLambdaCapturesChecker] Detect protectedThis pattern. (PR #120528)

2024-12-19 Thread Ryosuke Niwa via cfe-commits
rniwa wrote: Thanks for the review https://github.com/llvm/llvm-project/pull/120528 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Return larger CXX records in memory (PR #120670)

2024-12-19 Thread Pranav Kant via cfe-commits
https://github.com/pranavk created https://github.com/llvm/llvm-project/pull/120670 We incorrectly return CXX records in AVX registers when they should be returned in memory. This is violation of x86-64 psABI. Detailed discussion is here: https://groups.google.com/g/x86-64-abi/c/BjOOyihHuqg/m

[clang-tools-extra] Added options to readability-implicit-bool-conversion (PR #120087)

2024-12-19 Thread via cfe-commits
https://github.com/4m4n-x-B4w4ne updated https://github.com/llvm/llvm-project/pull/120087 >From 03f536888ddc5b7be2514c2d880c6d3119b7f4ee Mon Sep 17 00:00:00 2001 From: 4m4n-x-B4w4ne <125849251+4m4n-x-b4w...@users.noreply.github.com> Date: Mon, 16 Dec 2024 19:43:42 +0530 Subject: [PATCH 01/26] Up

[clang] [clang] Return larger CXX records in memory (PR #120670)

2024-12-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen @llvm/pr-subscribers-backend-x86 Author: Pranav Kant (pranavk) Changes We incorrectly return CXX records in AVX registers when they should be returned in memory. This is violation of x86-64 psABI. Detailed discussion is here: https://gro

[clang] [clang-format] Skip line splices when sorting C++ includes (PR #120680)

2024-12-19 Thread Owen Pan via cfe-commits
https://github.com/owenca created https://github.com/llvm/llvm-project/pull/120680 Fixes #109864. >From cb71ed39160ad46566db7ce5d4ab622ffcf842ee Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Thu, 19 Dec 2024 19:59:23 -0800 Subject: [PATCH] [clang-format] Skip line splices when sorting C++ incl

[clang] [clang-format] Skip line splices when sorting C++ includes (PR #120680)

2024-12-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: Owen Pan (owenca) Changes Fixes #109864. --- Full diff: https://github.com/llvm/llvm-project/pull/120680.diff 2 Files Affected: - (modified) clang/lib/Format/Format.cpp (+8-1) - (modified) clang/unittests/Format/SortIncludesTest

[clang] [llvm] Remove -bounds-checking-unique-traps (replace with -fno-sanitize-merge=local-bounds) (PR #120682)

2024-12-19 Thread Thurston Dang via cfe-commits
https://github.com/thurstond updated https://github.com/llvm/llvm-project/pull/120682 >From ee51ed7bd68df7b2dae3f1426471b34d0388a42f Mon Sep 17 00:00:00 2001 From: Thurston Dang Date: Fri, 20 Dec 2024 04:11:36 + Subject: [PATCH 1/4] Remove -bounds-checking-unique-traps (replace with -fno-s

[clang] [llvm] Remove -bounds-checking-unique-traps (replace with -fno-sanitize-merge=local-bounds) (PR #120682)

2024-12-19 Thread Thurston Dang via cfe-commits
@@ -445,9 +445,10 @@ New Compiler Flags - The ``-Warray-compare-cxx26`` warning has been added to warn about array comparison starting from C++26, this warning is enabled as an error by default. -- '-fsanitize-merge' (default) and '-fno-sanitize-merge' have been added for -

[clang] [llvm] Remove -bounds-checking-unique-traps (replace with -fno-sanitize-merge=local-bounds) (PR #120682)

2024-12-19 Thread Thurston Dang via cfe-commits
@@ -488,8 +489,11 @@ Removed Compiler Flags derivatives) is now removed, since it's no longer possible to suppress the diagnostic (see above). Users can expect an `unknown warning` diagnostic if it's still in use. -- The experimental flag '-ubsan-unique-traps' has been re

[clang] [llvm] Remove -bounds-checking-unique-traps (replace with -fno-sanitize-merge=local-bounds) (PR #120682)

2024-12-19 Thread Thurston Dang via cfe-commits
@@ -5,6 +5,21 @@ ; RUN: opt < %s -passes='bounds-checking' -S | FileCheck %s --check-prefixes=RTABORT ; RUN: opt < %s -passes='bounds-checking' -S | FileCheck %s --check-prefixes=MINRT ; RUN: opt < %s -passes='bounds-checking' -S | FileCheck %s --check-prefixes=MIN

[clang] [llvm] Add release notes for FUJITSU-MONAKA support (PR #120684)

2024-12-19 Thread Kinoshita Kotaro via cfe-commits
https://github.com/kinoshita-fj created https://github.com/llvm/llvm-project/pull/120684 Adds release notes for the FUJITSU-MONAKA support introduced in PR #118432. These notes were missing from the original PR. >From ee7524e1740ef70243bdaccbca360496e6b59797 Mon Sep 17 00:00:00 2001 From: Kino

[clang] [llvm] Remove -bounds-checking-unique-traps (replace with -fno-sanitize-merge=local-bounds) (PR #120682)

2024-12-19 Thread Thurston Dang via cfe-commits
@@ -1281,31 +1281,43 @@ parseRegAllocFastPassOptions(PassBuilder &PB, StringRef Params) { return Opts; } -Expected +Expected parseBoundsCheckingOptions(StringRef Params) { - BoundsCheckingPass::ReportingMode Mode = - BoundsCheckingPass::ReportingMode::Trap; + Bounds

[clang] [llvm] Remove -bounds-checking-unique-traps (replace with -fno-sanitize-merge=local-bounds) (PR #120682)

2024-12-19 Thread Thurston Dang via cfe-commits
@@ -299,7 +303,7 @@ void BoundsCheckingPass::printPipeline( raw_ostream &OS, function_ref MapClassName2PassName) { static_cast *>(this)->printPipeline( OS, MapClassName2PassName); - switch (Mode) { + switch (Options.Mode) { thurstond wrote: Adde

[clang] [llvm] [AArch64][docs] Add release notes for FUJITSU-MONAKA support (PR #120684)

2024-12-19 Thread Kinoshita Kotaro via cfe-commits
https://github.com/kinoshita-fj updated https://github.com/llvm/llvm-project/pull/120684 >From e4a47f6e7e44be47b697d194554655123c25c97f Mon Sep 17 00:00:00 2001 From: Kinoshita Kotaro Date: Tue, 17 Dec 2024 23:40:24 + Subject: [PATCH 1/2] [AArch64][docs] Add release notes for FUJITSU-MONAKA

[clang] [llvm] [AArch64][docs] Add release notes for FUJITSU-MONAKA support (PR #120684)

2024-12-19 Thread Kinoshita Kotaro via cfe-commits
@@ -977,6 +977,10 @@ Arm and AArch64 Support in leaf functions after enabling ``-fno-omit-frame-pointer``, you can do so by adding the ``-momit-leaf-frame-pointer`` option. +- Support has been added for the following processors (-mcpu identifiers in parenthesis): ---

[clang] [clang-tools-extra] Clang/Preprocessor: Not add headers of __has_include into DepColloctor (PR #120673)

2024-12-19 Thread YunQiang Su via cfe-commits
https://github.com/wzssyqa updated https://github.com/llvm/llvm-project/pull/120673 >From ef5e52370d202431c1e6970fc57a7a04b9e83b89 Mon Sep 17 00:00:00 2001 From: YunQiang Su Date: Fri, 20 Dec 2024 02:55:49 + Subject: [PATCH 1/2] Clang/Preprocessor: Not add headers of __has_include into Dep

[clang] [llvm] Remove -bounds-checking-unique-traps (replace with -fno-sanitize-merge=local-bounds) (PR #120682)

2024-12-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Thurston Dang (thurstond) Changes -fno-sanitize-merge (introduced in #120511) combines the functionality of -ubsan-unique-traps and -bounds-checking-unique-traps, while allowing fine-grained control of which UBSan checks to prevent mergin

[clang] [llvm] Remove -bounds-checking-unique-traps (replace with -fno-sanitize-merge=local-bounds) (PR #120682)

2024-12-19 Thread Thurston Dang via cfe-commits
https://github.com/thurstond edited https://github.com/llvm/llvm-project/pull/120682 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Remove -bounds-checking-unique-traps (replace with -fno-sanitize-merge=local-bounds) (PR #120682)

2024-12-19 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 cc7d0841cc27b709f83a4194f45914c00a69a9ea ee51ed7bd68df7b2dae3f1426471b34d0388a42f --e

[clang] [llvm] Remove -bounds-checking-unique-traps (replace with -fno-sanitize-merge=local-bounds) (PR #120682)

2024-12-19 Thread Thurston Dang via cfe-commits
https://github.com/thurstond edited https://github.com/llvm/llvm-project/pull/120682 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Remove -bounds-checking-unique-traps (replace with -fno-sanitize-merge=local-bounds) (PR #120682)

2024-12-19 Thread Thurston Dang via cfe-commits
https://github.com/thurstond updated https://github.com/llvm/llvm-project/pull/120682 >From ee51ed7bd68df7b2dae3f1426471b34d0388a42f Mon Sep 17 00:00:00 2001 From: Thurston Dang Date: Fri, 20 Dec 2024 04:11:36 + Subject: [PATCH 1/2] Remove -bounds-checking-unique-traps (replace with -fno-s

[clang] [llvm] Remove -bounds-checking-unique-traps (replace with -fno-sanitize-merge=local-bounds) (PR #120682)

2024-12-19 Thread Thurston Dang via cfe-commits
https://github.com/thurstond created https://github.com/llvm/llvm-project/pull/120682 -fno-sanitize-merge (introduced in #120511) combines the functionality of -ubsan-unique-traps and -bounds-checking-unique-traps, while allowing fine-grained control of which UBSan checks to prevent merging. #

[clang] [llvm] Remove -bounds-checking-unique-traps (replace with -fno-sanitize-merge=local-bounds) (PR #120682)

2024-12-19 Thread Vitaly Buka via cfe-commits
@@ -5,6 +5,21 @@ ; RUN: opt < %s -passes='bounds-checking' -S | FileCheck %s --check-prefixes=RTABORT ; RUN: opt < %s -passes='bounds-checking' -S | FileCheck %s --check-prefixes=MINRT ; RUN: opt < %s -passes='bounds-checking' -S | FileCheck %s --check-prefixes=MIN

[clang] [llvm] Remove -bounds-checking-unique-traps (replace with -fno-sanitize-merge=local-bounds) (PR #120682)

2024-12-19 Thread Vitaly Buka via cfe-commits
@@ -1281,31 +1281,43 @@ parseRegAllocFastPassOptions(PassBuilder &PB, StringRef Params) { return Opts; } -Expected +Expected parseBoundsCheckingOptions(StringRef Params) { - BoundsCheckingPass::ReportingMode Mode = - BoundsCheckingPass::ReportingMode::Trap; + Bounds

[clang-tools-extra] [clangd] Allow specifying what headers are always included via "" or <> (PR #67749)

2024-12-19 Thread Nathan Ridge via cfe-commits
HighCommander4 wrote: > I don't have any energy and the massive reachitecting requested would take me > tons of time. I certainly didn't intend to request a massive rearchitecting. Sam's comment gave me the impression that hooking up the preferences to include-cleaner would be fairly straight

[clang] [llvm] Remove -bounds-checking-unique-traps (replace with -fno-sanitize-merge=local-bounds) (PR #120682)

2024-12-19 Thread Vitaly Buka via cfe-commits
@@ -299,7 +303,7 @@ void BoundsCheckingPass::printPipeline( raw_ostream &OS, function_ref MapClassName2PassName) { static_cast *>(this)->printPipeline( OS, MapClassName2PassName); - switch (Mode) { + switch (Options.Mode) { vitalybuka wrote: you

[clang] [clang-format] Skip line splices when sorting C++ includes (PR #120680)

2024-12-19 Thread Owen Pan via cfe-commits
https://github.com/owenca updated https://github.com/llvm/llvm-project/pull/120680 >From 8821857ea4d10c4122b5b9d7fefd005169f8852a Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Thu, 19 Dec 2024 19:59:23 -0800 Subject: [PATCH] [clang-format] Skip line splices when sorting C++ includes Fixes #109

[clang] [llvm] Add release notes for FUJITSU-MONAKA support (PR #120684)

2024-12-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kinoshita Kotaro (kinoshita-fj) Changes Adds release notes for the FUJITSU-MONAKA support introduced in PR #118432. These notes were missing from the original PR. --- Full diff: https://github.com/llvm/llvm-project/pull/120684.diff 2 Fil

[clang] [llvm] Remove -bounds-checking-unique-traps (replace with -fno-sanitize-merge=local-bounds) (PR #120682)

2024-12-19 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka approved this pull request. https://github.com/llvm/llvm-project/pull/120682 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AArch64][docs] Add release notes for FUJITSU-MONAKA support (PR #120684)

2024-12-19 Thread Kinoshita Kotaro via cfe-commits
https://github.com/kinoshita-fj edited https://github.com/llvm/llvm-project/pull/120684 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AArch64][docs] Add release notes for FUJITSU-MONAKA support (PR #120684)

2024-12-19 Thread Kinoshita Kotaro via cfe-commits
https://github.com/kinoshita-fj updated https://github.com/llvm/llvm-project/pull/120684 >From e4a47f6e7e44be47b697d194554655123c25c97f Mon Sep 17 00:00:00 2001 From: Kinoshita Kotaro Date: Tue, 17 Dec 2024 23:40:24 + Subject: [PATCH] [AArch64][docs] Add release notes for FUJITSU-MONAKA sup

[clang] [clang][Sema] Fixes for %b printf extension handling (PR #120689)

2024-12-19 Thread Brad Smith via cfe-commits
https://github.com/brad0 updated https://github.com/llvm/llvm-project/pull/120689 >From db61e7cc93b93bfa4ea19b274532f562b3c0a9a6 Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Thu, 19 Dec 2024 21:35:57 -0500 Subject: [PATCH] [clang][Sema] Fixes for %b printf extension handling The %b printf e

<    1   2   3   4   5   6