[clang] [lld] [llvm] [clang][MIPS] Add support for mipsel-windows-* targets (PR #107744)

2024-10-14 Thread Jiaxun Yang via cfe-commits
=?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Po

[clang] [Clang] Fix a DeclContext mismatch when parsing nested lambda parameters (PR #112177)

2024-10-14 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 updated https://github.com/llvm/llvm-project/pull/112177 >From 78657277495bbd1f82faef655c49320a4315272f Mon Sep 17 00:00:00 2001 From: Younan Zhang Date: Mon, 14 Oct 2024 17:42:17 +0800 Subject: [PATCH] [Clang] Fix a DeclContext mismatch when parsing nested lambda pa

[clang] [lld] [llvm] [clang][MIPS] Add support for mipsel-windows-* targets (PR #107744)

2024-10-14 Thread Jiaxun Yang via cfe-commits
=?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Po

[clang] [analyzer] Modernize FuchsiaHandleChecker (PR #111588)

2024-10-14 Thread Pavel Skripkin via cfe-commits
pskrgag wrote: > I'd love to better understand what is the root cause for these weird > diagnostics when the functions are inlined The problem was in `if (C.wasInlined)` logic in old version. So checker was not modeling all inlined functions. If we drop that check and just allow modeling inli

[clang] [clang][Driver][AVR] Reject c/c++ compilation for avr1 devices (PR #111798)

2024-10-14 Thread Ben Shi via cfe-commits
https://github.com/benshi001 updated https://github.com/llvm/llvm-project/pull/111798 >From 45b72f225a663c96652955347f9e2c2fb5044335 Mon Sep 17 00:00:00 2001 From: Ben Shi Date: Thu, 10 Oct 2024 15:31:19 +0800 Subject: [PATCH] [clang][Driver][AVR] Reject c/c++ compilation for avr1 devices avr

[clang] [clang][Driver][AVR] Reject c/c++ compilation for avr1 devices (PR #111798)

2024-10-14 Thread Ben Shi via cfe-commits
benshi001 wrote: > Please add a release note in > https://clang.llvm.org/docs/ReleaseNotes.html#avr-support > (`clang/docs/ReleaseNotes.rst`). > > Otherwise, this looks good to me. The note is added. Thanks! https://github.com/llvm/llvm-project/pull/111798 ___

[clang] [clang] When checking for covariant return types, make sure the pointers or references are to *classes* (PR #111856)

2024-10-14 Thread Ilya Biryukov via cfe-commits
@@ -289,3 +289,13 @@ namespace PR8168 { static void foo() {} // expected-error{{'static' member function 'foo' overrides a virtual function}} }; } + +namespace T13 { + struct A { +virtual const int *f() const; // expected-note{{overridden virtual function is here}}

[clang] [lld] [llvm] [clang][MIPS] Add support for mipsel-windows-* targets (PR #107744)

2024-10-14 Thread Jiaxun Yang via cfe-commits
=?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Po

[clang] [clang][Driver][AVR] Reject c/c++ compilation for avr1 devices (PR #111798)

2024-10-14 Thread David Spickett via cfe-commits
https://github.com/DavidSpickett edited https://github.com/llvm/llvm-project/pull/111798 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Driver][AVR] Reject c/c++ compilation for avr1 devices (PR #111798)

2024-10-14 Thread David Spickett via cfe-commits
https://github.com/DavidSpickett approved this pull request. LGTM with the wording fixed. https://github.com/llvm/llvm-project/pull/111798 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commi

[clang] [clang][Driver][AVR] Reject c/c++ compilation for avr1 devices (PR #111798)

2024-10-14 Thread David Spickett via cfe-commits
@@ -598,6 +598,8 @@ WebAssembly Support AVR Support ^^^ +- Reject C/C++ compilation for avr1 devices which has no SRAM. DavidSpickett wrote: "which have no", since devices is plural. https://github.com/llvm/llvm-project/pull/111798 __

[clang] [analyzer] Modernize FuchsiaHandleChecker (PR #111588)

2024-10-14 Thread Gábor Horváth via cfe-commits
Xazax-hun wrote: > To fix it, PR moves part of the modeling related to acquiring and releasing > to evalCall. `evalCall` is a really big cannon and we should use it sparingly. The problem is, evalCall needs to modify all aspects of the function. Moreover, there is only one check that could do

[clang] [Clang] fix range calculation for conditionals with throw expressions (PR #112081)

2024-10-14 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk updated https://github.com/llvm/llvm-project/pull/112081 >From 67c41612085489a2a17eec49f98dbfa0e5bb97cf Mon Sep 17 00:00:00 2001 From: Oleksandr T Date: Sat, 12 Oct 2024 08:27:51 +0300 Subject: [PATCH] [Clang] fix range calculation for conditionals with throw expr

[clang] [llvm] [ARM] [AArch32] Add support for Arm China STAR-MC1 CPU (PR #110085)

2024-10-14 Thread Albert Huang via cfe-commits
https://github.com/AlbertHuang-CPU updated https://github.com/llvm/llvm-project/pull/110085 >From a0c620f312382391cdc5e444a0c847cb2ebd23aa Mon Sep 17 00:00:00 2001 From: albhua01 Date: Thu, 26 Sep 2024 15:22:09 +0800 Subject: [PATCH 1/4] [ARM] [AArch32] Add support for Arm China STAR-MC1 CPU -

[clang] [clang][Driver][AVR] Reject c/c++ compilation for avr1 devices (PR #111798)

2024-10-14 Thread Ben Shi via cfe-commits
https://github.com/benshi001 updated https://github.com/llvm/llvm-project/pull/111798 >From 45b72f225a663c96652955347f9e2c2fb5044335 Mon Sep 17 00:00:00 2001 From: Ben Shi Date: Thu, 10 Oct 2024 15:31:19 +0800 Subject: [PATCH 1/2] [clang][Driver][AVR] Reject c/c++ compilation for avr1 devices

[clang] 4bf6e83 - [clang][Driver][AVR] Reject c/c++ compilation for avr1 devices (#111798)

2024-10-14 Thread via cfe-commits
Author: Ben Shi Date: 2024-10-14T19:08:58+08:00 New Revision: 4bf6e831d554b7a075a5f1c4c34a38b05e20ec3b URL: https://github.com/llvm/llvm-project/commit/4bf6e831d554b7a075a5f1c4c34a38b05e20ec3b DIFF: https://github.com/llvm/llvm-project/commit/4bf6e831d554b7a075a5f1c4c34a38b05e20ec3b.diff LOG:

[clang] [clang][Driver][AVR] Reject c/c++ compilation for avr1 devices (PR #111798)

2024-10-14 Thread Ben Shi via cfe-commits
https://github.com/benshi001 closed https://github.com/llvm/llvm-project/pull/111798 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [lld] [llvm] [WebAssembly] Enable nontrapping-fptoint and bulk-memory by default. (PR #112049)

2024-10-14 Thread Dan Gohman via cfe-commits
https://github.com/sunfishcode updated https://github.com/llvm/llvm-project/pull/112049 >From 7d55b35158ceb1a5d35ac62ecfe404f6a374e526 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Fri, 11 Oct 2024 13:31:13 -0700 Subject: [PATCH 1/4] [WebAssembly] Enable nontrapping-fptoint and bulk-memory b

[clang] [clang] Fix segmentation fault caused by stack overflow on deeply nested expressions (PR #111701)

2024-10-14 Thread Boaz Brickner via cfe-commits
@@ -0,0 +1,29 @@ +// RUN: %clang_cc1 %s -emit-llvm -o - -Wstack-exhausted + +class AClass { +public: + AClass() {} + AClass &f() { return *this; } +}; + +#define CALLS1 f +#define CALLS2 CALLS1().CALLS1 +#define CALLS4 CALLS2().CALLS2 +#define CALLS8 CALLS4().CALLS4 +#define CAL

[clang] [llvm] [ARM] [AArch32] Add support for Arm China STAR-MC1 CPU (PR #110085)

2024-10-14 Thread Albert Huang via cfe-commits
https://github.com/AlbertHuang-CPU updated https://github.com/llvm/llvm-project/pull/110085 >From 9ef8af4512c25850b59017cb2fcc1b3c29609d49 Mon Sep 17 00:00:00 2001 From: albhua01 Date: Thu, 26 Sep 2024 15:22:09 +0800 Subject: [PATCH 1/4] [ARM] [AArch32] Add support for Arm China STAR-MC1 CPU -

[clang] [llvm] [ARM] [AArch32] Add support for Arm China STAR-MC1 CPU (PR #110085)

2024-10-14 Thread Albert Huang via cfe-commits
https://github.com/AlbertHuang-CPU updated https://github.com/llvm/llvm-project/pull/110085 >From feae35245f0b6db5baed649df9296fb1b08e41be Mon Sep 17 00:00:00 2001 From: albhua01 Date: Thu, 26 Sep 2024 15:22:09 +0800 Subject: [PATCH 1/4] [ARM] [AArch32] Add support for Arm China STAR-MC1 CPU -

[clang] [clang] Fix segmentation fault caused by stack overflow on deeply nested expressions (PR #111701)

2024-10-14 Thread Boaz Brickner via cfe-commits
@@ -0,0 +1,1013 @@ +// RUN: %clang_cc1 %s -emit-llvm -o - -Wstack-exhausted -verify + +class AClass { +public: + AClass() {} + AClass &foo() { return *this; } +}; + +void test_bar() { + AClass a; + // expected-warning@* {{stack nearly exhausted; compilation time may suffer, a

[clang] [clang] Fix segmentation fault caused by stack overflow on deeply nested expressions (PR #111701)

2024-10-14 Thread Boaz Brickner via cfe-commits
@@ -0,0 +1,29 @@ +// RUN: %clang_cc1 %s -emit-llvm -o - -Wstack-exhausted bricknerb wrote: Resolving since we decided to remove this test. https://github.com/llvm/llvm-project/pull/111701 ___ cfe-commits mailing list c

[clang] Use tag name lookup for class names (PR #112166)

2024-10-14 Thread Gábor Spaits via cfe-commits
https://github.com/spaits created https://github.com/llvm/llvm-project/pull/112166 This PR would fix #16855 . I think the correct lookup to use for class names is Tag name lookup, because it does not take namespaces into account. The current lookup does and because of this some valid programs

[clang] Use tag name lookup for class names (PR #112166)

2024-10-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Gábor Spaits (spaits) Changes This PR would fix #16855 . I think the correct lookup to use for class names is Tag name lookup, because it does not take namespaces into account. The current lookup does and because of this some valid progr

[clang] [Clang] Fix a DeclContext mismatch when parsing nested lambda parameters (PR #112177)

2024-10-14 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 updated https://github.com/llvm/llvm-project/pull/112177 >From 78657277495bbd1f82faef655c49320a4315272f Mon Sep 17 00:00:00 2001 From: Younan Zhang Date: Mon, 14 Oct 2024 17:42:17 +0800 Subject: [PATCH 1/2] [Clang] Fix a DeclContext mismatch when parsing nested lambd

[clang] [Clang] Fix a DeclContext mismatch when parsing nested lambda parameters (PR #112177)

2024-10-14 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 edited https://github.com/llvm/llvm-project/pull/112177 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 387b37a - [LLVM] [Clang] Support for Gentoo `*t64` triples (64-bit time_t ABIs) (#111302)

2024-10-14 Thread via cfe-commits
Author: Michał Górny Date: 2024-10-14T11:18:04Z New Revision: 387b37af1aabf325e9be844361564dfad8d45c75 URL: https://github.com/llvm/llvm-project/commit/387b37af1aabf325e9be844361564dfad8d45c75 DIFF: https://github.com/llvm/llvm-project/commit/387b37af1aabf325e9be844361564dfad8d45c75.diff LOG:

[clang] [llvm] [LLVM] [Clang] Support for Gentoo `*t64` triples (64-bit time_t ABIs) (PR #111302)

2024-10-14 Thread Michał Górny via cfe-commits
https://github.com/mgorny closed https://github.com/llvm/llvm-project/pull/111302 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [ARM] [AArch32] Add support for Arm China STAR-MC1 CPU (PR #110085)

2024-10-14 Thread Albert Huang via cfe-commits
AlbertHuang-CPU wrote: Hi David, rebase done. Could you help to merge? https://github.com/llvm/llvm-project/pull/110085 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Fix a DeclContext mismatch when parsing nested lambda parameters (PR #112177)

2024-10-14 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 edited https://github.com/llvm/llvm-project/pull/112177 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Fix a DeclContext mismatch when parsing nested lambda parameters (PR #112177)

2024-10-14 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 edited https://github.com/llvm/llvm-project/pull/112177 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Fix a DeclContext mismatch when parsing nested lambda parameters (PR #112177)

2024-10-14 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 edited https://github.com/llvm/llvm-project/pull/112177 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer] Modernize FuchsiaHandleChecker (PR #111588)

2024-10-14 Thread Gábor Horváth via cfe-commits
Xazax-hun wrote: > The problem was in if (C.wasInlined) logic in old version. Thanks for elaborating! I think the idea was to have annotations all the way down to syscalls, so if we end up inlining the body with the syscalls we still get reasonable behavior. Is the problem that some calls ca

[clang] [clang] Fix segmentation fault caused by stack overflow on deeply nested expressions (PR #111701)

2024-10-14 Thread Ilya Biryukov via cfe-commits
https://github.com/ilya-biryukov approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/111701 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer] Modernize FuchsiaHandleChecker (PR #111588)

2024-10-14 Thread Gábor Horváth via cfe-commits
Xazax-hun wrote: > I thougth evalCall approach is more clean. It is definitely more clean locally. My concerns is about the global behavior. Imagine a function that deals with both Fuchsia handles and plain old C file handles. If we start to do evalCall and no longer inline the body, we no lon

[clang] [analyzer] Modernize FuchsiaHandleChecker (PR #111588)

2024-10-14 Thread Pavel Skripkin via cfe-commits
pskrgag wrote: > This is the main problem with evalCall, it does not really compose. I get it, but it seems very unlikely... Anyway, I don't have strong opinion, I just want to fix annoying false positives with ctu =) https://github.com/llvm/llvm-project/pull/111588 ___

[clang] [clang-format] Add new option: WrapNamespaceBodyWithNewlines (PR #106145)

2024-10-14 Thread Owen Pan via cfe-commits
https://github.com/owenca edited https://github.com/llvm/llvm-project/pull/106145 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Add new option: WrapNamespaceBodyWithNewlines (PR #106145)

2024-10-14 Thread Owen Pan via cfe-commits
https://github.com/owenca edited https://github.com/llvm/llvm-project/pull/106145 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Add new option: WrapNamespaceBodyWithNewlines (PR #106145)

2024-10-14 Thread Owen Pan via cfe-commits
https://github.com/owenca edited https://github.com/llvm/llvm-project/pull/106145 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][bytecode] Start implementing __builtin_bit_cast (PR #112126)

2024-10-14 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/112126 >From 6c461a3e463459d8b1b24351f5a74f942aac21d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sun, 13 Oct 2024 08:57:48 +0200 Subject: [PATCH] [clang][bytecode] Start implementing __builtin_

[clang] [TBAA] Extend pointer TBAA to pointers of non-builtin types. (PR #110569)

2024-10-14 Thread Florian Hahn via cfe-commits
fhahn wrote: ping :) https://github.com/llvm/llvm-project/pull/110569 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Move Sema::WarnedStackExhausted from public to private. (PR #111799)

2024-10-14 Thread Ilya Biryukov via cfe-commits
https://github.com/ilya-biryukov approved this pull request. LGTM, looks like a no-brainer. https://github.com/llvm/llvm-project/pull/111799 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-com

[clang] [clang] Fix segmentation fault caused by stack overflow on deeply nested expressions (PR #111701)

2024-10-14 Thread Ilya Biryukov via cfe-commits
@@ -0,0 +1,29 @@ +// RUN: %clang_cc1 %s -emit-llvm -o - -Wstack-exhausted + +class AClass { +public: + AClass() {} + AClass &f() { return *this; } +}; + +#define CALLS1 f +#define CALLS2 CALLS1().CALLS1 +#define CALLS4 CALLS2().CALLS2 +#define CALLS8 CALLS4().CALLS4 +#define CAL

[clang] [clang] Fix segmentation fault caused by stack overflow on deeply nested expressions (PR #111701)

2024-10-14 Thread Ilya Biryukov via cfe-commits
@@ -1596,6 +1597,19 @@ void CodeGenModule::ErrorUnsupported(const Decl *D, const char *Type) { getDiags().Report(Context.getFullLoc(D->getLocation()), DiagID) << Msg; } +void CodeGenModule::warnStackExhausted(SourceLocation Loc) { + // Only warn about this once. + if (!Wa

[clang] [clang] Fix segmentation fault caused by stack overflow on deeply nested expressions (PR #111701)

2024-10-14 Thread Ilya Biryukov via cfe-commits
https://github.com/ilya-biryukov edited https://github.com/llvm/llvm-project/pull/111701 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Fix segmentation fault caused by stack overflow on deeply nested expressions (PR #111701)

2024-10-14 Thread Ilya Biryukov via cfe-commits
https://github.com/ilya-biryukov approved this pull request. LGTM, I feel we could land this right away and figure out how to share with Sema in a follow-up. Hopefully @cor3ntin did not mean to block this until that happens, but let's not hold off the follow-up for long to make sure we don't m

[clang] [clang] Move Sema::WarnedStackExhausted from public to private. (PR #111799)

2024-10-14 Thread via cfe-commits
github-actions[bot] wrote: @bricknerb 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 buil

[clang] 751db4b - [clang] Move Sema::WarnedStackExhausted from public to private. (#111799)

2024-10-14 Thread via cfe-commits
Author: Boaz Brickner Date: 2024-10-14T11:48:15+02:00 New Revision: 751db4b73667cce9739cf2207917a325af783a0a URL: https://github.com/llvm/llvm-project/commit/751db4b73667cce9739cf2207917a325af783a0a DIFF: https://github.com/llvm/llvm-project/commit/751db4b73667cce9739cf2207917a325af783a0a.diff

[clang] [clang] Move Sema::WarnedStackExhausted from public to private. (PR #111799)

2024-10-14 Thread Ilya Biryukov via cfe-commits
https://github.com/ilya-biryukov closed https://github.com/llvm/llvm-project/pull/111799 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Headers] [ARM64EC] Fix extra tokens inside intrin0.h preprocessor directive (PR #112066)

2024-10-14 Thread Martin Storsjö via cfe-commits
https://github.com/mstorsjo approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/112066 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [lld] [llvm] [clang][MIPS] Add support for mipsel-windows-* targets (PR #107744)

2024-10-14 Thread Jiaxun Yang via cfe-commits
=?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Po

[clang] [clang] Fix segmentation fault caused by stack overflow on deeply nested expressions (PR #111701)

2024-10-14 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 4b31568e026c844cc577954b050e0f5a7d96bc0c da8b92cef4227ae0ca46920333ae4022d5d16e00 --e

[clang] [Clang] Fix a DeclContext mismatch when parsing nested lambda parameters (PR #112177)

2024-10-14 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 created https://github.com/llvm/llvm-project/pull/112177 Fixes #47400 Fixes #90896 >From f63455781f40986c247221de35bb9e35780d Mon Sep 17 00:00:00 2001 From: Younan Zhang Date: Mon, 14 Oct 2024 17:42:17 +0800 Subject: [PATCH] [Clang] Fix a DeclContext mismatch whe

[clang] [clang][bytecode] Start implementing __builtin_bit_cast (PR #112126)

2024-10-14 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/112126 >From 113f583cada40dd55804a7174aaef2a239c39951 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sun, 13 Oct 2024 08:57:48 +0200 Subject: [PATCH] [clang][bytecode] Start implementing __builtin_

[clang] [clang-format] Add new option: WrapNamespaceBodyWithNewlines (PR #106145)

2024-10-14 Thread Owen Pan via cfe-commits
https://github.com/owenca edited https://github.com/llvm/llvm-project/pull/106145 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libunwind] [llvm] [AArch64][Libunwind] Add Support for FEAT_PAuthLR DWARF Instruction (PR #112171)

2024-10-14 Thread Jack Styles via cfe-commits
https://github.com/Stylie777 created https://github.com/llvm/llvm-project/pull/112171 As part of FEAT_PAuthLR, a new DWARF Frame Instruction was introduced, `DW_CFA_AARCH64_negate_ra_state_with_pc`. This instructs Libunwind that the PC has been used with the signing instruction. This change in

[libunwind] [llvm] [AArch64][Libunwind] Add Support for FEAT_PAuthLR DWARF Instruction (PR #112171)

2024-10-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-libunwind Author: Jack Styles (Stylie777) Changes As part of FEAT_PAuthLR, a new DWARF Frame Instruction was introduced, `DW_CFA_AARCH64_negate_ra_state_with_pc`. This instructs Libunwind that the PC has been used with the signing instruction. This cha

[libunwind] [llvm] [AArch64][Libunwind] Add Support for FEAT_PAuthLR DWARF Instruction (PR #112171)

2024-10-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-debuginfo Author: Jack Styles (Stylie777) Changes As part of FEAT_PAuthLR, a new DWARF Frame Instruction was introduced, `DW_CFA_AARCH64_negate_ra_state_with_pc`. This instructs Libunwind that the PC has been used with the signing instruction. This cha

[libunwind] [llvm] [AArch64][Libunwind] Add Support for FEAT_PAuthLR DWARF Instruction (PR #112171)

2024-10-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-aarch64 @llvm/pr-subscribers-mc Author: Jack Styles (Stylie777) Changes As part of FEAT_PAuthLR, a new DWARF Frame Instruction was introduced, `DW_CFA_AARCH64_negate_ra_state_with_pc`. This instructs Libunwind that the PC has been used with the

[clang-tools-extra] 0cfa6e2 - [clangd] Let DefineOutline tweak handle member functions (#95235)

2024-10-14 Thread via cfe-commits
Author: Christian Kandeler Date: 2024-10-14T11:00:02+02:00 New Revision: 0cfa6e2092846f11a1534af4c928df3c61d73eb0 URL: https://github.com/llvm/llvm-project/commit/0cfa6e2092846f11a1534af4c928df3c61d73eb0 DIFF: https://github.com/llvm/llvm-project/commit/0cfa6e2092846f11a1534af4c928df3c61d73eb0.

[clang-tools-extra] [clangd] Let DefineOutline tweak handle member functions (PR #95235)

2024-10-14 Thread Christian Kandeler via cfe-commits
https://github.com/ckandeler closed https://github.com/llvm/llvm-project/pull/95235 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clangd] Let DefineOutline tweak handle member functions (PR #95235)

2024-10-14 Thread Christian Kandeler via cfe-commits
ckandeler wrote: Thanks! https://github.com/llvm/llvm-project/pull/95235 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libunwind] [llvm] [AArch64][Libunwind] Add Support for FEAT_PAuthLR DWARF Instruction (PR #112171)

2024-10-14 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 7fc3491c045bf6acb9c904a5da95bbac66ad487f 18b24b0f077dbca8b2296b8d18acbaf69eeac834 --e

[clang] [lld] [lld][LoongArch] Enable relaxation when --relax option is passed (PR #111488)

2024-10-14 Thread via cfe-commits
https://github.com/ywgrit updated https://github.com/llvm/llvm-project/pull/111488 >From 32aae75a78fbd10c8238494b9b01b85f576a47a8 Mon Sep 17 00:00:00 2001 From: Xin Wang Date: Tue, 8 Oct 2024 14:03:51 +0800 Subject: [PATCH 1/3] [lld][LoongArch] Enable relaxation when --relax option is passed

[libunwind] [llvm] [AArch64][Libunwind] Add Support for FEAT_PAuthLR DWARF Instruction (PR #112171)

2024-10-14 Thread Jack Styles via cfe-commits
https://github.com/Stylie777 updated https://github.com/llvm/llvm-project/pull/112171 >From 98681d52343a055d0d626fcde36042f02c40a94a Mon Sep 17 00:00:00 2001 From: Jack Styles Date: Thu, 3 Oct 2024 14:20:10 +0100 Subject: [PATCH 1/5] [PAuthLR] Add support for FEAT_PAuth_LR to libunwind This in

[clang] [clang] Fix segmentation fault caused by stack overflow on deeply nested expressions (PR #111701)

2024-10-14 Thread Boaz Brickner via cfe-commits
@@ -1596,6 +1597,19 @@ void CodeGenModule::ErrorUnsupported(const Decl *D, const char *Type) { getDiags().Report(Context.getFullLoc(D->getLocation()), DiagID) << Msg; } +void CodeGenModule::warnStackExhausted(SourceLocation Loc) { + // Only warn about this once. + if (!Wa

[clang] Clang: Support minimumnum and maximumnum intrinsics (PR #96281)

2024-10-14 Thread YunQiang Su via cfe-commits
wzssyqa wrote: > Maybe should add support for elementwise builtins next https://github.com/llvm/llvm-project/issues/112164 https://github.com/llvm/llvm-project/pull/96281 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/c

[clang] [clang] Fix segmentation fault caused by stack overflow on deeply nested expressions (PR #111701)

2024-10-14 Thread Boaz Brickner via cfe-commits
@@ -0,0 +1,1013 @@ +// RUN: %clang_cc1 %s -emit-llvm -o - -Wstack-exhausted -verify + +class AClass { +public: + AClass() {} + AClass &foo() { return *this; } +}; + +void test_bar() { + AClass a; + // expected-warning@* {{stack nearly exhausted; compilation time may suffer, a

[clang] 5bf81e5 - Clang: Support minimumnum and maximumnum intrinsics (#96281)

2024-10-14 Thread via cfe-commits
Author: YunQiang Su Date: 2024-10-14T15:49:01+08:00 New Revision: 5bf81e53dbea609562f91a2d771863cfeb49fa32 URL: https://github.com/llvm/llvm-project/commit/5bf81e53dbea609562f91a2d771863cfeb49fa32 DIFF: https://github.com/llvm/llvm-project/commit/5bf81e53dbea609562f91a2d771863cfeb49fa32.diff L

[clang] Clang: Support minimumnum and maximumnum intrinsics (PR #96281)

2024-10-14 Thread YunQiang Su via cfe-commits
https://github.com/wzssyqa closed https://github.com/llvm/llvm-project/pull/96281 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Move Sema::WarnedStackExhausted from public to private. (PR #111799)

2024-10-14 Thread Boaz Brickner via cfe-commits
https://github.com/bricknerb updated https://github.com/llvm/llvm-project/pull/111799 >From cd82d15940ca3873d57de2e9f12e14c2544138dc Mon Sep 17 00:00:00 2001 From: bricknerb Date: Thu, 10 Oct 2024 07:44:19 + Subject: [PATCH] Move Sema::WarnedStackExhausted from public to private. --- clan

[clang] [llvm] [Inliner] Propagate more attributes to params when inlining (PR #91101)

2024-10-14 Thread Nikita Popov via cfe-commits
@@ -1391,22 +1411,60 @@ static void AddParamAndFnBasicAttributes(const CallBase &CB, AttributeList AL = NewInnerCB->getAttributes(); for (unsigned I = 0, E = InnerCB->arg_size(); I < E; ++I) { -// Check if the underlying value for the parameter is an argum

[clang] [llvm] [Inliner] Propagate more attributes to params when inlining (PR #91101)

2024-10-14 Thread Nikita Popov via cfe-commits
https://github.com/nikic edited https://github.com/llvm/llvm-project/pull/91101 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [Inliner] Propagate more attributes to params when inlining (PR #91101)

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

[clang] Use tag name lookup for class names (PR #112166)

2024-10-14 Thread Gábor Spaits via cfe-commits
https://github.com/spaits updated https://github.com/llvm/llvm-project/pull/112166 From e9d43ef25b882071822cf3f16a988197c07967b1 Mon Sep 17 00:00:00 2001 From: Gabor Spaits Date: Mon, 14 Oct 2024 10:12:42 +0200 Subject: [PATCH 1/3] Use tag name lookup for class names This PR would fix #16855 .

[clang] [lld] [lld][LoongArch] Enable relaxation when --relax option is passed (PR #111488)

2024-10-14 Thread Lu Weining via cfe-commits
SixWeining wrote: The title should also be updated. https://github.com/llvm/llvm-project/pull/111488 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Mark `__builtin_convertvector` and `__builtin_shufflevector` as `constexpr`. (PR #112129)

2024-10-14 Thread Simon Pilgrim via cfe-commits
RKSimon wrote: Anyway you can test that? https://github.com/llvm/llvm-project/pull/112129 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [lld] [lld][LoongArch] Add relaxation option (PR #111488)

2024-10-14 Thread via cfe-commits
https://github.com/ywgrit edited https://github.com/llvm/llvm-project/pull/111488 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [lld] [lld][LoongArch] Add the relaxation option (PR #111488)

2024-10-14 Thread via cfe-commits
https://github.com/ywgrit edited https://github.com/llvm/llvm-project/pull/111488 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [lld] [lld][LoongArch] Add the relaxation option (PR #111488)

2024-10-14 Thread via cfe-commits
ywgrit wrote: > The title should also be updated. How about now? https://github.com/llvm/llvm-project/pull/111488 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Sema]Use tag name lookup for class names (PR #112166)

2024-10-14 Thread Gábor Spaits via cfe-commits
https://github.com/spaits edited https://github.com/llvm/llvm-project/pull/112166 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Use tag name lookup for class names (PR #112166)

2024-10-14 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 b800ff67dae59e194c8e9fc5d795a5932dc726f8 e9d43ef25b882071822cf3f16a988197c07967b1 --e

[clang] Use tag name lookup for class names (PR #112166)

2024-10-14 Thread Gábor Spaits via cfe-commits
https://github.com/spaits updated https://github.com/llvm/llvm-project/pull/112166 From e9d43ef25b882071822cf3f16a988197c07967b1 Mon Sep 17 00:00:00 2001 From: Gabor Spaits Date: Mon, 14 Oct 2024 10:12:42 +0200 Subject: [PATCH 1/2] Use tag name lookup for class names This PR would fix #16855 .

[clang] [clang][Driver][AVR] Reject c/c++ compilation for avr1 devices (PR #111798)

2024-10-14 Thread David Spickett via cfe-commits
DavidSpickett wrote: Please add a release note in https://clang.llvm.org/docs/ReleaseNotes.html#avr-support (`clang/docs/ReleaseNotes.rst`). Otherwise, this looks good to me. https://github.com/llvm/llvm-project/pull/111798 ___ cfe-commits mailing l

[clang] Reland: [clang][test] add testing for the AST matcher reference (PR #112168)

2024-10-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Julian Schmidt (5chmidti) Changes ## Problem Statement Previously, the examples in the AST matcher reference, which gets generated by the Doxygen comments in `ASTMatchers.h`, were untested and best effort. Some of the matchers had no or wr

[clang] Reland: [clang][test] add testing for the AST matcher reference (PR #112168)

2024-10-14 Thread Julian Schmidt via cfe-commits
5chmidti wrote: The last five commits are the cumulative changes for fixing the Buildbots. I will check in with the Buildbot owner to see if the previous issue has been solved by [4a85fa3](https://github.com/llvm/llvm-project/pull/112168/commits/4a85fa3594e3fea25b9d6e90f9c4a02054f7d05d) https

[clang] [clang] Catch missing format attributes (PR #105479)

2024-10-14 Thread Budimir Aranđelović via cfe-commits
https://github.com/budimirarandjelovichtec updated https://github.com/llvm/llvm-project/pull/105479 From c4fa856b562b802a593c35122695a94e982cccd7 Mon Sep 17 00:00:00 2001 From: budimirarandjelovicsyrmia Date: Fri, 5 Apr 2024 15:20:37 +0200 Subject: [PATCH] [clang] Catch missing format attribute

[clang] [clang][bytecode] Fix discarding block expressions (PR #112185)

2024-10-14 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/112185 None >From 8a1887cc301342f11a53aaed903e2f59577ac739 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Mon, 14 Oct 2024 13:44:54 +0200 Subject: [PATCH] [clang][bytecode] Fix discarding block ex

[clang] [clang][bytecode] Fix discarding block expressions (PR #112185)

2024-10-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/112185.diff 2 Files Affected: - (modified) clang/lib/AST/ByteCode/Compiler.cpp (+3) - (modified) clang/test/SemaCXX/block-packs.cpp (+3) ``

[clang] [analyzer] Modernize FuchsiaHandleChecker (PR #111588)

2024-10-14 Thread Gábor Horváth via cfe-commits
Xazax-hun wrote: > I don't have strong opinion, I just want to fix annoying false positives with > ctu =) Thanks for working on this, I really appreciate it! :) I would even say this is not related to ctu, because users could run into this behavior within a single translation unit. I just wan

[clang] [Clang] Fix a DeclContext mismatch when parsing nested lambda parameters (PR #112177)

2024-10-14 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 updated https://github.com/llvm/llvm-project/pull/112177 >From 78657277495bbd1f82faef655c49320a4315272f Mon Sep 17 00:00:00 2001 From: Younan Zhang Date: Mon, 14 Oct 2024 17:42:17 +0800 Subject: [PATCH 1/3] [Clang] Fix a DeclContext mismatch when parsing nested lambd

[clang] [Clang] Fix a DeclContext mismatch when parsing nested lambda parameters (PR #112177)

2024-10-14 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 ready_for_review https://github.com/llvm/llvm-project/pull/112177 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Fix a DeclContext mismatch when parsing nested lambda parameters (PR #112177)

2024-10-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Younan Zhang (zyn0217) Changes When parsing its function parameters, we don't change the CurContext to the lambda's function declaration. However, `CheckIfAnyEnclosingLambdasMustCaptureAnyPotentialCaptures()` has not yet adapted to such

[clang] [C2y] Add test coverage for N3298 (PR #112033)

2024-10-14 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman updated https://github.com/llvm/llvm-project/pull/112033 >From 411744a7a98081f03f0b9e928924dd8ef178a609 Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Fri, 11 Oct 2024 14:51:46 -0400 Subject: [PATCH 1/2] [C2y] Add test coverage for N3298 This paper adds 'i'

[clang] [analyzer] Modernize FuchsiaHandleChecker (PR #111588)

2024-10-14 Thread Pavel Skripkin via cfe-commits
pskrgag wrote: > Is the problem that some calls cannot be annotated or is the problem that the > inlined bodies often have coding patterns that are to complicated for the > analyzer to understand? Oh, sorry I missed that comment. The problem in our code is that function that releases a handl

[clang] c978f0f - [clang] Fix segmentation fault caused by stack overflow on deeply nested expressions (#111701)

2024-10-14 Thread via cfe-commits
Author: Boaz Brickner Date: 2024-10-14T14:06:50+02:00 New Revision: c978f0f7ac33a5085053da7189201babd366c82d URL: https://github.com/llvm/llvm-project/commit/c978f0f7ac33a5085053da7189201babd366c82d DIFF: https://github.com/llvm/llvm-project/commit/c978f0f7ac33a5085053da7189201babd366c82d.diff

[clang] [lld] [lld][LoongArch] Add the relaxation option (PR #111488)

2024-10-14 Thread Lu Weining via cfe-commits
SixWeining wrote: > How about now? The patch doesn't touch lld, so my suggestion is "[Driver] Default enable LoongArch linker relaxation". Some additional comments: - Do we need to consider the `-gsplit-dwarf` issue #56642 resolved by https://reviews.llvm.org/D130190 ? - The ``--no-relax`` op

[clang] [Clang] Add a flag to include GPU startup files (PR #112025)

2024-10-14 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 updated https://github.com/llvm/llvm-project/pull/112025 >From f0682b7155dfef21833c5135e9edc9e4da80d15c Mon Sep 17 00:00:00 2001 From: Joseph Huber Date: Fri, 11 Oct 2024 12:21:49 -0500 Subject: [PATCH 1/3] [Clang] Add a flag to include GPU startup files Summary: The

[clang] [Clang] Add explicit visibility symbol macros (PR #108276)

2024-10-14 Thread Vassil Vassilev via cfe-commits
https://github.com/vgvassilev updated https://github.com/llvm/llvm-project/pull/108276 >From d598242a9e938153a106b421c9b0f69139e192f3 Mon Sep 17 00:00:00 2001 From: Thomas Fransham Date: Tue, 10 Sep 2024 02:22:18 +0100 Subject: [PATCH 1/9] [Clang] Add explicit visibility symbol macros and updat

<    1   2   3   4   5   6   >