[clang-tools-extra] [clangd] Guard against trivial FunctionProtoTypeLoc when creating inlay hints (PR #143087)

2025-06-07 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 updated https://github.com/llvm/llvm-project/pull/143087 >From 26071d82cd4084b969e6cb2d0eac046c950c982a Mon Sep 17 00:00:00 2001 From: Nathan Ridge Date: Fri, 6 Jun 2025 03:56:59 -0400 Subject: [PATCH] [clangd] Guard against trivial FunctionProtoTypeLoc when c

[clang] [clang-format][NFC] Clean up fillRanges() in ClangFormat.cpp (PR #143236)

2025-06-07 Thread Björn Schäpers via cfe-commits
https://github.com/HazardyKnusperkeks approved this pull request. https://github.com/llvm/llvm-project/pull/143236 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clangd] Guard against trivial FunctionProtoTypeLoc when creating inlay hints (PR #143087)

2025-06-07 Thread Nathan Ridge via cfe-commits
@@ -368,6 +368,14 @@ static FunctionProtoTypeLoc getPrototypeLoc(Expr *Fn) { } if (auto F = Target.getAs()) { +// In some edge cases the AST can contain a "trivial" FunctionProtoTypeLoc HighCommander4 wrote: Thanks for the reminder about this. Now tha

[clang] [libcxx] [libc++] fix _Atomic c11 compare exchange does not update expected results (PR #78707)

2025-06-07 Thread via cfe-commits
https://github.com/huixie90 updated https://github.com/llvm/llvm-project/pull/78707 >From 904f24aa69b5df2e52a9f19c3e96fa94b47aec82 Mon Sep 17 00:00:00 2001 From: Hui Date: Fri, 19 Jan 2024 12:33:43 + Subject: [PATCH 1/2] [libc++] fix _Atomic c11 compare exchange does not update expected re

[clang] [libcxx] [clang] [libc++] fix _Atomic c11 compare exchange does not update expected results (PR #78707)

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

[clang] [libcxx] [clang] [libc++] fix _Atomic c11 compare exchange does not update expected results (PR #78707)

2025-06-07 Thread via cfe-commits
https://github.com/huixie90 ready_for_review https://github.com/llvm/llvm-project/pull/78707 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libcxx] [clang] [libc++] fix _Atomic c11 compare exchange does not update expected results (PR #78707)

2025-06-07 Thread via cfe-commits
https://github.com/huixie90 updated https://github.com/llvm/llvm-project/pull/78707 >From 904f24aa69b5df2e52a9f19c3e96fa94b47aec82 Mon Sep 17 00:00:00 2001 From: Hui Date: Fri, 19 Jan 2024 12:33:43 + Subject: [PATCH 1/2] [libc++] fix _Atomic c11 compare exchange does not update expected re

[clang] [libcxx] [clang] [libc++] fix _Atomic c11 compare exchange does not update expected results (PR #78707)

2025-06-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-libcxx Author: Hui (huixie90) Changes fixes #30023 --- Patch is 24.34 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/78707.diff 3 Files Affected: - (modified) clang/lib/CodeGen/CGAtomic.cpp (+69-23) - (a

[clang] [libcxx] [clang] [libc++] fix _Atomic c11 compare exchange does not update expected results (PR #78707)

2025-06-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Hui (huixie90) Changes fixes #30023 --- Patch is 24.34 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/78707.diff 3 Files Affected: - (modified) clang/lib/CodeGen/CGAtomic.cpp (+69-23) - (ad

[clang] [libcxx] [clang] [libc++] fix _Atomic c11 compare exchange does not update expected results (PR #78707)

2025-06-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Hui (huixie90) Changes fixes #30023 --- Patch is 24.34 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/78707.diff 3 Files Affected: - (modified) clang/lib/CodeGen/CGAtomic.cpp (+69-23

[clang] [clang-format][NFC] Clean up fillRanges() in ClangFormat.cpp (PR #143236)

2025-06-07 Thread Owen Pan via cfe-commits
https://github.com/owenca updated https://github.com/llvm/llvm-project/pull/143236 >From 1ece3adee540295efbe04fc74876efd39549e577 Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Fri, 6 Jun 2025 23:10:18 -0700 Subject: [PATCH 1/2] [clang-format][NFC] Clean up fillRanges() in ClangFormat.cpp ---

[clang-tools-extra] [clangd] Guard against trivial FunctionProtoTypeLoc when creating inlay hints (PR #143087)

2025-06-07 Thread Nathan Ridge via cfe-commits
@@ -368,6 +368,14 @@ static FunctionProtoTypeLoc getPrototypeLoc(Expr *Fn) { } if (auto F = Target.getAs()) { +// In some edge cases the AST can contain a "trivial" FunctionProtoTypeLoc +// which has null parameters. Avoid these as they don't contain useful +//

[clang] [libcxx] [clang] [libc++] fix _Atomic c11 compare exchange does not update expected results (PR #78707)

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

[clang] [WebKit checkers] Add an annotation for pointer conversion. (PR #141277)

2025-06-07 Thread Ziqing Luo via cfe-commits
https://github.com/ziqingluo-90 approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/141277 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [WebKit checkers] Treat passing of a member variable which is capable of CheckedPtr as safe. (PR #142485)

2025-06-07 Thread Ziqing Luo via cfe-commits
https://github.com/ziqingluo-90 approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/142485 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Added explanation why a is trivial copyable evaluated to false. (PR #142341)

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

[clang] [Clang] Non-polymorphic trivially relocatable types can have [[trivial_abi]] (PR #143111)

2025-06-07 Thread Corentin Jabot via cfe-commits
https://github.com/cor3ntin updated https://github.com/llvm/llvm-project/pull/143111 >From d4e5db938e4af98dda2dd4b518273fe339c64bfa Mon Sep 17 00:00:00 2001 From: Corentin Jabot Date: Fri, 6 Jun 2025 13:09:40 +0200 Subject: [PATCH 1/2] [Clang] Non-polymorphic trivially relocatable types can ha

[clang] [Clang] Implement CWG2517 Useless restriction on use of parameter in constraint-expression (PR #132919)

2025-06-07 Thread Corentin Jabot via cfe-commits
https://github.com/cor3ntin closed https://github.com/llvm/llvm-project/pull/132919 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Implement CWG2517 Useless restriction on use of parameter in constraint-expression (PR #132919)

2025-06-07 Thread Corentin Jabot via cfe-commits
https://github.com/cor3ntin reopened https://github.com/llvm/llvm-project/pull/132919 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Implement CWG2517 Useless restriction on use of parameter in constraint-expression (PR #132919)

2025-06-07 Thread Corentin Jabot via cfe-commits
cor3ntin wrote: Do you need us to merge this for you? https://github.com/llvm/llvm-project/pull/132919 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Fix static_cast bypassing access control (PR #132285)

2025-06-07 Thread Corentin Jabot via cfe-commits
cor3ntin wrote: @offsetof Do you need us to merge that for you? https://github.com/llvm/llvm-project/pull/132285 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] eec9431 - [Clang] Added explanation why a is trivial copyable evaluated to false. (#142341)

2025-06-07 Thread via cfe-commits
Author: Shamshura Egor Date: 2025-06-07T09:55:40+02:00 New Revision: eec9431d37e22a627c78e2f345d41a9a40e0c1c0 URL: https://github.com/llvm/llvm-project/commit/eec9431d37e22a627c78e2f345d41a9a40e0c1c0 DIFF: https://github.com/llvm/llvm-project/commit/eec9431d37e22a627c78e2f345d41a9a40e0c1c0.diff

[clang] [Clang] Added explanation why a is trivial copyable evaluated to false. (PR #142341)

2025-06-07 Thread Corentin Jabot via cfe-commits
https://github.com/cor3ntin closed https://github.com/llvm/llvm-project/pull/142341 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Parse][NFC] Use `llvm::function_ref<>` instead of `std::optional>` (PR #142906)

2025-06-07 Thread Corentin Jabot via cfe-commits
cor3ntin wrote: Do you want me to merge this? https://github.com/llvm/llvm-project/pull/142906 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libclang/python] Derive library function types from annotations (PR #142120)

2025-06-07 Thread Vlad Serebrennikov via cfe-commits
Endilll wrote: > e.g. Python int maps to both c_int and c_uint Good example, thank you. So the crux of the issue is that we need to reconstruct one kind of function prototype from another. On the one hand, type annotations are consumed (mostly) statically, while ctypes prototype is consumed d

[clang] [Clang] Implement CWG2517 Useless restriction on use of parameter in constraint-expression (PR #132919)

2025-06-07 Thread Imad Aldij via cfe-commits
imdj wrote: > Do you need us to merge this for you? Yeah, I don't think I have access https://github.com/llvm/llvm-project/pull/132919 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Clarify the `[[trivial_abi]]` documentation. (PR #143243)

2025-06-07 Thread Corentin Jabot via cfe-commits
https://github.com/cor3ntin created https://github.com/llvm/llvm-project/pull/143243 Fixes #36667 >From 9b6128211ea4a442ecded830c77c60387245bb89 Mon Sep 17 00:00:00 2001 From: Corentin Jabot Date: Sat, 7 Jun 2025 10:24:26 +0200 Subject: [PATCH] [Clang] Clarify the `[[trivial_abi]]` documentati

[clang] [Clang] Added explanation why a is trivial copyable evaluated to false. (PR #142341)

2025-06-07 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `sanitizer-aarch64-linux` running on `sanitizer-buildbot8` while building `clang` at step 2 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/51/builds/17541 Here is the relevant piece of the

[clang] [clang] fix infinite recursion (PR #143244)

2025-06-07 Thread Zhikai Zeng via cfe-commits
https://github.com/Backl1ght created https://github.com/llvm/llvm-project/pull/143244 fix https://github.com/llvm/llvm-project/issues/141789 The direct cause of infinite recursion is that `T` is changing from `struct X` and `S` infinitely, this pr add a check that if `T` visited before the

[clang] [clang] fix infinite recursion (PR #143244)

2025-06-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Zhikai Zeng (Backl1ght) Changes fix https://github.com/llvm/llvm-project/issues/141789 The direct cause of infinite recursion is that `T` is changing from `struct X` and `S` infinitely, this pr add a check that if `T` visited befor

[clang] [libclang/python] Derive library function types from annotations (PR #142120)

2025-06-07 Thread Jannick Kremer via cfe-commits
DeinAlptraum wrote: Yup that summarizes it pretty well. So I don't see this having more than a very limited use, and for that it's not worth the various overheads and intransparencies it introduces. Shall I close this? https://github.com/llvm/llvm-project/pull/142120 __

[clang] [C++20][Modules] Fix false compilation error with constexpr (PR #143168)

2025-06-07 Thread Corentin Jabot via cfe-commits
cor3ntin wrote: This change needs a release note. Please add an entry to `clang/docs/ReleaseNotes.rst` in the section the most adapted to the change, and referencing any Github issue this change fixes. Thanks! https://github.com/llvm/llvm-project/pull/143168 ___

[clang] [clang] fix infinite recursion (PR #143244)

2025-06-07 Thread Zhikai Zeng via cfe-commits
https://github.com/Backl1ght updated https://github.com/llvm/llvm-project/pull/143244 >From a52a1254a9eea86f332ff2c31c3f33dd57b8a288 Mon Sep 17 00:00:00 2001 From: Backl1ght Date: Sat, 7 Jun 2025 16:15:04 +0800 Subject: [PATCH] add visit check --- clang/lib/Sema/SemaDeclCXX.cpp | 14 ++--

[clang] [Clang] Clarify the `[[trivial_abi]]` documentation. (PR #143243)

2025-06-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Corentin Jabot (cor3ntin) Changes Fixes #36667 --- Full diff: https://github.com/llvm/llvm-project/pull/143243.diff 1 Files Affected: - (modified) clang/include/clang/Basic/AttrDocs.td (+5-1) ``diff diff --git a/clang/include

[clang] [alpha.webkit.NoUnretainedMemberChecker] Recognize NS_REQUIRES_PROPERTY_DEFINITIONS (PR #141293)

2025-06-07 Thread Ziqing Luo via cfe-commits
@@ -142,6 +144,8 @@ class RawPtrRefMemberChecker if (auto *ID = dyn_cast(CD)) { for (auto *Ivar : ID->ivars()) visitIvarDecl(CD, Ivar); + for (auto *PropImpl : ID->property_impls()) +visitPropImpl(CD, PropImpl); ziqingluo-90 wrote

[clang] [clang][Sema] Track trivial-relocatability as a type trait (PR #84621)

2025-06-07 Thread Corentin Jabot via cfe-commits
cor3ntin wrote: We implemented `__builtin_is_cpp_trivially_relocatable`, so I think this can be closed https://github.com/llvm/llvm-project/pull/84621 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listi

[clang] [Clang] Implement CWG2517 Useless restriction on use of parameter in constraint-expression (PR #132919)

2025-06-07 Thread Corentin Jabot via cfe-commits
https://github.com/cor3ntin closed https://github.com/llvm/llvm-project/pull/132919 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] bc93131 - [Clang] Implement CWG2517 Useless restriction on use of parameter in constraint-expression (#132919)

2025-06-07 Thread via cfe-commits
Author: Imad Aldij Date: 2025-06-07T11:31:04+02:00 New Revision: bc931318a2880360f3970e1e6906adc9c90eb698 URL: https://github.com/llvm/llvm-project/commit/bc931318a2880360f3970e1e6906adc9c90eb698 DIFF: https://github.com/llvm/llvm-project/commit/bc931318a2880360f3970e1e6906adc9c90eb698.diff LO

[clang] [Cygwin] va_list must be treated like normal Windows (PR #143115)

2025-06-07 Thread Tomohiro Kashiwada via cfe-commits
https://github.com/kikairoya updated https://github.com/llvm/llvm-project/pull/143115 >From c64472a188825a1d814ea0523a6097d25949d6fb Mon Sep 17 00:00:00 2001 From: kikairoya Date: Sun, 25 May 2025 14:07:29 +0900 Subject: [PATCH 1/2] [Cygwin] va_list must be treated like normal Windows Handling

[clang] [CIR] Upstream CreateOp for ComplexType with folder (PR #143192)

2025-06-07 Thread Henrich Lauko via cfe-commits
@@ -2226,4 +2226,36 @@ def VecTernaryOp : CIR_Op<"vec.ternary", let hasVerifier = 1; } +//===--===// +// ComplexCreateOp +//===--===// + +d

[clang] [Clang] Implement CWG2517 Useless restriction on use of parameter in constraint-expression (PR #132919)

2025-06-07 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `sanitizer-aarch64-linux-bootstrap-msan` running on `sanitizer-buildbot10` while building `clang` at step 2 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/94/builds/7826 Here is the relev

[clang] [clang-format] Add options to control wrapped lambda brace indent. (PR #143249)

2025-06-07 Thread via cfe-commits
https://github.com/rmarker created https://github.com/llvm/llvm-project/pull/143249 Adds options to customise how wrapped lambda braces are indented when using custom brace wrapping. `IndentBraces` was recently updated to also indent wrapped lambda braces. This has been changed to be controll

[clang] [clang-format] Add options to control wrapped lambda brace indent. (PR #143249)

2025-06-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (rmarker) Changes Adds options to customise how wrapped lambda braces are indented when using custom brace wrapping. `IndentBraces` was recently updated to also indent wrapped lambda braces. This has been changed to be controlled se

[clang] [clang-format] Add options to control wrapped lambda brace indent. (PR #143249)

2025-06-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: None (rmarker) Changes Adds options to customise how wrapped lambda braces are indented when using custom brace wrapping. `IndentBraces` was recently updated to also indent wrapped lambda braces. This has been changed to be contro

[clang] [Clang][Parse][NFC] Use `llvm::function_ref<>` instead of `std::optional>` (PR #142906)

2025-06-07 Thread Yanzuo Liu via cfe-commits
zwuis wrote: Yes. I still don't have commit access. Thank you! https://github.com/llvm/llvm-project/pull/142906 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream CreateOp for ComplexType with folder (PR #143192)

2025-06-07 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/143192 >From 0ee92db03198e2364ade53e5c0bbd0f844fe634f Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Fri, 6 Jun 2025 20:56:49 +0200 Subject: [PATCH 1/3] [CIR] Upstream CreateOp for ComplexType with folder ---

[clang] bf51d58 - [CIR] Upstream ShuffleOp for VectorType (#142288)

2025-06-07 Thread via cfe-commits
Author: Amr Hesham Date: 2025-06-07T13:56:36+02:00 New Revision: bf51d583e44de6c01617740caff154d0c56309d6 URL: https://github.com/llvm/llvm-project/commit/bf51d583e44de6c01617740caff154d0c56309d6 DIFF: https://github.com/llvm/llvm-project/commit/bf51d583e44de6c01617740caff154d0c56309d6.diff LO

[clang] [CIR] Upstream ShuffleOp for VectorType (PR #142288)

2025-06-07 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper closed https://github.com/llvm/llvm-project/pull/142288 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 995d74f - [CIR] Implement folder for VecTernaryOp (#142946)

2025-06-07 Thread via cfe-commits
Author: Amr Hesham Date: 2025-06-07T13:58:54+02:00 New Revision: 995d74f8663edb2e20f2d2672556582a6f4cc3f1 URL: https://github.com/llvm/llvm-project/commit/995d74f8663edb2e20f2d2672556582a6f4cc3f1 DIFF: https://github.com/llvm/llvm-project/commit/995d74f8663edb2e20f2d2672556582a6f4cc3f1.diff LO

[clang] [CIR] Implement folder for VecTernaryOp (PR #142946)

2025-06-07 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper closed https://github.com/llvm/llvm-project/pull/142946 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFC][Clang] Adopt simplified `getTrailingObjects` in Stmt (PR #143250)

2025-06-07 Thread Rahul Joshi via cfe-commits
https://github.com/jurahul created https://github.com/llvm/llvm-project/pull/143250 None >From 2aa08553460c49ab6ac1ea572d637ce0c1286d44 Mon Sep 17 00:00:00 2001 From: Rahul Joshi Date: Sat, 7 Jun 2025 04:21:23 -0700 Subject: [PATCH] [NFC][Clang] Adopt simplified `getTrailingObjects` in Stmt -

[clang] [NFC][Clang] Adopt simplified `getTrailingObjects` in StmtCXX (PR #143251)

2025-06-07 Thread Rahul Joshi via cfe-commits
https://github.com/jurahul created https://github.com/llvm/llvm-project/pull/143251 None >From 9449af262b9116249d1626ad802abefa85f6faf7 Mon Sep 17 00:00:00 2001 From: Rahul Joshi Date: Sat, 7 Jun 2025 04:23:38 -0700 Subject: [PATCH] [NFC][Clang] Adopt simplified `getTrailingObjects` in StmtCXX

[clang] [NFC][Clang] Adopt simplified `getTrailingObjects` in ExprConcepts (PR #143252)

2025-06-07 Thread Rahul Joshi via cfe-commits
https://github.com/jurahul created https://github.com/llvm/llvm-project/pull/143252 None >From d9a1f7f86516f2727839bf290f8de72eca260dcd Mon Sep 17 00:00:00 2001 From: Rahul Joshi Date: Fri, 6 Jun 2025 20:49:18 -0700 Subject: [PATCH] [NFC][Clang] Adopt simplified `getTrailingObjects` in ExprCo

[clang] [NFC][Clang][CIR] Adopt simpified `getTrailingObjects` in CIRGenFunct… (PR #143253)

2025-06-07 Thread Rahul Joshi via cfe-commits
https://github.com/jurahul created https://github.com/llvm/llvm-project/pull/143253 …ionInfo >From 302e09ec58534feb3f7aac0ce0d6edbfb69412dd Mon Sep 17 00:00:00 2001 From: Rahul Joshi Date: Sat, 7 Jun 2025 04:57:31 -0700 Subject: [PATCH] [NFC][Clang][CIR] Adopt simpified `getTrailingObjects` in

[clang] [NFC][Clang] Adopt simpified `getTrailingObjects` in CIRGenFunctionInfo (PR #143253)

2025-06-07 Thread Rahul Joshi via cfe-commits
https://github.com/jurahul edited https://github.com/llvm/llvm-project/pull/143253 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFC][Clang] Adopt simplified `getTrailingObjects` in ExprObjC (PR #143254)

2025-06-07 Thread Rahul Joshi via cfe-commits
https://github.com/jurahul created https://github.com/llvm/llvm-project/pull/143254 None >From 8417ea58f74422823dd1863ccaefb7f8c538ab79 Mon Sep 17 00:00:00 2001 From: Rahul Joshi Date: Sat, 7 Jun 2025 04:03:13 -0700 Subject: [PATCH] [NFC][Clang] Adopt simplified `getTrailingObjects` in ExprOb

[clang] [NFC][Clang] Adopt simplified `getTrailingObjects` in ParsedTemplate (PR #143255)

2025-06-07 Thread Rahul Joshi via cfe-commits
https://github.com/jurahul created https://github.com/llvm/llvm-project/pull/143255 None >From 849a5bbe098f77cc7dd6336fa40d78a1d16bd6e8 Mon Sep 17 00:00:00 2001 From: Rahul Joshi Date: Sat, 7 Jun 2025 04:54:29 -0700 Subject: [PATCH] [NFC][Clang] Adopt simplified `getTrailingObjects` in Parsed

[clang] [NFC][Clang] Adopt simplified `getTrailingObjects` in StmtObjC (PR #143256)

2025-06-07 Thread Rahul Joshi via cfe-commits
https://github.com/jurahul created https://github.com/llvm/llvm-project/pull/143256 None >From 5b5740335314911c2be2560cd8176d0ea2fbe6e8 Mon Sep 17 00:00:00 2001 From: Rahul Joshi Date: Sat, 7 Jun 2025 04:27:17 -0700 Subject: [PATCH] [NFC][Clang] Adopt simplified `getTrailingObjects` in StmtOb

[clang] [NFC][Clang] Adopt simplified `getTrailingObjects` in TemplateBase (PR #143257)

2025-06-07 Thread Rahul Joshi via cfe-commits
https://github.com/jurahul created https://github.com/llvm/llvm-project/pull/143257 None >From 63bfd66cce5aeeea0bc6810a59deff3a7cac12da Mon Sep 17 00:00:00 2001 From: Rahul Joshi Date: Sat, 7 Jun 2025 04:35:32 -0700 Subject: [PATCH] [NFC][Clang] Adopt simplified `getTrailingObjects` in Templa

[clang] [clang-format][NFC] Clean up fillRanges() in ClangFormat.cpp (PR #143236)

2025-06-07 Thread Björn Schäpers via cfe-commits
@@ -284,27 +284,23 @@ static bool fillRanges(MemoryBuffer *Code, errs() << "error: number of -offset and -length arguments must match.\n"; return true; } - for (unsigned i = 0, e = Offsets.size(); i != e; ++i) { -if (Offsets[i] >= Code->getBufferSize()) { -

[clang] [clang-format][NFC] Clean up fillRanges() in ClangFormat.cpp (PR #143236)

2025-06-07 Thread Björn Schäpers via cfe-commits
@@ -284,27 +284,23 @@ static bool fillRanges(MemoryBuffer *Code, errs() << "error: number of -offset and -length arguments must match.\n"; HazardyKnusperkeks wrote: Is it maybe worth handling the `Offsets.empty() && Lengths.empty()` case by its own, and the

[clang] [clang-format] Add options to control wrapped lambda brace indent. (PR #143249)

2025-06-07 Thread Björn Schäpers via cfe-commits
@@ -1334,12 +1334,15 @@ unsigned ContinuationIndenter::getNewLineColumn(const LineState &State) { Style.IndentWidth; } - if (Style.BraceWrapping.BeforeLambdaBody && - Style.BraceWrapping.IndentBraces && Current.is(TT_LambdaLBrace)) { + if (Style.BraceWrapp

[clang] [clang-format] Add options to control wrapped lambda brace indent. (PR #143249)

2025-06-07 Thread Björn Schäpers via cfe-commits
@@ -1334,12 +1334,15 @@ unsigned ContinuationIndenter::getNewLineColumn(const LineState &State) { Style.IndentWidth; } - if (Style.BraceWrapping.BeforeLambdaBody && - Style.BraceWrapping.IndentBraces && Current.is(TT_LambdaLBrace)) { + if (Style.BraceWrapp

[clang] [clang-format] Add options to control wrapped lambda brace indent. (PR #143249)

2025-06-07 Thread Björn Schäpers via cfe-commits
@@ -1547,6 +1547,38 @@ struct FormatStyle { bool BeforeWhile; /// Indent the wrapped braces themselves. bool IndentBraces; +/// Indent nested wrapped lambda braces. HazardyKnusperkeks wrote: I think a better name is in order, when reading neste

[clang] [clang-format] Add options to control wrapped lambda brace indent. (PR #143249)

2025-06-07 Thread Björn Schäpers via cfe-commits
@@ -1334,12 +1334,15 @@ unsigned ContinuationIndenter::getNewLineColumn(const LineState &State) { Style.IndentWidth; } - if (Style.BraceWrapping.BeforeLambdaBody && - Style.BraceWrapping.IndentBraces && Current.is(TT_LambdaLBrace)) { + if (Style.BraceWrapp

[clang] [NFC][Clang] Adopt simplified `getTrailingObjects` in AST/Type (PR #143258)

2025-06-07 Thread Rahul Joshi via cfe-commits
https://github.com/jurahul created https://github.com/llvm/llvm-project/pull/143258 None >From 95ce93cf1aac15b9896fda30c74d392b7acf3e6f Mon Sep 17 00:00:00 2001 From: Rahul Joshi Date: Sat, 7 Jun 2025 04:47:42 -0700 Subject: [PATCH] [NFC][Clang] Adopt simplified `getTrailingObjects` in AST/Ty

[clang] [clang-format] Add options to control wrapped lambda brace indent. (PR #143249)

2025-06-07 Thread via cfe-commits
@@ -1334,12 +1334,15 @@ unsigned ContinuationIndenter::getNewLineColumn(const LineState &State) { Style.IndentWidth; } - if (Style.BraceWrapping.BeforeLambdaBody && - Style.BraceWrapping.IndentBraces && Current.is(TT_LambdaLBrace)) { + if (Style.BraceWrapp

[clang] [clang-format] Add options to control wrapped lambda brace indent. (PR #143249)

2025-06-07 Thread via cfe-commits
https://github.com/rmarker updated https://github.com/llvm/llvm-project/pull/143249 >From 212f9142a084c4d7bb11423565fb1f0eae93c35f Mon Sep 17 00:00:00 2001 From: rmarker Date: Sat, 7 Jun 2025 20:29:18 +0930 Subject: [PATCH 1/2] [clang-format] Add options to control wrapped lambda brace indent.

[clang] [clang-format] Add options to control wrapped lambda brace indent. (PR #143249)

2025-06-07 Thread via cfe-commits
@@ -1334,12 +1334,15 @@ unsigned ContinuationIndenter::getNewLineColumn(const LineState &State) { Style.IndentWidth; } - if (Style.BraceWrapping.BeforeLambdaBody && - Style.BraceWrapping.IndentBraces && Current.is(TT_LambdaLBrace)) { + if (Style.BraceWrapp

[clang] [CIR] Implement folder for VecShuffleOp (PR #143260)

2025-06-07 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper created https://github.com/llvm/llvm-project/pull/143260 This change adds a folder for the VecShuffleOp Issue https://github.com/llvm/llvm-project/issues/136487 >From 14ffd458c4896bd4d5fb73f97c5745db70c8360e Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Sat

[clang] [clang-format] Add options to control wrapped lambda brace indent. (PR #143249)

2025-06-07 Thread via cfe-commits
@@ -1334,12 +1334,15 @@ unsigned ContinuationIndenter::getNewLineColumn(const LineState &State) { Style.IndentWidth; } - if (Style.BraceWrapping.BeforeLambdaBody && - Style.BraceWrapping.IndentBraces && Current.is(TT_LambdaLBrace)) { + if (Style.BraceWrapp

[clang] [CIR] Implement folder for VecShuffleOp (PR #143260)

2025-06-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Amr Hesham (AmrDeveloper) Changes This change adds a folder for the VecShuffleOp Issue https://github.com/llvm/llvm-project/issues/136487 --- Full diff: https://github.com/llvm/llvm-project/pull/143260.diff 4 Files Affected: - (modifie

[clang] [clang-format] Add options to control wrapped lambda brace indent. (PR #143249)

2025-06-07 Thread via cfe-commits
@@ -1547,6 +1547,38 @@ struct FormatStyle { bool BeforeWhile; /// Indent the wrapped braces themselves. bool IndentBraces; +/// Indent nested wrapped lambda braces. rmarker wrote: Hmm, yeah, I based the name off of the description in the code.

[clang] [CIR] Extend VecShuffleOp verifier to catch invalid index (PR #143262)

2025-06-07 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper created https://github.com/llvm/llvm-project/pull/143262 Extend the verifier to catch index larger than the size of vector elements in VecShuffleOp Issue https://github.com/llvm/llvm-project/issues/136487 >From 5f98861a88e544ec80bbaf5fe0ffb650c2d71e67 Mon Sep 1

[clang] [CIR] Extend VecShuffleOp verifier to catch invalid index (PR #143262)

2025-06-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-clangir Author: Amr Hesham (AmrDeveloper) Changes Extend the verifier to catch index larger than the size of vector elements in VecShuffleOp Issue https://github.com/llvm/llvm-project/issues/136487 --- Full diff: https://git

[clang] [libclang/python] Add missing enum variants (PR #143264)

2025-06-07 Thread Jannick Kremer via cfe-commits
https://github.com/DeinAlptraum created https://github.com/llvm/llvm-project/pull/143264 Add tests to ensure that all C-enum variants are defined on Python side. >From cee0067c7a0b35d2e1f15fd3fa698ec2afd6de88 Mon Sep 17 00:00:00 2001 From: Jannick Kremer Date: Sat, 7 Jun 2025 21:57:17 +0900 Su

[clang] [libclang/python] Add missing enum variants (PR #143264)

2025-06-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Jannick Kremer (DeinAlptraum) Changes Add tests to ensure that all C-enum variants are defined on Python side. --- Full diff: https://github.com/llvm/llvm-project/pull/143264.diff 1 Files Affected: - (modified) clang/bindings/python/tes

[clang] [Clang] Explain why a type is not replaceable. (PR #143265)

2025-06-07 Thread Corentin Jabot via cfe-commits
https://github.com/cor3ntin created https://github.com/llvm/llvm-project/pull/143265 As a drive by fix the definition of replaceable, that did not correctly implement https://eel.is/c++draft/class.prop#6.3 >From 7f626192c2636805c890098c6d6bf0e7bef11725 Mon Sep 17 00:00:00 2001 From: Corentin J

[clang] [Clang] Explain why a type is not replaceable. (PR #143265)

2025-06-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Corentin Jabot (cor3ntin) Changes As a drive by fix the definition of replaceable, that did not correctly implement https://eel.is/c++draft/class.prop#6.3 --- Patch is 20.08 KiB, truncated to 20.00 KiB below, full version: https://githu

[clang] [NFC][Clang] Adopt simplified `getTrailingObjects` in Stmt (PR #143250)

2025-06-07 Thread Rahul Joshi via cfe-commits
https://github.com/jurahul ready_for_review https://github.com/llvm/llvm-project/pull/143250 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFC][Clang] Adopt simplified `getTrailingObjects` in StmtCXX (PR #143251)

2025-06-07 Thread Rahul Joshi via cfe-commits
https://github.com/jurahul ready_for_review https://github.com/llvm/llvm-project/pull/143251 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFC][Clang] Adopt simplified `getTrailingObjects` in Stmt (PR #143250)

2025-06-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Rahul Joshi (jurahul) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/143250.diff 2 Files Affected: - (modified) clang/include/clang/AST/Stmt.h (+43-68) - (modified) clang/lib/AST/Stmt.cpp (+4-4) ``diff dif

[clang] [NFC][Clang] Adopt simplified `getTrailingObjects` in StmtCXX (PR #143251)

2025-06-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Rahul Joshi (jurahul) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/143251.diff 1 Files Affected: - (modified) clang/include/clang/AST/StmtCXX.h (+4-4) ``diff diff --git a/clang/include/clang/AST/StmtCXX.h

[clang] [NFC][Clang] Adopt simplified `getTrailingObjects` in ExprConcepts (PR #143252)

2025-06-07 Thread Rahul Joshi via cfe-commits
https://github.com/jurahul ready_for_review https://github.com/llvm/llvm-project/pull/143252 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFC][Clang] Adopt simplified `getTrailingObjects` in ExprConcepts (PR #143252)

2025-06-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Rahul Joshi (jurahul) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/143252.diff 1 Files Affected: - (modified) clang/include/clang/AST/ExprConcepts.h (+2-6) ``diff diff --git a/clang/include/clang/AST/Expr

[clang] [clang-format] Add options to control wrapped lambda brace indent. (PR #143249)

2025-06-07 Thread via cfe-commits
@@ -1547,6 +1547,38 @@ struct FormatStyle { bool BeforeWhile; /// Indent the wrapped braces themselves. bool IndentBraces; +/// Indent nested wrapped lambda braces. rmarker wrote: Maybe `IndentBracesLambdaScoped` could work? Or `IndentBracesLam

[clang] [NFC][Clang] Adopt simplified `getTrailingObjects` in ExprObjC (PR #143254)

2025-06-07 Thread Rahul Joshi via cfe-commits
https://github.com/jurahul ready_for_review https://github.com/llvm/llvm-project/pull/143254 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFC][Clang] Adopt simplified `getTrailingObjects` in ParsedTemplate (PR #143255)

2025-06-07 Thread Rahul Joshi via cfe-commits
https://github.com/jurahul ready_for_review https://github.com/llvm/llvm-project/pull/143255 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFC][Clang] Adopt simplified `getTrailingObjects` in ExprObjC (PR #143254)

2025-06-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Rahul Joshi (jurahul) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/143254.diff 1 Files Affected: - (modified) clang/include/clang/AST/ExprObjC.h (+2-4) ``diff diff --git a/clang/include/clang/AST/ExprObjC

[clang] [NFC][Clang] Adopt simplified `getTrailingObjects` in TemplateBase (PR #143257)

2025-06-07 Thread Rahul Joshi via cfe-commits
https://github.com/jurahul ready_for_review https://github.com/llvm/llvm-project/pull/143257 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFC][Clang] Adopt simplified `getTrailingObjects` in ParsedTemplate (PR #143255)

2025-06-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Rahul Joshi (jurahul) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/143255.diff 2 Files Affected: - (modified) clang/include/clang/Sema/ParsedAttr.h (-3) - (modified) clang/include/clang/Sema/ParsedTemplate.h (+1-3)

[clang] [NFC][Clang] Adopt simplified `getTrailingObjects` in AST/Type (PR #143258)

2025-06-07 Thread Rahul Joshi via cfe-commits
https://github.com/jurahul ready_for_review https://github.com/llvm/llvm-project/pull/143258 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFC][Clang] Adopt simplified `getTrailingObjects` in StmtObjC (PR #143256)

2025-06-07 Thread Rahul Joshi via cfe-commits
https://github.com/jurahul ready_for_review https://github.com/llvm/llvm-project/pull/143256 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFC][Clang] Adopt simplified `getTrailingObjects` in TemplateBase (PR #143257)

2025-06-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Rahul Joshi (jurahul) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/143257.diff 2 Files Affected: - (modified) clang/include/clang/AST/TemplateBase.h (+1-1) - (modified) clang/lib/AST/TemplateBase.cpp (+2-2)

[clang] [NFC][Clang] Adopt simplified `getTrailingObjects` in AST/Type (PR #143258)

2025-06-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Rahul Joshi (jurahul) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/143258.diff 2 Files Affected: - (modified) clang/include/clang/AST/Type.h (+10-19) - (modified) clang/lib/AST/Type.cpp (+6-7) ``diff dif

[clang] [NFC][Clang] Adopt simpified `getTrailingObjects` in CIRGenFunctionInfo (PR #143253)

2025-06-07 Thread Rahul Joshi via cfe-commits
https://github.com/jurahul edited https://github.com/llvm/llvm-project/pull/143253 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFC][Clang] Adopt simpified `getTrailingObjects` in CIRGenFunctionInfo (PR #143253)

2025-06-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangir Author: Rahul Joshi (jurahul) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/143253.diff 1 Files Affected: - (modified) clang/lib/CIR/CodeGen/CIRGenFunctionInfo.h (+2-4) ``diff diff --git a/clang/lib/CIR/CodeGen/

[clang] [NFC][Clang] Adopt simpified `getTrailingObjects` in CIRGenFunctionInfo (PR #143253)

2025-06-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Rahul Joshi (jurahul) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/143253.diff 1 Files Affected: - (modified) clang/lib/CIR/CodeGen/CIRGenFunctionInfo.h (+2-4) ``diff diff --git a/clang/lib/CIR/CodeGen/CI

[clang] [NFC][Clang] Adopt simpified `getTrailingObjects` in CIRGenFunctionInfo (PR #143253)

2025-06-07 Thread Rahul Joshi via cfe-commits
https://github.com/jurahul ready_for_review https://github.com/llvm/llvm-project/pull/143253 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFC][Clang] Adopt simplified `getTrailingObjects` in StmtObjC (PR #143256)

2025-06-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Rahul Joshi (jurahul) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/143256.diff 1 Files Affected: - (modified) clang/include/clang/AST/StmtObjC.h (+5-5) ``diff diff --git a/clang/include/clang/AST/StmtObjC

  1   2   3   >