[clang] [clang][analyzer] Move StreamChecker out of the alpha package. (PR #89247)

2024-04-30 Thread Balázs Kéri via cfe-commits
https://github.com/balazske updated https://github.com/llvm/llvm-project/pull/89247 From 7138f026e845ebb4f1a3e6a86bdeb534d666ae7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bal=C3=A1zs=20K=C3=A9ri?= Date: Thu, 18 Apr 2024 16:40:03 +0200 Subject: [PATCH 1/5] [clang][analyzer] Move StreamChecker ou

[clang] 09f160c - [clang][analyzer] Move StreamChecker out of the alpha package. (#89247)

2024-04-30 Thread via cfe-commits
Author: Balázs Kéri Date: 2024-04-30T09:01:45+02:00 New Revision: 09f160c6298255f520b379b88161fbd1c365b308 URL: https://github.com/llvm/llvm-project/commit/09f160c6298255f520b379b88161fbd1c365b308 DIFF: https://github.com/llvm/llvm-project/commit/09f160c6298255f520b379b88161fbd1c365b308.diff L

[clang] [clang][analyzer] Move StreamChecker out of the alpha package. (PR #89247)

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

[clang] [Modules] No transitive source location change (PR #86912)

2024-04-30 Thread Michael Spencer via cfe-commits
https://github.com/Bigcheese approved this pull request. I did some testing today and this change seems fine. For scanning modules I actually saw some get smaller with your change. https://github.com/llvm/llvm-project/pull/86912 ___ cfe-commits mailin

[clang] [llvm] [LoongArch][Codegen] Add support for TLSDESC (PR #90159)

2024-04-30 Thread via cfe-commits
https://github.com/wangleiat edited https://github.com/llvm/llvm-project/pull/90159 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] eb148ae - [LoongArch][Codegen] Add support for TLSDESC

2024-04-30 Thread via cfe-commits
Author: wanglei Date: 2024-04-30T15:14:44+08:00 New Revision: eb148aecb3603c2ba6ecbdaebd3b8a87f44349bc URL: https://github.com/llvm/llvm-project/commit/eb148aecb3603c2ba6ecbdaebd3b8a87f44349bc DIFF: https://github.com/llvm/llvm-project/commit/eb148aecb3603c2ba6ecbdaebd3b8a87f44349bc.diff LOG:

[clang] [llvm] [LoongArch][Codegen] Add support for TLSDESC (PR #90159)

2024-04-30 Thread via cfe-commits
https://github.com/wangleiat closed https://github.com/llvm/llvm-project/pull/90159 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Ignore casts from void to void in bugprone-casting-through-void (PR #90566)

2024-04-30 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 approved this pull request. https://github.com/llvm/llvm-project/pull/90566 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Enable C++17 relaxed template template argument matching by default (PR #89807)

2024-04-30 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov updated https://github.com/llvm/llvm-project/pull/89807 >From 1756044e71d756f7102f962d0298627ede27871c Mon Sep 17 00:00:00 2001 From: Matheus Izvekov Date: Tue, 9 Apr 2024 01:14:28 -0300 Subject: [PATCH] [clang] Enable C++17 relaxed template template argument matchi

[clang] [clang] Implement CWG2851: floating-point conversions in converted constant expressions (PR #90387)

2024-04-30 Thread Mital Ashok via cfe-commits
@@ -67,6 +68,69 @@ void B::g() requires true; } // namespace cwg2847 +namespace cwg2851 { // cwg2851: 19 + +#if __cplusplus >= 202002L +template struct Val { static constexpr T value = v; }; + + +// Floating-point promotions + +static_assert(Val::value == 0.0L); +static_asser

[clang] [NFC] [C++20] [Modules] Use new class CXX20ModulesGenerator to genera… (PR #90570)

2024-04-30 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 created https://github.com/llvm/llvm-project/pull/90570 …te module file for C++20 modules instead of PCHGenerator Previously we're re-using PCHGenerator to generate the module file for C++20 modules. But this is slighty more or less odd. This patch tries to use a

[clang] [NFC] [C++20] [Modules] Use new class CXX20ModulesGenerator to genera… (PR #90570)

2024-04-30 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 ready_for_review https://github.com/llvm/llvm-project/pull/90570 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFC] [C++20] [Modules] Use new class CXX20ModulesGenerator to genera… (PR #90570)

2024-04-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-modules Author: Chuanqi Xu (ChuanqiXu9) Changes …te module file for C++20 modules instead of PCHGenerator Previously we're re-using PCHGenerator to generate the module file for C++20 modules. But this is slighty more or less odd. This patch tries

[clang] [NFC] [C++20] [Modules] Use new class CXX20ModulesGenerator to genera… (PR #90570)

2024-04-30 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 91a8cb781dbc981356207e0c3608d92ed6d26042 7a8214efbfc1cc5e16c22bd7e3a21061d5a9555c --

[clang] [Modules] No transitive source location change (PR #86912)

2024-04-30 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 closed https://github.com/llvm/llvm-project/pull/86912 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 6c31104 - [Modules] No transitive source location change (#86912)

2024-04-30 Thread via cfe-commits
Author: Chuanqi Xu Date: 2024-04-30T15:57:58+08:00 New Revision: 6c3110464bac3600685af9650269b0b2b8669d34 URL: https://github.com/llvm/llvm-project/commit/6c3110464bac3600685af9650269b0b2b8669d34 DIFF: https://github.com/llvm/llvm-project/commit/6c3110464bac3600685af9650269b0b2b8669d34.diff LO

[clang] 74e65ee - [clang][Interp] Handle Shifts in OpenCL correctly

2024-04-30 Thread Timm Bäder via cfe-commits
Author: Timm Bäder Date: 2024-04-30T10:02:50+02:00 New Revision: 74e65eec48ee87c34e06a09ad25a1029506dd60d URL: https://github.com/llvm/llvm-project/commit/74e65eec48ee87c34e06a09ad25a1029506dd60d DIFF: https://github.com/llvm/llvm-project/commit/74e65eec48ee87c34e06a09ad25a1029506dd60d.diff LO

[clang] [Clang][Sema] fix a bug on template partial specialization (PR #89862)

2024-04-30 Thread Qizhi Hu via cfe-commits
https://github.com/jcsxky updated https://github.com/llvm/llvm-project/pull/89862 >From 242b88a37f08bb66bcdde5e5b30c43553107d29c Mon Sep 17 00:00:00 2001 From: huqizhi Date: Wed, 24 Apr 2024 09:37:53 +0800 Subject: [PATCH] [Clang][Sema] fix a bug on template partial specialization --- clang/d

[clang] eaee8aa - [Clang][Sema] fix a bug on template partial specialization (#89862)

2024-04-30 Thread via cfe-commits
Author: Qizhi Hu Date: 2024-04-30T16:09:09+08:00 New Revision: eaee8aa0afe111f9291d54ecef97a3640a0f6ce0 URL: https://github.com/llvm/llvm-project/commit/eaee8aa0afe111f9291d54ecef97a3640a0f6ce0 DIFF: https://github.com/llvm/llvm-project/commit/eaee8aa0afe111f9291d54ecef97a3640a0f6ce0.diff LOG:

[clang] [Clang][Sema] fix a bug on template partial specialization (PR #89862)

2024-04-30 Thread Qizhi Hu via cfe-commits
https://github.com/jcsxky closed https://github.com/llvm/llvm-project/pull/89862 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Sema] Fix a bug on template partial specialization with issue on deduction of nontype template parameter (PR #90376)

2024-04-30 Thread Qizhi Hu via cfe-commits
https://github.com/jcsxky updated https://github.com/llvm/llvm-project/pull/90376 >From c5c67ed879fc58e5371de6fc8296b7b6f653a072 Mon Sep 17 00:00:00 2001 From: huqizhi Date: Sun, 28 Apr 2024 14:24:30 +0800 Subject: [PATCH] [Clang][Sema] Fix a bug on template partial specialization with issue o

[clang] a413c56 - [Clang][Sema] Fix a bug on template partial specialization with issue on deduction of nontype template parameter (#90376)

2024-04-30 Thread via cfe-commits
Author: Qizhi Hu Date: 2024-04-30T16:15:06+08:00 New Revision: a413c563bdcaac08f7c325c7d69e19f924435e59 URL: https://github.com/llvm/llvm-project/commit/a413c563bdcaac08f7c325c7d69e19f924435e59 DIFF: https://github.com/llvm/llvm-project/commit/a413c563bdcaac08f7c325c7d69e19f924435e59.diff LOG:

[clang] [Clang][Sema] Fix a bug on template partial specialization with issue on deduction of nontype template parameter (PR #90376)

2024-04-30 Thread Qizhi Hu via cfe-commits
https://github.com/jcsxky closed https://github.com/llvm/llvm-project/pull/90376 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] f78949a - [NFC][Clang] Add FIXME comment to the workaround for issue #89774

2024-04-30 Thread Orlando Cazalet-Hyams via cfe-commits
Author: Orlando Cazalet-Hyams Date: 2024-04-30T09:16:14+01:00 New Revision: f78949a07e33017a798c410a102c95455685a9b1 URL: https://github.com/llvm/llvm-project/commit/f78949a07e33017a798c410a102c95455685a9b1 DIFF: https://github.com/llvm/llvm-project/commit/f78949a07e33017a798c410a102c95455685a9

[clang] [Clang][Sema] Do not accept "vector _Complex" for AltiVec/ZVector (PR #90467)

2024-04-30 Thread Chen Zheng via cfe-commits
https://github.com/chenzheng1030 approved this pull request. LGTM. Thanks! https://github.com/llvm/llvm-project/pull/90467 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Fall back to DW_TAG_typedef for instantiation dependent template aliases (PR #90032)

2024-04-30 Thread Orlando Cazalet-Hyams via cfe-commits
OCHyams wrote: > Comment in the code should probably mention this as a FIXME and include a > reference to the issue? Sure, added in f78949a07e33017a798c410a102c95455685a9b1 > Also, there's another bug here - the DW_TAG_typedef is in the CU scope, > instead of the struct scope. But if the stru

[clang] [NFC] [C++20] [Modules] Use new class CXX20ModulesGenerator to genera… (PR #90570)

2024-04-30 Thread Chuanqi Xu via cfe-commits
ChuanqiXu9 wrote: The test failure looks no related. I'll commit this after formatted. https://github.com/llvm/llvm-project/pull/90570 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] b2b463b - [C++20] [Modules] Add signature to the BMI recording export imported

2024-04-30 Thread Chuanqi Xu via cfe-commits
Author: Chuanqi Xu Date: 2024-04-30T16:33:34+08:00 New Revision: b2b463bd8f6b21f040b80c4493682cf74f8dced5 URL: https://github.com/llvm/llvm-project/commit/b2b463bd8f6b21f040b80c4493682cf74f8dced5 DIFF: https://github.com/llvm/llvm-project/commit/b2b463bd8f6b21f040b80c4493682cf74f8dced5.diff LO

[clang] [NFC] [C++20] [Modules] Use new class CXX20ModulesGenerator to genera… (PR #90570)

2024-04-30 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 updated https://github.com/llvm/llvm-project/pull/90570 >From d73596affed67978c703c92789de045e9ebf0f6b Mon Sep 17 00:00:00 2001 From: Chuanqi Xu Date: Tue, 30 Apr 2024 13:28:52 +0800 Subject: [PATCH] [NFC] [C++20] [Modules] Use new class CXX20ModulesGenerator to g

[clang] fce0916 - [NFC] [C++20] [Modules] Use new class CXX20ModulesGenerator to genera… (#90570)

2024-04-30 Thread via cfe-commits
Author: Chuanqi Xu Date: 2024-04-30T16:37:27+08:00 New Revision: fce0916969218fdb4b89ad0b3e18599204d4138d URL: https://github.com/llvm/llvm-project/commit/fce0916969218fdb4b89ad0b3e18599204d4138d DIFF: https://github.com/llvm/llvm-project/commit/fce0916969218fdb4b89ad0b3e18599204d4138d.diff LO

[clang] [NFC] [C++20] [Modules] Use new class CXX20ModulesGenerator to genera… (PR #90570)

2024-04-30 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 closed https://github.com/llvm/llvm-project/pull/90570 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [Clang][RISCV] Handle RVV tuple types correctly as InputOperand/OutputOperand for inline asm (PR #89883)

2024-04-30 Thread Brandon Wu via cfe-commits
4vtomat wrote: Ping. https://github.com/llvm/llvm-project/pull/89883 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 10aab63 - [NFC] [tests] Don't try to remove and create the same directory

2024-04-30 Thread Chuanqi Xu via cfe-commits
Author: Chuanqi Xu Date: 2024-04-30T17:08:40+08:00 New Revision: 10aab63c9cb49d3ddfbe2cf8992de433efeef6f1 URL: https://github.com/llvm/llvm-project/commit/10aab63c9cb49d3ddfbe2cf8992de433efeef6f1 DIFF: https://github.com/llvm/llvm-project/commit/10aab63c9cb49d3ddfbe2cf8992de433efeef6f1.diff LO

[clang] [llvm] Add option to generate additional debug info for expression dereferencing pointer to pointers. (PR #81545)

2024-04-30 Thread William Junda Huang via cfe-commits
https://github.com/huangjd updated https://github.com/llvm/llvm-project/pull/81545 >From f2c82758e1cba7773e41d941d2812c829c339675 Mon Sep 17 00:00:00 2001 From: William Huang Date: Mon, 12 Feb 2024 02:27:13 -0500 Subject: [PATCH 01/12] Add option to generate additional info for expression cont

[clang] [clang][NFC] Reformat suspicious condition (PR #89923)

2024-04-30 Thread Florian Hahn via cfe-commits
@@ -1444,7 +1444,7 @@ struct PragmaWarningHandler : public PragmaHandler { .Case("once", PPCallbacks::PWS_Once) .Case("suppress", PPCallbacks::PWS_Suppress) .Default(-1); -

[clang] [Sema] Avoid an undesired pack expansion while transforming PackIndexingType (PR #90195)

2024-04-30 Thread Younan Zhang via cfe-commits
zyn0217 wrote: @cor3ntin Mind looking at it again? Thanks so much! https://github.com/llvm/llvm-project/pull/90195 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Implement P3034R1 Module Declarations Shouldn’t be Macros (PR #90574)

2024-04-30 Thread via cfe-commits
https://github.com/yronglin created https://github.com/llvm/llvm-project/pull/90574 This PR implement [P3034R1 Module Declarations Shouldn’t be Macros](https://wg21.link/P3034R1) >From 1dcb4c3ac1efaf3a6a4317751e23089a6c8ccac1 Mon Sep 17 00:00:00 2001 From: yronglin Date: Tue, 30 Apr 2024 17:

[clang] [Clang] Implement P3034R1 Module Declarations Shouldn’t be Macros (PR #90574)

2024-04-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (yronglin) Changes This PR implement [P3034R1 Module Declarations Shouldn’t be Macros](https://wg21.link/P3034R1) --- Full diff: https://github.com/llvm/llvm-project/pull/90574.diff 9 Files Affected: - (modified) clang/docs/Relea

[clang] [Clang] Implement P2809: Trivial infinite loops are not Undefined Behavior (PR #90066)

2024-04-30 Thread via cfe-commits
yronglin wrote: > @yronglin I'm reluctant to do that, that would be testing the optimizer in > the front end. If the patch did not fix this bug, there would be a back end > bug that should be fixed there Agree! https://github.com/llvm/llvm-project/pull/90066 __

[clang] [clang-tools-extra] [llvm] Add ``ignoringParenImpCasts`` in arguments of hasArgument (PR #89553)

2024-04-30 Thread via cfe-commits
@@ -0,0 +1,5 @@ +Script started on 2024-04-27 13:50:15+05:30 [TERM="xterm-256color" TTY="/dev/pts/0" COLUMNS="100" LINES="18"] komalverma04 wrote: Thank you for pointing out, i will do as you said. https://github.com/llvm/llvm-project/pull/89553 ___

[clang] [clang-tools-extra] [llvm] Add ``ignoringParenImpCasts`` in arguments of hasArgument (PR #89553)

2024-04-30 Thread via cfe-commits
@@ -22,7 +22,7 @@ namespace clang::tidy::abseil { // - Make it work in macros if the outer and inner StrCats are both in the //argument. -void RedundantStrcatCallsCheck::registerMatchers(MatchFinder* Finder) { +void RedundantStrcatCallsCheck::registerMatchers(MatchFinder

[clang] [clang-tools-extra] [llvm] Add ``ignoringParenImpCasts`` in arguments of hasArgument (PR #89553)

2024-04-30 Thread via cfe-commits
@@ -0,0 +1,72 @@ +set(CMAKE_C_COMPILER "/usr/bin/cc") komalverma04 wrote: Yes, removing it. https://github.com/llvm/llvm-project/pull/89553 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org

[clang] [NFC][Clang] Update P2718R0 implementation status to partial supported (PR #90577)

2024-04-30 Thread via cfe-commits
https://github.com/yronglin created https://github.com/llvm/llvm-project/pull/90577 Once https://github.com/llvm/llvm-project/issues/85613 fixed, we can mark this feature fully supported. >From 9b7c8b61bec89310df916255e59924cefdbb01b1 Mon Sep 17 00:00:00 2001 From: yronglin Date: Tue, 30 Apr

[clang] [NFC][Clang] Update P2718R0 implementation status to partial supported (PR #90577)

2024-04-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (yronglin) Changes Once https://github.com/llvm/llvm-project/issues/85613 fixed, we can mark this feature fully supported. --- Full diff: https://github.com/llvm/llvm-project/pull/90577.diff 1 Files Affected: - (modified) clang/ww

[clang] f73e87f - [Clang][Sema] Do not accept "vector _Complex" for AltiVec/ZVector (#90467)

2024-04-30 Thread via cfe-commits
Author: Ulrich Weigand Date: 2024-04-30T11:34:34+02:00 New Revision: f73e87f53f5d8a86c29251dedc9dbd264179203a URL: https://github.com/llvm/llvm-project/commit/f73e87f53f5d8a86c29251dedc9dbd264179203a DIFF: https://github.com/llvm/llvm-project/commit/f73e87f53f5d8a86c29251dedc9dbd264179203a.diff

[clang] [Clang][Sema] Do not accept "vector _Complex" for AltiVec/ZVector (PR #90467)

2024-04-30 Thread Ulrich Weigand via cfe-commits
https://github.com/uweigand closed https://github.com/llvm/llvm-project/pull/90467 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [coro] Lower `llvm.coro.await.suspend.handle` to resume with tail call (PR #89751)

2024-04-30 Thread via cfe-commits
@@ -1056,6 +1083,25 @@ void CoroCloner::create() { // Set up the new entry block. replaceEntryBlock(); + // Turn symmetric transfers into musttail calls. + for (CallInst *ResumeCall : Shape.SymmetricTransfers) { +ResumeCall = cast(VMap[ResumeCall]); +ResumeCall->

[clang] Fix output in coro-elide-thinlto.cpp (PR #90579)

2024-04-30 Thread Danial Klimkin via cfe-commits
https://github.com/dklimkin created https://github.com/llvm/llvm-project/pull/90579 Current dir can be read-only. Use a temp path instead. >From 9140277a888ba6119730987bfb2cbbb4510b11c0 Mon Sep 17 00:00:00 2001 From: Danial Klimkin Date: Tue, 30 Apr 2024 11:35:47 +0200 Subject: [PATCH] Fix out

[clang] fb2d305 - Fix output in coro-elide-thinlto.cpp (#90579)

2024-04-30 Thread via cfe-commits
Author: Danial Klimkin Date: 2024-04-30T11:42:13+02:00 New Revision: fb2d3056618e3d03ba9a695627c7b002458e59f0 URL: https://github.com/llvm/llvm-project/commit/fb2d3056618e3d03ba9a695627c7b002458e59f0 DIFF: https://github.com/llvm/llvm-project/commit/fb2d3056618e3d03ba9a695627c7b002458e59f0.diff

[clang] Fix output in coro-elide-thinlto.cpp (PR #90579)

2024-04-30 Thread Danial Klimkin via cfe-commits
https://github.com/dklimkin closed https://github.com/llvm/llvm-project/pull/90579 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Fix output in coro-elide-thinlto.cpp (PR #90579)

2024-04-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-coroutines Author: Danial Klimkin (dklimkin) Changes Current dir can be read-only. Use a temp path instead. --- Full diff: https://github.com/llvm/llvm-project/pull/90579.diff 1 Files Affected: - (modified) clang/test/CodeGenCoroutines/coro-elide-thi

[clang] [analysis] assume expr is not mutated after analysis to avoid recursive (PR #90581)

2024-04-30 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 created https://github.com/llvm/llvm-project/pull/90581 Fixes: #89376. >From f0d640d4c1ba2ede182fdf31cc7030aad01de8b8 Mon Sep 17 00:00:00 2001 From: Congcong Cai Date: Tue, 30 Apr 2024 17:46:37 +0800 Subject: [PATCH] [analysis] assume expr is not mutated after a

[clang] [analysis] assume expr is not mutated after analysis to avoid recursive (PR #90581)

2024-04-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-clang-analysis Author: Congcong Cai (HerrCai0907) Changes Fixes: #89376. --- Full diff: https://github.com/llvm/llvm-project/pull/90581.diff 2 Files Affected: - (modified) clang/lib/Analysis/ExprMutationAnalyzer.cpp (+4-2)

[clang] [Clang] Fix LibTooling doc (PR #90441)

2024-04-30 Thread Maxim Moskalets via cfe-commits
https://github.com/maxmosk updated https://github.com/llvm/llvm-project/pull/90441 >From a09f0c836a4e8296ccae3c51889f90dea38c304c Mon Sep 17 00:00:00 2001 From: Maxim Moskalets Date: Tue, 30 Apr 2024 12:51:43 +0300 Subject: [PATCH] [Clang][Docs] Synchronize the LibTooling example Synchronize t

[clang] [Clang] Fix LibTooling doc (PR #90441)

2024-04-30 Thread Maxim Moskalets via cfe-commits
maxmosk wrote: @Sirraide updated with header doc fix, please review https://github.com/llvm/llvm-project/pull/90441 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libcxx] [llvm] Triple::normalize: Use none as OS for XX-none-ABI (PR #89638)

2024-04-30 Thread Peter Waller via cfe-commits
peterwaller-arm wrote: Thanks @wzssyqa again for implementing this and splitting bits out per Sander's suggestion. I propose we merge these changes tomorrow, on the understanding that each of the two patches (this and #90313) are passing tests. It looks to me like you're working towards that g

[clang] [clang-tools-extra] [llvm] Add ``ignoringParenImpCasts`` in arguments of hasArgument (PR #89553)

2024-04-30 Thread via cfe-commits
komalverma04 wrote: Please ignore it, it is a format based change. https://github.com/llvm/llvm-project/pull/89553 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinf

[clang] [clang-tools-extra] [llvm] Add ``ignoringParenImpCasts`` in arguments of hasArgument (PR #89553)

2024-04-30 Thread via cfe-commits
komalverma04 wrote: This file is deleted https://github.com/llvm/llvm-project/pull/89553 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [OpenMP][TR12] change property of map-type modifier. (PR #90499)

2024-04-30 Thread Alexey Bataev via cfe-commits
@@ -113,7 +114,7 @@ struct SA { #pragma omp target map(b[true:true]) {} -#pragma omp target map(: c,f) // expected-error {{missing map type}} +#pragma omp target map(: c,f) // lt60-error {{missing map type}} alexey-bataev wrote: Check page 100

[clang] [llvm] [AArch64] Add support for Cortex-R82AE and improve Cortex-R82 (PR #90440)

2024-04-30 Thread David Green via cfe-commits
@@ -632,7 +632,18 @@ inline constexpr CpuInfo CpuInfos[] = { AArch64::AEK_PAUTH, AArch64::AEK_SVE2BITPERM, AArch64::AEK_FLAGM, AArch64::AEK_PERFMON, AArch64::AEK_PREDRES, AArch64::AEK_P

[clang-tools-extra] [clang-tidy] Relax readability-const-return-type (PR #90560)

2024-04-30 Thread Danny Mösch via cfe-commits
https://github.com/SimplyDanny approved this pull request. https://github.com/llvm/llvm-project/pull/90560 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AArch64] Add support for Cortex-R82AE and improve Cortex-R82 (PR #90440)

2024-04-30 Thread Jonathan Thackray via cfe-commits
https://github.com/jthackray updated https://github.com/llvm/llvm-project/pull/90440 >From 16f06cb0d4b84a8084e963dc7d2036ead9446a87 Mon Sep 17 00:00:00 2001 From: Jonathan Thackray Date: Sat, 27 Apr 2024 22:51:19 +0100 Subject: [PATCH 1/4] [AArch64] Add support for Cortex-R82AE and improve Cor

[clang] [llvm] [AArch64] Add support for Cortex-R82AE and improve Cortex-R82 (PR #90440)

2024-04-30 Thread Jonathan Thackray via cfe-commits
@@ -632,7 +632,18 @@ inline constexpr CpuInfo CpuInfos[] = { AArch64::AEK_PAUTH, AArch64::AEK_SVE2BITPERM, AArch64::AEK_FLAGM, AArch64::AEK_PERFMON, AArch64::AEK_PREDRES, AArch64::AEK_P

[clang] 2f9462e - [clang][Interp] Fix initializing vectors from a list of other vectors

2024-04-30 Thread Timm Bäder via cfe-commits
Author: Timm Bäder Date: 2024-04-30T12:41:14+02:00 New Revision: 2f9462e9e4f2b2b493673c39d4ad665175eb0b59 URL: https://github.com/llvm/llvm-project/commit/2f9462e9e4f2b2b493673c39d4ad665175eb0b59 DIFF: https://github.com/llvm/llvm-project/commit/2f9462e9e4f2b2b493673c39d4ad665175eb0b59.diff LO

[clang] af5d41e - [clang][Interp] Support CXXScalarValueInitExprs of vector type

2024-04-30 Thread Timm Bäder via cfe-commits
Author: Timm Bäder Date: 2024-04-30T12:41:14+02:00 New Revision: af5d41e0caf22536fbfb6e65aa10eff78118c822 URL: https://github.com/llvm/llvm-project/commit/af5d41e0caf22536fbfb6e65aa10eff78118c822 DIFF: https://github.com/llvm/llvm-project/commit/af5d41e0caf22536fbfb6e65aa10eff78118c822.diff LO

[clang] [clang][Interp] Report erroneous floating point results in _Complex math (PR #90588)

2024-04-30 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/90588 Use handleFloatFloatBinOp to properly diagnose NaN results and divisions by zero. Fixes #84871 >From edb5cd5c610f112bca4c9d027a017e9e6dc9bf10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date:

[clang] [clang]Report erroneous floating point results in _Complex math (PR #90588)

2024-04-30 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr edited https://github.com/llvm/llvm-project/pull/90588 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang]Report erroneous floating point results in _Complex math (PR #90588)

2024-04-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes Use handleFloatFloatBinOp to properly diagnose NaN results and divisions by zero. Fixes #84871 --- Full diff: https://github.com/llvm/llvm-project/pull/90588.diff 2 Files Affected: - (modified) clang/lib

[clang] [llvm] [AArch64] Add support for Cortex-R82AE and improve Cortex-R82 (PR #90440)

2024-04-30 Thread David Green via cfe-commits
https://github.com/davemgreen approved this pull request. Thanks. LGTM https://github.com/llvm/llvm-project/pull/90440 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Dev trunk (PR #90590)

2024-04-30 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] Dev trunk (PR #90590)

2024-04-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (yash-kumar8) Changes Fix endline comment alignment, inline constructor definition alignment, variable name alignment with bit field --- Patch is 197.17 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm

[clang] [flang] [Flang] RFC: Add support for -w option (PR #90420)

2024-04-30 Thread Jeff Hammond via cfe-commits
https://github.com/jeffhammond ready_for_review https://github.com/llvm/llvm-project/pull/90420 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [Flang] RFC: Add support for -w option (PR #90420)

2024-04-30 Thread Jeff Hammond via cfe-commits
jeffhammond wrote: This solves the problem that motivated my initial complaint on Slack. https://github.com/llvm/llvm-project/pull/90420 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFC][Clang] Update P2718R0 implementation status to partial supported (PR #90577)

2024-04-30 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. https://github.com/llvm/llvm-project/pull/90577 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [Flang] RFC: Add support for -w option (PR #90420)

2024-04-30 Thread Jeff Hammond via cfe-commits
https://github.com/jeffhammond converted_to_draft https://github.com/llvm/llvm-project/pull/90420 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [Flang] RFC: Add support for -w option (PR #90420)

2024-04-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Kiran Chandramohan (kiranchandramohan) Changes A quick and dirty implementation of the -w option. Filters the warning messages generated by the Frontend during emission. TODO: Add more tests TODO: Ignore MLIR, LLVM IR, Driver and p

[clang] [flang] [Flang] RFC: Add support for -w option (PR #90420)

2024-04-30 Thread Jeff Hammond via cfe-commits
jeffhammond wrote: Sorry, I bumped the "Ready for Review" button on accident. https://github.com/llvm/llvm-project/pull/90420 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [OpenACC] Private Clause on Compute Constructs (PR #90521)

2024-04-30 Thread Alexey Bataev via cfe-commits
@@ -958,13 +931,14 @@ Parser::OpenACCClauseParseResult Parser::ParseOpenACCClauseParams( case OpenACCClauseKind::Link: case OpenACCClauseKind::NoCreate: case OpenACCClauseKind::Present: -case OpenACCClauseKind::Private: case OpenACCClauseKind::UseDevice: -

[clang] [OpenACC] Private Clause on Compute Constructs (PR #90521)

2024-04-30 Thread Alexey Bataev via cfe-commits
@@ -112,6 +116,18 @@ class SemaOpenACC : public SemaBase { return const_cast(this)->getIntExprs(); } +// Non-const version that permits modifying of the VarList for the purposes +// of Sema enforcement. +SmallVector &getVarList() { alexey

[clang] [OpenACC] Private Clause on Compute Constructs (PR #90521)

2024-04-30 Thread Alexey Bataev via cfe-commits
@@ -11196,6 +11198,31 @@ void OpenACCClauseTransform::VisitNumGangsClause( ParsedClause.getLParenLoc(), ParsedClause.getIntExprs(), ParsedClause.getEndLoc()); } + +template +void OpenACCClauseTransform::VisitPrivateClause( +const OpenACCPrivateClause &C) { +

[clang] [OpenACC] Private Clause on Compute Constructs (PR #90521)

2024-04-30 Thread Alexey Bataev via cfe-commits
@@ -423,6 +450,52 @@ ExprResult SemaOpenACC::ActOnIntExpr(OpenACCDirectiveKind DK, return IntExpr; } +ExprResult SemaOpenACC::ActOnVar(Expr *VarExpr) { + // We still need to retain the array subscript/subarray exprs, so work on a + // copy. + Expr *CurVarExpr = VarExpr->

[clang] [flang] [Flang] RFC: Add support for -w option (PR #90420)

2024-04-30 Thread Jeff Hammond via cfe-commits
https://github.com/jeffhammond approved this pull request. https://github.com/llvm/llvm-project/pull/90420 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Sema] Avoid an undesired pack expansion while transforming PackIndexingType (PR #90195)

2024-04-30 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. LGTM, thanks! https://github.com/llvm/llvm-project/pull/90195 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Sema] Avoid an undesired pack expansion while transforming PackIndexingType (PR #90195)

2024-04-30 Thread via cfe-commits
@@ -216,8 +216,14 @@ static Cl::Kinds ClassifyInternal(ASTContext &Ctx, const Expr *E) { return ClassifyInternal(Ctx, cast(E)->getReplacement()); - case Expr::PackIndexingExprClass: + case Expr::PackIndexingExprClass: { +// A dependent pack-index-ex

[clang] [Sema] Avoid an undesired pack expansion while transforming PackIndexingType (PR #90195)

2024-04-30 Thread via cfe-commits
https://github.com/cor3ntin edited https://github.com/llvm/llvm-project/pull/90195 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFC][Clang] Update P2718R0 implementation status to partial supported (PR #90577)

2024-04-30 Thread via cfe-commits
yronglin wrote: Thanks for your review! https://github.com/llvm/llvm-project/pull/90577 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 6fab3f2 - [NFC][Clang] Update P2718R0 implementation status to partial supported (#90577)

2024-04-30 Thread via cfe-commits
Author: yronglin Date: 2024-04-30T18:58:59+08:00 New Revision: 6fab3f2a2b04048aaa7d76d067f6cd4704bb4002 URL: https://github.com/llvm/llvm-project/commit/6fab3f2a2b04048aaa7d76d067f6cd4704bb4002 DIFF: https://github.com/llvm/llvm-project/commit/6fab3f2a2b04048aaa7d76d067f6cd4704bb4002.diff LOG:

[clang] [NFC][Clang] Update P2718R0 implementation status to partial supported (PR #90577)

2024-04-30 Thread via cfe-commits
https://github.com/yronglin closed https://github.com/llvm/llvm-project/pull/90577 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Dev trunk (PR #90590)

2024-04-30 Thread via cfe-commits
https://github.com/yash-kumar8 closed https://github.com/llvm/llvm-project/pull/90590 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Dev trunk (PR #90590)

2024-04-30 Thread via cfe-commits
yash-kumar8 wrote: not to be pushed in main branch https://github.com/llvm/llvm-project/pull/90590 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [Flang] RFC: Add support for -w option (PR #90420)

2024-04-30 Thread Kiran Chandramohan via cfe-commits
kiranchandramohan wrote: Thanks @jeffhammond. I will wait for @klausler to submit https://github.com/llvm/llvm-project/pull/90518 which will make it easier for the driver and will provide more fine-grained control of warnings. https://github.com/llvm/llvm-project/pull/90420 ___

[clang] [Clang] Implement P3034R1 Module Declarations Shouldn’t be Macros (PR #90574)

2024-04-30 Thread via cfe-commits
@@ -2690,6 +2690,13 @@ bool Parser::ParseModuleName( return true; } +// P3034R1: Module Declarations Shouldn’t be Macros +if (!IsImport && Tok.getLocation().isMacroID()) { + Diag(Tok, diag::err_module_decl_cannot_be_macros); + SkipUntil(tok::semi);

[clang] [Clang] Implement P3034R1 Module Declarations Shouldn’t be Macros (PR #90574)

2024-04-30 Thread via cfe-commits
@@ -1671,6 +1671,8 @@ def err_unexpected_module_decl : Error< "module declaration can only appear at the top level">; def err_module_expected_ident : Error< "expected a module name after '%select{module|import}0'">; +def err_module_decl_cannot_be_macros : Error< + "module

[clang] [Clang] Implement P3034R1 Module Declarations Shouldn’t be Macros (PR #90574)

2024-04-30 Thread via cfe-commits
@@ -0,0 +1,13 @@ +// RUN: %clang_cc1 -std=c++20 -emit-module-interface %s -triple x86_64-linux-gnu -DTEST=1 -verify +// RUN: %clang_cc1 -std=c++20 -emit-module-interface %s -triple x86_64-linux-gnu -DTEST=2 -verify + +module; +export module x; +#include "version.h" +#if TEST ==

[clang] [OpenCL] Put constant initializer globals into constant addrspace (PR #90048)

2024-04-30 Thread Sven van Haastregt via cfe-commits
https://github.com/svenvh updated https://github.com/llvm/llvm-project/pull/90048 >From c5e7b2d5936a7317ebc33159b4cb72bf2aa66cf9 Mon Sep 17 00:00:00 2001 From: Sven van Haastregt Date: Thu, 25 Apr 2024 14:10:19 +0100 Subject: [PATCH 1/4] [OpenCL] Put constant initializer globals into constant

[clang] [OpenCL] Put constant initializer globals into constant addrspace (PR #90048)

2024-04-30 Thread Sven van Haastregt via cfe-commits
@@ -535,20 +535,24 @@ void AggExprEmitter::EmitArrayInit(Address DestPtr, llvm::ArrayType *AType, elementType.isTriviallyCopyableType(CGF.getContext())) { CodeGen::CodeGenModule &CGM = CGF.CGM; ConstantEmitter Emitter(CGF); -LangAS AS = ArrayQTy.getAddressSpa

[clang] bb95f5d - [clang][Interp] Visit LabelStmt sub statements

2024-04-30 Thread Timm Bäder via cfe-commits
Author: Timm Bäder Date: 2024-04-30T13:42:55+02:00 New Revision: bb95f5df732d9188b27c7cd34814ead8b2c4d4ce URL: https://github.com/llvm/llvm-project/commit/bb95f5df732d9188b27c7cd34814ead8b2c4d4ce DIFF: https://github.com/llvm/llvm-project/commit/bb95f5df732d9188b27c7cd34814ead8b2c4d4ce.diff LO

[clang] [Clang][Parse] Delay parsing of noexcept-specifiers in friend function declarations (PR #90517)

2024-04-30 Thread Krystian Stasiowski via cfe-commits
https://github.com/sdkrystian updated https://github.com/llvm/llvm-project/pull/90517 >From 3f5feb2b17c06f6e001e9324e90eef07fd720539 Mon Sep 17 00:00:00 2001 From: Krystian Stasiowski Date: Mon, 29 Apr 2024 15:34:40 -0400 Subject: [PATCH 1/2] [Clang][Parse] Delay parsing of noexcept-specifiers

[clang] [Clang][Parse] Delay parsing of noexcept-specifiers in friend function declarations (PR #90517)

2024-04-30 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 179e174945b6c0da462c534504720c9544aebf84 a68b48237edcc7023983fafd0849b0625a18ddbf --

[clang] [AArch64][PAC][clang][ELF] Support PAuth ABI core info (PR #85235)

2024-04-30 Thread Daniil Kovalev via cfe-commits
kovdan01 wrote: @MaskRay I've addressed your latest comments in fdb26a14024f5f8297480a74982a37ee988cd30f - would be glad to see your feedback on the changes https://github.com/llvm/llvm-project/pull/85235 ___ cfe-commits mailing list cfe-commits@list

  1   2   3   4   5   >