[clang] [Mips] Fix clang compile error when -march=p5600 with -mmsa (PR #132679)

2025-03-23 Thread via cfe-commits
https://github.com/yingopq updated https://github.com/llvm/llvm-project/pull/132679 >From 57facf0cf984b68d5c186aebe31a859827a2a3e3 Mon Sep 17 00:00:00 2001 From: Ying Huang Date: Sun, 23 Mar 2025 23:26:08 -0400 Subject: [PATCH] [Mips] Fix clang compile error when -march=p5600 with -mmsa When -

[clang] [Mips] Fix clang compile error when -march=p5600 with -mmsa (PR #132679)

2025-03-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: None (yingopq) Changes When -march=p5600 with -mmsa, the result of getISARev is 0, so report error. Append p5600 to cases mips32r5. --- Full diff: https://github.com/llvm/llvm-project/pull/132679.diff 2 Files Affected: - (modifi

[clang] [Mips] Fix clang compile error when -march=p5600 with -mmsa (PR #132679)

2025-03-23 Thread via cfe-commits
https://github.com/yingopq created https://github.com/llvm/llvm-project/pull/132679 When -march=p5600 with -mmsa, the result of getISARev is 0, so report error. Append p5600 to cases mips32r5. >From 6f4c2dc2b9815172023ac8bf80347bd293f0647d Mon Sep 17 00:00:00 2001 From: Ying Huang Date: Sun,

[clang] [CIR] Upstream initial for-loop support (PR #132266)

2025-03-23 Thread Erich Keane via cfe-commits
@@ -165,6 +165,25 @@ LValue CIRGenFunction::emitDeclRefLValue(const DeclRefExpr *e) { return LValue(); } +mlir::Value CIRGenFunction::evaluateExprAsBool(const Expr *e) { erichkeane wrote: This should only be necessary in C, right? Where 'bool' isn't avail

[clang] [clang-repl] Handle frontend options for clang-repl before calling executeAction (PR #132670)

2025-03-23 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 1019457891fda0b2f32f50ba99d6a261df12ec08 6545414a97b6458333f399c7252ae55c88a42d62 --e

[clang-tools-extra] [clang-tidy][C++20] Add support for Initialization Forwarding in Nested Object Construction (PR #131969)

2025-03-23 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 5ac680c5bffdc216d131fd260d2b1c9435b15571 fa0f1079587e6e26279c293fe4467ff0388f6a43 --e

[clang-tools-extra] [clang-tidy] Avoid repeated map lookups (NFC) (PR #132656)

2025-03-23 Thread Balazs Benics via cfe-commits
https://github.com/steakhal approved this pull request. https://github.com/llvm/llvm-project/pull/132656 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][RISCV] Fix RUN line and rename test name for pr129995 (PR #132676)

2025-03-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Brandon Wu (4vtomat) Changes ninja check-clang can not detect .cc suffix, so the typo is not detected. --- Full diff: https://github.com/llvm/llvm-project/pull/132676.diff 1 Files Affected: - (renamed) clang/test/CodeGen/RISCV/issue-12

[clang] [clang][RISCV] Fix RUN line and rename test name for pr129995 (PR #132676)

2025-03-23 Thread Brandon Wu via cfe-commits
https://github.com/4vtomat created https://github.com/llvm/llvm-project/pull/132676 ninja check-clang can not detect .cc suffix, so the typo is not detected. >From e7b0b4feae891046553a04ddbf17e550742db54c Mon Sep 17 00:00:00 2001 From: Brandon Wu Date: Sun, 23 Mar 2025 23:29:27 -0700 Subject:

[clang] [Clang][TableGen] Support specifying address space in clang builtin prototypes (PR #108497)

2025-03-23 Thread Vikram Hegde via cfe-commits
vikramRH wrote: handled https://github.com/llvm/llvm-project/pull/122873 https://github.com/llvm/llvm-project/pull/108497 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy][C++20] Add support for Initialization Forwarding in Nested Objects (PR #131969)

2025-03-23 Thread David Rivera via cfe-commits
https://github.com/RiverDave edited https://github.com/llvm/llvm-project/pull/131969 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy][C++20] Add support for Initialization Forwarding in Nested Object Construction (PR #131969)

2025-03-23 Thread David Rivera via cfe-commits
https://github.com/RiverDave updated https://github.com/llvm/llvm-project/pull/131969 >From c966cef850ed1350264110e622866dae66f99a07 Mon Sep 17 00:00:00 2001 From: David Rivera Date: Sun, 16 Mar 2025 16:20:16 -0400 Subject: [PATCH] [clang-tidy] Add support for Initialization Forwarding in Nest

[clang-tools-extra] [clang-tidy][C++20] Add support for Initialization Forwarding in Nested Object Construction (PR #131969)

2025-03-23 Thread David Rivera via cfe-commits
https://github.com/RiverDave edited https://github.com/llvm/llvm-project/pull/131969 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Fix the assertion condition after b8d1f3d6 (PR #132669)

2025-03-23 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 edited https://github.com/llvm/llvm-project/pull/132669 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Fix the assertion condition after b8d1f3d6 (PR #132669)

2025-03-23 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 updated https://github.com/llvm/llvm-project/pull/132669 >From 2894090c356438867c182fd76c9b89354c0bafee Mon Sep 17 00:00:00 2001 From: Younan Zhang Date: Mon, 24 Mar 2025 12:43:17 +0800 Subject: [PATCH 1/2] [Clang] Fix the assertion condition after b8d1f3d6 MIME-Versi

[clang] [Clang] Fix the assertion condition after b8d1f3d6 (PR #132669)

2025-03-23 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 updated https://github.com/llvm/llvm-project/pull/132669 >From 27a42c2b5186b8bd5a71ca7e8bc574439d21e7fd Mon Sep 17 00:00:00 2001 From: Younan Zhang Date: Mon, 24 Mar 2025 12:43:17 +0800 Subject: [PATCH 1/2] [Clang] Fix the assertion condition after b8d1f3d6 MIME-Versi

[clang] [alpha.webkit.RetainPtrCtorAdoptChecker] Support adopt(cast(copy(~)) (PR #132316)

2025-03-23 Thread Ryosuke Niwa via cfe-commits
https://github.com/rniwa created https://github.com/llvm/llvm-project/pull/132316 This PR adds the support for recognizing calling adoptCF/adoptNS on the result of a cast operation on the return value of a function which creates NS or CF types. It also fixes a bug that we weren't reporting mem

[clang-tools-extra] [clang-tidy][C++20] Add support for Initialization Forwarding in Nested Object Construction (PR #131969)

2025-03-23 Thread David Rivera via cfe-commits
https://github.com/RiverDave edited https://github.com/llvm/llvm-project/pull/131969 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy][C++20] Add support for Initialization Forwarding in Nested Object Construction (PR #131969)

2025-03-23 Thread David Rivera via cfe-commits
https://github.com/RiverDave edited https://github.com/llvm/llvm-project/pull/131969 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Fix the assertion condition after b8d1f3d6 (PR #132669)

2025-03-23 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 converted_to_draft https://github.com/llvm/llvm-project/pull/132669 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Fix the assertion condition after b8d1f3d6 (PR #132669)

2025-03-23 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 edited https://github.com/llvm/llvm-project/pull/132669 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Fix the assertion condition after b8d1f3d6 (PR #132669)

2025-03-23 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 updated https://github.com/llvm/llvm-project/pull/132669 >From 27a42c2b5186b8bd5a71ca7e8bc574439d21e7fd Mon Sep 17 00:00:00 2001 From: Younan Zhang Date: Mon, 24 Mar 2025 12:43:17 +0800 Subject: [PATCH 1/2] [Clang] Fix the assertion condition after b8d1f3d6 MIME-Versi

[clang] [Clang] Fix various bugs in alias CTAD transform (PR #132061)

2025-03-23 Thread Younan Zhang via cfe-commits
@@ -1072,12 +1072,27 @@ BuildDeductionGuideForTypeAlias(Sema &SemaRef, AliasRhsTemplateArgs, TDeduceInfo, DeduceResults, /*NumberOfArgumentsMustMatch=*/false); + static std::function IsNonDeducedArgument = zyn0217 wrote: Ah sorry I saw the commen

[clang] [clang-repl] Handle frontend options for clang-repl before calling executeAction (PR #132670)

2025-03-23 Thread Anutosh Bhat via cfe-commits
anutosh491 wrote: I see clang handle 4 types of FrontendOpts before calling ExecuteAction 1) help 2) version 3) Plugins through [LoadRequestedPlugins](https://github.com/llvm/llvm-project/blob/4e4e4a190fb7c74453994935c843b09cc682f4bb/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp#L225) 4)

[clang-tools-extra] [clang-tidy][C++20] Add support for Initialization Forwarding in Nested Object Construction (PR #131969)

2025-03-23 Thread David Rivera via cfe-commits
RiverDave wrote: Removed **Aggregates** from both title and release notes considering my changes can potentially affect non aggregate structs types as well. https://github.com/llvm/llvm-project/pull/131969 ___ cfe-commits mailing list cfe-commits@list

[clang-tools-extra] [clang-tidy][C++20] Add support for Initialization Forwarding in Nested Object Construction (PR #131969)

2025-03-23 Thread David Rivera via cfe-commits
@@ -0,0 +1,86 @@ +// RUN: %check_clang_tidy %s -std=c++20 modernize-use-emplace %t -- \ RiverDave wrote: File was removed as suggested, will create a new file for future work on designated inits https://github.com/llvm/llvm-project/pull/131969 _

[clang-tools-extra] [clang-tidy][C++20] Add support for Initialization Forwarding in Nested Object Construction (PR #131969)

2025-03-23 Thread David Rivera via cfe-commits
https://github.com/RiverDave edited https://github.com/llvm/llvm-project/pull/131969 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy][C++20] Add support for Initialization Forwarding in Nested Object Construction (PR #131969)

2025-03-23 Thread David Rivera via cfe-commits
@@ -1,4 +1,4 @@ -// RUN: %check_clang_tidy %s modernize-use-emplace %t -- \ +// RUN: %check_clang_tidy %s -std=c++17 modernize-use-emplace %t -- \ RiverDave wrote: Thx for your suggestions, this is really great, this should be addressed now. https://github.com/l

[clang] [clang-format] Don't wrap before attributes in parameter lists (PR #132519)

2025-03-23 Thread Owen Pan via cfe-commits
https://github.com/owenca updated https://github.com/llvm/llvm-project/pull/132519 >From eef6fd8d88c0a4cb22428dd2720af83aef8a7661 Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Fri, 21 Mar 2025 21:34:52 -0700 Subject: [PATCH] [clang-format] Don't wrap before attributes in parameter lists Fix #

[clang-tools-extra] [clang-tidy][C++20] Add support for Initialization Forwarding in Nested Object Construction (PR #131969)

2025-03-23 Thread David Rivera via cfe-commits
https://github.com/RiverDave updated https://github.com/llvm/llvm-project/pull/131969 >From 30678d79b5f7cd91da8eef5251eabe96875c0397 Mon Sep 17 00:00:00 2001 From: David Rivera Date: Sun, 16 Mar 2025 16:20:16 -0400 Subject: [PATCH] [clang-tidy] Add support for Initialization Forwarding in Nest

[clang] [clang-repl] Handle frontend options for clang-repl before calling executeAction (PR #132670)

2025-03-23 Thread Anutosh Bhat via cfe-commits
https://github.com/anutosh491 updated https://github.com/llvm/llvm-project/pull/132670 >From 6545414a97b6458333f399c7252ae55c88a42d62 Mon Sep 17 00:00:00 2001 From: anutosh491 Date: Mon, 24 Mar 2025 10:09:59 +0530 Subject: [PATCH 1/2] Handle frontend options for clang-repl before calling execu

[clang-tools-extra] [clang-tidy][C++20] Add support for Initialization Forwarding in Nested Object Construction (PR #131969)

2025-03-23 Thread David Rivera via cfe-commits
https://github.com/RiverDave updated https://github.com/llvm/llvm-project/pull/131969 >From fa0f1079587e6e26279c293fe4467ff0388f6a43 Mon Sep 17 00:00:00 2001 From: David Rivera Date: Sun, 16 Mar 2025 16:20:16 -0400 Subject: [PATCH] [clang-tidy] Add support for Initialization Forwarding in Nest

[clang] [Clang] Fix the assertion condition after b8d1f3d6 (PR #132669)

2025-03-23 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 edited https://github.com/llvm/llvm-project/pull/132669 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-repl] Handle frontend options for clang-repl before calling executeAction (PR #132670)

2025-03-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Anutosh Bhat (anutosh491) Changes 1) How usual clang works It goes from Creating the Compiler Instance -> [Addressing these llvmargs](https://github.com/llvm/llvm-project/blob/4e4e4a190fb7c74453994935c843b09cc682f4bb/clang/lib/FrontendToo

[clang] [clang-repl] Handle frontend options for clang-repl before calling executeAction (PR #132670)

2025-03-23 Thread Anutosh Bhat via cfe-commits
anutosh491 wrote: After handling these args we should see ``` (base) anutosh491@Anutoshs-MacBook-Air bin % ./clang-repl --Xcc -Xclang --Xcc -version LLVM (http://llvm.org/): LLVM version 21.0.0git Optimized build. clang-repl: Version displayed ``` rathe

[clang] [clang-repl] Handle frontend options for clang-repl before calling executeAction (PR #132670)

2025-03-23 Thread Anutosh Bhat via cfe-commits
https://github.com/anutosh491 created https://github.com/llvm/llvm-project/pull/132670 1) How usual clang works It goes from Creating the Compiler Instance -> [Addressing these llvmargs](https://github.com/llvm/llvm-project/blob/4e4e4a190fb7c74453994935c843b09cc682f4bb/clang/lib/FrontendTool/E

[clang] [Clang] Fix the assertion condition after b8d1f3d6 (PR #132669)

2025-03-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Younan Zhang (zyn0217) Changes Thanks to the example provided by @MagentaTreehouse, I realized the assertion I added didn't cover all valid cases like, when inheriting from a class template specialization, the source of a synthesized temp

[clang] [llvm] Optimize Module Dependency Handling for Efficient Memory Usage (PR #132294)

2025-03-23 Thread Ayush Pareek via cfe-commits
https://github.com/ayushpareek2003 closed https://github.com/llvm/llvm-project/pull/132294 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Retry for Unique Path Creation (PR #132640)

2025-03-23 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-tools-extra] [clang-tidy][C++20] Add support for aggregate types within modernize-use-emplace (PR #131969)

2025-03-23 Thread David Rivera via cfe-commits
@@ -0,0 +1,86 @@ +// RUN: %check_clang_tidy %s -std=c++20 modernize-use-emplace %t -- \ +// RUN: -config="{CheckOptions: \ +// RUN: {modernize-use-emplace.ContainersWithPushBack: \ +// RUN:'::std::vector; ::std::list; ::std::deque; llvm::LikeASmallVe

[clang-tools-extra] [clang-doc] [feat] add --repository-line-prefix argument (PR #131280)

2025-03-23 Thread Mohamed Emad via cfe-commits
https://github.com/hulxv updated https://github.com/llvm/llvm-project/pull/131280 >From bf9bd4156cb7f652c9cf0477f537e5c58b470448 Mon Sep 17 00:00:00 2001 From: hulxv Date: Fri, 14 Mar 2025 07:39:15 +0200 Subject: [PATCH 01/10] [clang-doc] [feat] add `--repository-line-prefix` argument (fix #59

[clang] [llvm] Optimize Module Dependency Handling for Efficient Memory Usage (PR #132294)

2025-03-23 Thread Ayush Pareek via cfe-commits
https://github.com/ayushpareek2003 updated https://github.com/llvm/llvm-project/pull/132294 >From 53a31ec6ed3d9ace8e7d822c2b2de4f6f58ece8d Mon Sep 17 00:00:00 2001 From: Ayush Pareek Date: Fri, 21 Mar 2025 03:44:05 +0530 Subject: [PATCH 1/2] Optimize Module Dependency Handling for Efficient Mem

[clang-tools-extra] [clang-tidy] Avoid repeated map lookups (NFC) (PR #132656)

2025-03-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Kazu Hirata (kazutakahirata) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/132656.diff 1 Files Affected: - (modified) clang-tools-extra/clang-tidy/utils/HeaderGuard.cpp (+3-4) ``diff diff --git

[clang-tools-extra] [clang-tidy] Avoid repeated map lookups (NFC) (PR #132656)

2025-03-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: Kazu Hirata (kazutakahirata) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/132656.diff 1 Files Affected: - (modified) clang-tools-extra/clang-tidy/utils/HeaderGuard.cpp (+3-4) ``diff diff --git a/clan

[clang-tools-extra] [clang-tidy] Avoid repeated map lookups (NFC) (PR #132656)

2025-03-23 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/132656 None >From efa4f020eda6ff2f9da14f250be72fb6bc17b59c Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 23 Mar 2025 08:06:57 -0700 Subject: [PATCH] [clang-tidy] Avoid repeated map lookups (NFC) --- c

[clang] [clang-tools-extra] [lldb] Reland: [clang] preserve class type sugar when taking pointer to member (PR #132401)

2025-03-23 Thread Martin Storsjö via cfe-commits
mstorsjo wrote: > Thanks, for the report, will be fixed by #132551 Thanks for the quick fix, I can confirm that Qt builds fine for me again! https://github.com/llvm/llvm-project/pull/132401 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https

[clang-tools-extra] [clang-doc] [feat] add --repository-line-prefix argument (PR #131280)

2025-03-23 Thread Mohamed Emad via cfe-commits
https://github.com/hulxv updated https://github.com/llvm/llvm-project/pull/131280 >From bf9bd4156cb7f652c9cf0477f537e5c58b470448 Mon Sep 17 00:00:00 2001 From: hulxv Date: Fri, 14 Mar 2025 07:39:15 +0200 Subject: [PATCH 01/10] [clang-doc] [feat] add `--repository-line-prefix` argument (fix #59

[clang-tools-extra] [clang-doc] [feat] add --repository-line-prefix argument (PR #131280)

2025-03-23 Thread Mohamed Emad via cfe-commits
https://github.com/hulxv updated https://github.com/llvm/llvm-project/pull/131280 >From bf9bd4156cb7f652c9cf0477f537e5c58b470448 Mon Sep 17 00:00:00 2001 From: hulxv Date: Fri, 14 Mar 2025 07:39:15 +0200 Subject: [PATCH 01/10] [clang-doc] [feat] add `--repository-line-prefix` argument (fix #59

[clang-tools-extra] [clang-doc] [feat] add --repository-line-prefix argument (PR #131280)

2025-03-23 Thread Mohamed Emad via cfe-commits
https://github.com/hulxv updated https://github.com/llvm/llvm-project/pull/131280 >From bf9bd4156cb7f652c9cf0477f537e5c58b470448 Mon Sep 17 00:00:00 2001 From: hulxv Date: Fri, 14 Mar 2025 07:39:15 +0200 Subject: [PATCH 01/10] [clang-doc] [feat] add `--repository-line-prefix` argument (fix #59

[clang-tools-extra] [clang-doc] [feat] add --repository-line-prefix argument (PR #131280)

2025-03-23 Thread Mohamed Emad via cfe-commits
https://github.com/hulxv updated https://github.com/llvm/llvm-project/pull/131280 >From bf9bd4156cb7f652c9cf0477f537e5c58b470448 Mon Sep 17 00:00:00 2001 From: hulxv Date: Fri, 14 Mar 2025 07:39:15 +0200 Subject: [PATCH 1/9] [clang-doc] [feat] add `--repository-line-prefix` argument (fix #5981

[clang] Retry for Unique Path Creation (PR #132640)

2025-03-23 Thread Ayush Pareek via cfe-commits
https://github.com/ayushpareek2003 created https://github.com/llvm/llvm-project/pull/132640 At line 754, added a FOR loop for retrying until we get a unique path >From 3927b90a26ea1bd04fe7e55a6d21e7d27ce68839 Mon Sep 17 00:00:00 2001 From: Ayush Pareek Date: Mon, 24 Mar 2025 03:45:31 +0530 Sub

[clang] Retry for Unique Path Creation (PR #132640)

2025-03-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Ayush Pareek (ayushpareek2003) Changes At line 754, added a FOR loop for retrying until we get a unique path --- Full diff: https://github.com/llvm/llvm-project/pull/132640.diff 1 Files Affected: - (modified) clang/lib/Tooling/Dependenc

[clang-tools-extra] [clang-tidy] Improve `bugprone-capturing-this-in-member-variable` check: add support of `bind` functions. (PR #132635)

2025-03-23 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor created https://github.com/llvm/llvm-project/pull/132635 Improve `bugprone-capturing-this-in-member-variable` check: Added support of `bind`-like functions that capture and store `this` pointer in class member. Closes https://github.com/llvm/llvm-project/issues/1312

[clang-tools-extra] [clang-tidy] Improve `bugprone-capturing-this-in-member-variable` check: add support of `bind` functions. (PR #132635)

2025-03-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: Baranov Victor (vbvictor) Changes Improve `bugprone-capturing-this-in-member-variable` check: Added support of `bind`-like functions that capture and store `this` pointer in class member. Closes https://github.com/llvm/llvm-project/i

[clang] [NFC][analyzer] Multipart checker refactor 2: NullabilityChecker (PR #132250)

2025-03-23 Thread Balazs Benics via cfe-commits
=?utf-8?q?Donát?= Nagy , =?utf-8?q?Donát?= Nagy , =?utf-8?q?Donát?= Nagy Message-ID: In-Reply-To: @@ -112,25 +112,30 @@ class NullabilityChecker void printState(raw_ostream &Out, ProgramStateRef State, const char *NL, const char *Sep) const override; -

[clang] [llvm] [OpenEmbedded] Fix include and lib paths for multilib targets (PR #121302)

2025-03-23 Thread Mike Crowe via cfe-commits
mikecrowe wrote: I [tried asking](https://lists.openembedded.org/g/openembedded-core/topic/gcc_library_directory_and/111849200) about this on the OpenEmbedded mailing list. The response was that it has been this way for so long that it's going to be a major undertaking to change it even thoug

[clang] [clang-tools-extra] [clang] improve class type sugar preservation in pointers to members (PR #130537)

2025-03-23 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `lldb-aarch64-ubuntu` running on `linaro-lldb-aarch64-ubuntu` while building `clang-tools-extra,clang` at step 4 "build". Full details are available at: https://lab.llvm.org/buildbot/#/builders/59/builds/14624 Here is the re

[clang] 3853116 - [SPARC][Driver] Set correct IAS mode defaults for Linux and Free/OpenBSD (#130108)

2025-03-23 Thread via cfe-commits
Author: Koakuma Date: 2025-03-23T20:56:40+07:00 New Revision: 385311625945e65990bd60bea76a045dcaf3f47b URL: https://github.com/llvm/llvm-project/commit/385311625945e65990bd60bea76a045dcaf3f47b DIFF: https://github.com/llvm/llvm-project/commit/385311625945e65990bd60bea76a045dcaf3f47b.diff LOG:

[clang] 5fc891b - [clang][bytecode][NFC] Use getElemType() in __builtin_memchr as well (#132550)

2025-03-23 Thread via cfe-commits
Author: Timm Baeder Date: 2025-03-22T16:34:22+01:00 New Revision: 5fc891b965223d66b552397e49fb4b09d781d5da URL: https://github.com/llvm/llvm-project/commit/5fc891b965223d66b552397e49fb4b09d781d5da DIFF: https://github.com/llvm/llvm-project/commit/5fc891b965223d66b552397e49fb4b09d781d5da.diff L

[clang] [clang-tools-extra] [clang-tidy] Avoid processing declarations in system headers (PR #128150)

2025-03-23 Thread Carlos Galvez via cfe-commits
carlosgalvezp wrote: Hmm, it does not remove much - Baseline: `Suppressed 196093 warnings (196093 in non-user code)` - Trunk: `Suppressed 8050 warnings (8050 in non-user code).` - Apparently there's a bug in the `isSystemHeader` function, since some core compiler headers like `os_defines.h`

[clang] [Docs] Document freestanding requirements (PR #132232)

2025-03-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Aaron Ballman (AaronBallman) Changes This adds some initial documentation about freestanding requirements for Clang. The most critical part of the documentation is spelling out that a conforming freestanding C Standard Library is required

[clang] Reapply "[Clang] Improve diagnostics for expansion length mismatch" (PR #121044)

2025-03-23 Thread Younan Zhang via cfe-commits
zyn0217 wrote: @cor3ntin do you have any other concerns? thanks https://github.com/llvm/llvm-project/pull/121044 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][analyzer] Ignore unnamed bitfields in UninitializedObjectChecker (PR #132427)

2025-03-23 Thread via cfe-commits
YLChenZ wrote: @steakhal Okay, glad to do it. But I don't know specifically about the workflow of review. Could you give me some guidance? https://github.com/llvm/llvm-project/pull/132427 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https:/

[clang] [clang][analyzer] Ignore unnamed bitfields in UninitializedObjectChecker (PR #132427)

2025-03-23 Thread Balazs Benics via cfe-commits
steakhal wrote: > @steakhal Okay, glad to do it. But I don't know specifically about the > workflow of review. Could you give me some guidance? How is this proposal different from yours? What do you think is objectively a better approach? Do the added tests cover the intended behavior? Would th

[clang] [Clang][CodeGen][UBSan] Add more precise attributes to recoverable ubsan handlers (PR #130990)

2025-03-23 Thread Yingwei Zheng via cfe-commits
https://github.com/dtcxzyw updated https://github.com/llvm/llvm-project/pull/130990 >From 48f8e2591c317f90eff6f1d0a4ecdf27e19a1b01 Mon Sep 17 00:00:00 2001 From: Yingwei Zheng Date: Thu, 13 Mar 2025 00:39:09 +0800 Subject: [PATCH 1/4] [Clang][CodeGen][UBSan] Add pre-commit tests. NFC. --- cla

[libclc] [libclc] link_bc target should depends on target builtins.link.clc-arch_suffix (PR #132338)

2025-03-23 Thread Wenju He via cfe-commits
https://github.com/wenju-he updated https://github.com/llvm/llvm-project/pull/132338 >From 6ce54aa767f8cdff2f938cdce8656e495a1346f0 Mon Sep 17 00:00:00 2001 From: Wenju He Date: Thu, 20 Mar 2025 22:01:55 -0700 Subject: [PATCH 1/2] [libclc] link_bc target should depends on target builtins.link.

[clang] [clang][analyzer] Improve the modeling of insert in MismatchedIteratorChecker (PR #132596)

2025-03-23 Thread Balazs Benics via cfe-commits
https://github.com/steakhal approved this pull request. Thabk you! https://github.com/llvm/llvm-project/pull/132596 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 2fe7585 - [clang][analyzer] Improve the modeling of insert in MismatchedIteratorChecker (#132596)

2025-03-23 Thread via cfe-commits
Author: flovent Date: 2025-03-23T09:49:37+01:00 New Revision: 2fe75856865e20633da33f6b526e47367a035152 URL: https://github.com/llvm/llvm-project/commit/2fe75856865e20633da33f6b526e47367a035152 DIFF: https://github.com/llvm/llvm-project/commit/2fe75856865e20633da33f6b526e47367a035152.diff LOG:

[clang] [clang][analyzer] Improve the modeling of insert in MismatchedIteratorChecker (PR #132596)

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

[clang] [llvm] [BPF] Make -mcpu=v3 as the default (PR #107008)

2025-03-23 Thread Yuval Deutscher via cfe-commits
yuvald-sweet-security wrote: @yonghong-song thank you for taking the time to help with this issue and providing your suggestions, it’s greatly appreciated. I am also glad to hear that asm barriers are no longer necessary, as they caused quite some trouble for me in the past. However, I've enco

[clang] [clang] Placement new error when modifying consts (PR #132460)

2025-03-23 Thread marius doerner via cfe-commits
https://github.com/mariusdr updated https://github.com/llvm/llvm-project/pull/132460 >From d4af25b14fb21f50c3771cce4595ca5c1bb920a7 Mon Sep 17 00:00:00 2001 From: marius doerner Date: Fri, 21 Mar 2025 20:19:57 +0100 Subject: [PATCH 1/2] [clang] Placement new error when modifying consts Raise a

[clang] [clang][analyzer] Improve the modeling of insert in MismatchedIteratorChecker (PR #132596)

2025-03-23 Thread via cfe-commits
@@ -0,0 +1,12 @@ +// RUN: %clang_analyze_cc1 -analyzer-config aggressive-binary-operation-simplification=true -analyzer-checker=alpha.cplusplus.MismatchedIterator -analyzer-output text -verify %s + +// expected-no-diagnostics + +#include "Inputs/system-header-simulator-cxx.h" +

[clang] [llvm] [BPF] Make -mcpu=v3 as the default (PR #107008)

2025-03-23 Thread via cfe-commits
yonghong-song wrote: @yuvald-sweet-security I did one example with your above example, ``` sudo ~/veristat /tmp/test-v1.o --filter=trace_ret_vfs_writev_tail sudo ~/veristat /tmp/test-v3.o --filter=trace_ret_vfs_writev_tail ``` I can reproduce the issue. The v3 failure reason is actually due to y

[clang] [clang][analyzer] Improve the modeling of insert in MismatchedIteratorChecker (PR #132596)

2025-03-23 Thread via cfe-commits
https://github.com/flovent updated https://github.com/llvm/llvm-project/pull/132596 >From 778f8c2dfa4d3c87e1b260fcff8b4f9f69d5aa50 Mon Sep 17 00:00:00 2001 From: flovent Date: Sun, 23 Mar 2025 14:54:28 +0800 Subject: [PATCH 1/2] [clang][analyzer] Improve the modeling of insert in MismatchedIte

[clang] [clang] Placement new error when modifying consts (PR #132460)

2025-03-23 Thread marius doerner via cfe-commits
mariusdr wrote: > The tests should go into a file not under `ByteCode/` since they aren't > specific to the bytecode interpreter. There should be existing placement new > tests in `SemaCXX/`. Thanks for the hint, moved them to clang/test/SemaCXX/cxx2c-constexpr-placement-new.cpp https://gith

[clang] [clang] Placement new error when modifying consts (PR #132460)

2025-03-23 Thread marius doerner via cfe-commits
https://github.com/mariusdr updated https://github.com/llvm/llvm-project/pull/132460 >From d4af25b14fb21f50c3771cce4595ca5c1bb920a7 Mon Sep 17 00:00:00 2001 From: marius doerner Date: Fri, 21 Mar 2025 20:19:57 +0100 Subject: [PATCH 1/2] [clang] Placement new error when modifying consts Raise a

[clang] [clang][analyzer] Improve the modeling of insert in MismatchedIteratorChecker (PR #132596)

2025-03-23 Thread Balazs Benics via cfe-commits
@@ -0,0 +1,12 @@ +// RUN: %clang_analyze_cc1 -analyzer-config aggressive-binary-operation-simplification=true -analyzer-checker=alpha.cplusplus.MismatchedIterator -analyzer-output text -verify %s + +// expected-no-diagnostics + +#include "Inputs/system-header-simulator-cxx.h" +

[clang] [clang][analyzer] Improve the modeling of insert in MismatchedIteratorChecker (PR #132596)

2025-03-23 Thread Balazs Benics via cfe-commits
https://github.com/steakhal commented: Thanks. It looks good with nits. https://github.com/llvm/llvm-project/pull/132596 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][analyzer] Improve the modeling of insert in MismatchedIteratorChecker (PR #132596)

2025-03-23 Thread Balazs Benics via cfe-commits
https://github.com/steakhal edited https://github.com/llvm/llvm-project/pull/132596 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][analyzer] Improve the modeling of insert in MismatchedIteratorChecker (PR #132596)

2025-03-23 Thread Balazs Benics via cfe-commits
https://github.com/steakhal edited https://github.com/llvm/llvm-project/pull/132596 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][analyzer] Improve the modeling of insert in MismatchedIteratorChecker (PR #132596)

2025-03-23 Thread via cfe-commits
https://github.com/flovent created https://github.com/llvm/llvm-project/pull/132596 This PR fixs #132010. Associative containers in STL has an unique `insert` overload member function comparing to un-associative containers(https://en.cppreference.com/w/cpp/container/unordered_set/insert): ```

[clang-tools-extra] 4a76434 - [clang-tools-extra] Use *Set::insert_range (NFC) (#132589)

2025-03-23 Thread via cfe-commits
Author: Kazu Hirata Date: 2025-03-23T00:23:19-07:00 New Revision: 4a7643400c44db434983c172d2329bf31679e8fa URL: https://github.com/llvm/llvm-project/commit/4a7643400c44db434983c172d2329bf31679e8fa DIFF: https://github.com/llvm/llvm-project/commit/4a7643400c44db434983c172d2329bf31679e8fa.diff L

[clang-tools-extra] [clang-tools-extra] Use *Set::insert_range (NFC) (PR #132589)

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

[clang-tools-extra] [clang-tools-extra] Use *Set::insert_range (NFC) (PR #132589)

2025-03-23 Thread Balazs Benics via cfe-commits
https://github.com/steakhal approved this pull request. https://github.com/llvm/llvm-project/pull/132589 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][analyzer] Improve the modeling of insert in MismatchedIteratorChecker (PR #132596)

2025-03-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-static-analyzer-1 Author: None (flovent) Changes This PR fixs #132010. Associative containers in STL has an unique `insert` overload member function comparing to un-associative containers(https://en.cppreference.com/w/cpp/container/unordered_set

[clang] [clang][analyzer] Improve the modeling of insert in MismatchedIteratorChecker (PR #132596)

2025-03-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (flovent) Changes This PR fixs #132010. Associative containers in STL has an unique `insert` overload member function comparing to un-associative containers(https://en.cppreference.com/w/cpp/container/unordered_set/insert): ``` temp