[clang-tools-extra] [clang-tidy] Improve `bugprone-infinite-loop` check by adding handing for structured bindings (PR #144213)

2025-06-14 Thread via cfe-commits
https://github.com/flovent updated https://github.com/llvm/llvm-project/pull/144213 >From 87e03841749296dbdf3e93cc3655a8a48c793da9 Mon Sep 17 00:00:00 2001 From: flovent Date: Sat, 14 Jun 2025 15:52:26 +0800 Subject: [PATCH 1/2] [clang-tidy] Improve `bugprone-infinite-loop` check by adding han

[clang] [llvm] [AVR] Add support for many new AVR MCUs (PR #143914)

2025-06-14 Thread Tom Vijlbrief via cfe-commits
https://github.com/tomtor updated https://github.com/llvm/llvm-project/pull/143914 >From 3e070f4aa1e105a4f5b486b662e481195a0a4608 Mon Sep 17 00:00:00 2001 From: Tom Vijlbrief Date: Thu, 12 Jun 2025 16:59:46 +0200 Subject: [PATCH 1/5] Add support for many new AVR mcus like AVR128DB28 --- clang

[clang] [llvm] [AVR] Add support for many new AVR MCUs (PR #143914)

2025-06-14 Thread Tom Vijlbrief via cfe-commits
tomtor wrote: Removed EIJMP for avr128 devices, see: https://onlinedocs.microchip.com/oxy/GUID-0B644D8F-67E7-49E6-82C9-1B2B9ABE6A0D-en-US-23/GUID-3F578DEB-6EE6-4081-AEF2-B505FF2AE8A5.html https://github.com/llvm/llvm-project/pull/143914 ___ cfe-commit

[clang-tools-extra] [clang-tidy] Improve `bugprone-infinite-loop` check by adding handing for structured bindings (PR #144213)

2025-06-14 Thread via cfe-commits
@@ -83,6 +83,23 @@ static bool isVarThatIsPossiblyChanged(const Decl *Func, const Stmt *LoopStmt, isChanged(LoopStmt, Var, Context); // FIXME: Track references. } + +if (const auto *BD = dyn_cast(DRE->getDecl())) { + if (const auto *DD = +

[clang-tools-extra] [clang-tidy] Improve `bugprone-infinite-loop` check by adding handing for structured bindings (PR #144213)

2025-06-14 Thread via cfe-commits
@@ -83,6 +83,23 @@ static bool isVarThatIsPossiblyChanged(const Decl *Func, const Stmt *LoopStmt, isChanged(LoopStmt, Var, Context); // FIXME: Track references. } + +if (const auto *BD = dyn_cast(DRE->getDecl())) { + if (const auto *DD = +

[clang-tools-extra] [clang-tidy] Improve `bugprone-infinite-loop` check by adding handing for structured bindings (PR #144213)

2025-06-14 Thread via cfe-commits
flovent wrote: New CI failure seems unrelated to the new commit. https://github.com/llvm/llvm-project/pull/144213 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [Clang] Make the SizeType, SignedSizeType and PtrdiffType be named sugar types instead of built-in types (PR #143653)

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

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

2025-06-14 Thread via cfe-commits
Author: Amr Hesham Date: 2025-06-14T13:26:03+02:00 New Revision: 64640667871990e4d73ae6221b9c4f05d0b36ea6 URL: https://github.com/llvm/llvm-project/commit/64640667871990e4d73ae6221b9c4f05d0b36ea6 DIFF: https://github.com/llvm/llvm-project/commit/64640667871990e4d73ae6221b9c4f05d0b36ea6.diff LO

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

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

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

2025-06-14 Thread Zhikai Zeng via cfe-commits
https://github.com/Backl1ght closed https://github.com/llvm/llvm-project/pull/143244 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Make the SizeType, SignedSizeType and PtrdiffType be named sugar types instead of built-in types (PR #143653)

2025-06-14 Thread Vlad Serebrennikov via cfe-commits
@@ -1429,7 +1429,7 @@ namespace cwg299 { // cwg299: 2.8 c++11 // cxx98-11-error@#cwg299-q {{ambiguous conversion of array size expression of type 'T' to an integral or enumeration type}} // cxx98-11-note@#cwg299-int {{conversion to integral type 'int' declared here}} /

[clang] [NFC][C++][Modules] Mark P2788R0(DR) as implemented and added more test (PR #144214)

2025-06-14 Thread via cfe-commits
https://github.com/yronglin updated https://github.com/llvm/llvm-project/pull/144214 >From dc1fcdd5d9ea72f294fe5d1ae6a196cb2751ff9c Mon Sep 17 00:00:00 2001 From: yronglin Date: Sat, 14 Jun 2025 16:02:00 +0800 Subject: [PATCH 1/2] [C++][Modules] Mark P2788R0(DR) as implemented and added more t

[clang] 892513e - [clang] fix infinite recursion (#143244)

2025-06-14 Thread via cfe-commits
Author: Zhikai Zeng Date: 2025-06-14T17:14:16+08:00 New Revision: 892513e51864f3e21120eab87c0c5a6aa37cae31 URL: https://github.com/llvm/llvm-project/commit/892513e51864f3e21120eab87c0c5a6aa37cae31 DIFF: https://github.com/llvm/llvm-project/commit/892513e51864f3e21120eab87c0c5a6aa37cae31.diff L

[clang] Implement diagnostics for why `std::is_standard_layout` is false (PR #144161)

2025-06-14 Thread Samarth Narang via cfe-commits
https://github.com/snarang181 updated https://github.com/llvm/llvm-project/pull/144161 >From b6d3510ff82cd005e7d9b6b0d774cde3ad52250b Mon Sep 17 00:00:00 2001 From: Samarth Narang Date: Fri, 13 Jun 2025 23:22:18 +0200 Subject: [PATCH 1/2] Implement diagnostics for why `std::is_standard_layout`

[clang-tools-extra] [clang-tidy][NFC] change patterns 'anyOf(..., anything())' to 'optionally(...)' (PR #143558)

2025-06-14 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-aarch64-sve2-vla-2stage` running on `linaro-g4-01` while building `clang-tools-extra` at step 12 "ninja check 2". Full details are available at: https://lab.llvm.org/buildbot/#/builders/199/builds/4068 Here is the rel

[clang] [NFC][C++][Modules] Mark P2788R0(DR) as implemented and added more test (PR #144214)

2025-06-14 Thread via cfe-commits
https://github.com/yronglin updated https://github.com/llvm/llvm-project/pull/144214 >From dc1fcdd5d9ea72f294fe5d1ae6a196cb2751ff9c Mon Sep 17 00:00:00 2001 From: yronglin Date: Sat, 14 Jun 2025 16:02:00 +0800 Subject: [PATCH 1/2] [C++][Modules] Mark P2788R0(DR) as implemented and added more t

[clang] Implement diagnostics for why `std::is_standard_layout` is false (PR #144161)

2025-06-14 Thread Samarth Narang via cfe-commits
https://github.com/snarang181 ready_for_review https://github.com/llvm/llvm-project/pull/144161 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libcxx] [libc++][Clang] Updated the diagnostics checks in libc++ tests. (PR #144220)

2025-06-14 Thread Shamshura Egor via cfe-commits
egorshamshura wrote: Hi, @AaronBallman! I noticed that the libc++ tests are not using the latest version of my code. How can I run them with the latest version? Thank you! https://github.com/llvm/llvm-project/pull/144220 ___ cfe-commits mailing list c

[clang] [CIR] Upstream ComplexType ImaginaryLiteral (PR #144223)

2025-06-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangir Author: Amr Hesham (AmrDeveloper) Changes This change adds support for ComplexType ImaginaryLiteral https://github.com/llvm/llvm-project/issues/141365 --- Full diff: https://github.com/llvm/llvm-project/pull/144223.diff 2 Files Affected: - (

[clang] [clang][cmake] Don't pass -fno-strict-aliasing for GCC (PR #144222)

2025-06-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Sam James (thesamesam) Changes This was added a long time ago.. * to the Makefiles in 40fee6313df688d43d1f8bbe85bc35161689afca; * first to CMake in b3ce035c7155644d5bced46c45ae5ac865b7aedc; * then moved to only apply when building Clang wit

[clang] [clang][cmake] Don't pass -fno-strict-aliasing for GCC (PR #144222)

2025-06-14 Thread Sam James via cfe-commits
thesamesam wrote: FWIW, there seems to be similar code in Flang which was likely copied from Clang, but I'm not in a position to test removing that right now. https://github.com/llvm/llvm-project/pull/144222 ___ cfe-commits mailing list cfe-commits@li

[clang] [Clang] Fix fix-it hint regression from #143460 (PR #144069)

2025-06-14 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-buildbot7` while building `clang` at step 2 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/51/builds/17947 Here is the relevant piece of the

[clang] [CIR] Upstream ComplexType ImaginaryLiteral (PR #144223)

2025-06-14 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper created https://github.com/llvm/llvm-project/pull/144223 This change adds support for ComplexType ImaginaryLiteral https://github.com/llvm/llvm-project/issues/141365 >From 167ea0dd6d484389ed03ddfa43a0f6c0cf61cf2f Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date

[clang] [clang][cmake] Don't pass -fno-strict-aliasing for GCC (PR #144222)

2025-06-14 Thread Sam James via cfe-commits
https://github.com/thesamesam created https://github.com/llvm/llvm-project/pull/144222 This was added a long time ago.. * to the Makefiles in 40fee6313df688d43d1f8bbe85bc35161689afca; * first to CMake in b3ce035c7155644d5bced46c45ae5ac865b7aedc; * then moved to only apply when building Clang wit

[clang] [Clang] add fix-it hints for unknown attributes (PR #141305)

2025-06-14 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk updated https://github.com/llvm/llvm-project/pull/141305 >From 77641f88c5047c990df649658b6bd5fba0d395cd Mon Sep 17 00:00:00 2001 From: Oleksandr Tarasiuk Date: Sat, 31 May 2025 15:59:59 +0300 Subject: [PATCH 1/4] [Clang] add fix-it hints for unknown attributes ---

[clang] [clang][cmake] Don't pass -fno-strict-aliasing for GCC (PR #144222)

2025-06-14 Thread Nikita Popov via cfe-commits
nikic wrote: To confirm, you do not get any `-Wstrict-aliasing` warnings with modern GCC after this change? https://github.com/llvm/llvm-project/pull/144222 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman

[clang] [Draft] Summary Based Analysis Prototype (PR #144224)

2025-06-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 HEAD~1 HEAD --extensions cpp,h -- clang/include/clang/Sema/SummaryAttribute.h clang/

[clang] [Draft] Summary Based Analysis Prototype (PR #144224)

2025-06-14 Thread via cfe-commits
github-actions[bot] wrote: ⚠️ We detected that you are using a GitHub private e-mail address to contribute to the repo. Please turn off [Keep my email addresses private](https://github.com/settings/emails) setting in your account. See [LLVM Developer Policy](https://llvm.org/docs/DeveloperPol

[clang] [OpenMP][clang] declare mapper: fix handling of nested types (PR #143504)

2025-06-14 Thread Robert Imschweiler via cfe-commits
https://github.com/ro-i closed https://github.com/llvm/llvm-project/pull/143504 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] ff295d2 - [OpenMP][clang] declare mapper: fix handling of nested types (#143504)

2025-06-14 Thread via cfe-commits
Author: Robert Imschweiler Date: 2025-06-14T16:17:08+02:00 New Revision: ff295d2f3429a5a2a93b2c86099af40544f467d4 URL: https://github.com/llvm/llvm-project/commit/ff295d2f3429a5a2a93b2c86099af40544f467d4 DIFF: https://github.com/llvm/llvm-project/commit/ff295d2f3429a5a2a93b2c86099af40544f467d4.

[clang] [OpenMP][clang] declare mapper: fix handling of nested types (PR #143504)

2025-06-14 Thread Robert Imschweiler via cfe-commits
ro-i wrote: Merged. Thanks for the review :) https://github.com/llvm/llvm-project/pull/143504 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream ComplexType builtin_complex (PR #144225)

2025-06-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Amr Hesham (AmrDeveloper) Changes This change adds support for builtin_complex https://github.com/llvm/llvm-project/issues/141365 --- Full diff: https://github.com/llvm/llvm-project/pull/144225.diff 4 Files Affected: - (modified) clang

[clang] [CIR] Upstream ComplexType builtin_complex (PR #144225)

2025-06-14 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper created https://github.com/llvm/llvm-project/pull/144225 This change adds support for builtin_complex https://github.com/llvm/llvm-project/issues/141365 >From 08893cb4bc8613a455dc2ee21ae6fe6c3e3138a1 Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Sat, 14 Jun

[clang] [CIR] Upstream ComplexType builtin_complex (PR #144225)

2025-06-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangir Author: Amr Hesham (AmrDeveloper) Changes This change adds support for builtin_complex https://github.com/llvm/llvm-project/issues/141365 --- Full diff: https://github.com/llvm/llvm-project/pull/144225.diff 4 Files Affected: - (modified) cla

[clang] [clang][bytecode] Avoid revisiting decomposition decl in visitDeclRef (PR #144226)

2025-06-14 Thread Sirui Mu via cfe-commits
https://github.com/Lancern created https://github.com/llvm/llvm-project/pull/144226 This simple patch removes the code to revisit `DecompositionDecl` in `visitDeclRef`. The revisit will try to emit the initializer of the `DecompositionDecl`, which could result in evaluation errors if the `Dec

[clang] [clang][bytecode] Avoid revisiting decomposition decl in visitDeclRef (PR #144226)

2025-06-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Sirui Mu (Lancern) Changes This simple patch removes the code to revisit `DecompositionDecl` in `visitDeclRef`. The revisit will try to emit the initializer of the `DecompositionDecl`, which could result in evaluation errors if the `Deco

[clang] Implement diagnostics for why `std::is_standard_layout` is false (PR #144161)

2025-06-14 Thread Samarth Narang via cfe-commits
snarang181 wrote: Rebased and testing the again. The Windows build failure seems largely unrelated to my changes. https://github.com/llvm/llvm-project/pull/144161 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/

[clang] Implement diagnostics for why `std::is_standard_layout` is false (PR #144161)

2025-06-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Samarth Narang (snarang181) Changes As part of the effort in https://github.com/llvm/llvm-project/issues/141911 --- Full diff: https://github.com/llvm/llvm-project/pull/144161.diff 4 Files Affected: - (modified) clang/include/clang/Basi

[clang] [REAPPLY][Clang-Repl] Add support for out-of-process execution. #110418 (PR #144064)

2025-06-14 Thread Vassil Vassilev via cfe-commits
vgvassilev wrote: Looks a reasonable way forward. Is there a reason to be a draft? https://github.com/llvm/llvm-project/pull/144064 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Sema] Apply CWG400 'Using-declarations and the "struct hack"' to C++98 mode (PR #143492)

2025-06-14 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll commented: It appears that CWG400 has two parts to it: 1. An arguably primary part of the issue is concerned with how many declarations using-declaration can name (one vs many). This is what the recorded discussion is about, and what Richard wrote tests for back in 20

[clang] [llvm] [AVR] Add support for many new AVR MCUs (PR #143914)

2025-06-14 Thread Tom Vijlbrief via cfe-commits
https://github.com/tomtor edited https://github.com/llvm/llvm-project/pull/143914 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Improve `bugprone-infinite-loop` check by adding handing for structured bindings (PR #144213)

2025-06-14 Thread Baranov Victor via cfe-commits
@@ -83,6 +83,23 @@ static bool isVarThatIsPossiblyChanged(const Decl *Func, const Stmt *LoopStmt, isChanged(LoopStmt, Var, Context); // FIXME: Track references. } + +if (const auto *BD = dyn_cast(DRE->getDecl())) { + if (const auto *DD = +

[clang-tools-extra] [clang-tidy] Improve `bugprone-infinite-loop` check by adding handing for structured bindings (PR #144213)

2025-06-14 Thread Baranov Victor via cfe-commits
@@ -215,10 +236,18 @@ static bool overlap(ArrayRef SCC, /// returns true iff `Cond` involves at least one static local variable. static bool hasStaticLocalVariable(const Stmt *Cond) { - if (const auto *DRE = dyn_cast(Cond)) + if (const auto *DRE = dyn_cast(Cond)) { if (

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

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

[clang] 2e7fbb9 - [clang-format] Fix a bug in annotating braces (#144095)

2025-06-14 Thread via cfe-commits
Author: Owen Pan Date: 2025-06-14T00:21:39-07:00 New Revision: 2e7fbb94bc268d37996408a525781961989d8627 URL: https://github.com/llvm/llvm-project/commit/2e7fbb94bc268d37996408a525781961989d8627 DIFF: https://github.com/llvm/llvm-project/commit/2e7fbb94bc268d37996408a525781961989d8627.diff LOG:

[clang] [clang-format] Fix a bug in annotating braces (PR #144095)

2025-06-14 Thread Owen Pan via cfe-commits
https://github.com/owenca closed https://github.com/llvm/llvm-project/pull/144095 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AVR] Add support for many new AVR mcus like AVR128DB28 (PR #143914)

2025-06-14 Thread Ben Shi via cfe-commits
@@ -336,6 +336,9 @@ static MCUInfo AVRMcus[] = { {"attiny1624", "__AVR_ATtiny1624__", "103", 1}, {"attiny1626", "__AVR_ATtiny1626__", "103", 1}, {"attiny1627", "__AVR_ATtiny1627__", "103", 1}, +{"attiny3224", "__AVR_ATtiny1624__", "103", 1}, ben

[clang] [Clang] Make the SizeType, SignedSizeType and PtrdiffType be named sugar types instead of built-in types (PR #143653)

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

[clang] [clang-format] Fix a bug in annotating braces (PR #144095)

2025-06-14 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `ppc64le-flang-rhel-clang` running on `ppc64le-flang-rhel-test` while building `clang` at step 6 "test-build-unified-tree-check-flang". Full details are available at: https://lab.llvm.org/buildbot/#/builders/157/builds/30784

[clang] [Clang] Make the SizeType, SignedSizeType and PtrdiffType be named sugar types instead of built-in types (PR #143653)

2025-06-14 Thread Matheus Izvekov via cfe-commits
@@ -1480,6 +1480,14 @@ static bool IsStructurallyEquivalent(StructuralEquivalenceContext &Context, return false; break; } + case Type::PredefinedSugar: { +const auto *TP1 = cast(T1); +const auto *TP2 = cast(T2); + +if (TP1->getKind() != TP2->getKind())

[clang] [Clang] Make the SizeType, SignedSizeType and PtrdiffType be named sugar types instead of built-in types (PR #143653)

2025-06-14 Thread Matheus Izvekov via cfe-commits
@@ -5148,6 +5153,14 @@ QualType ASTContext::getDependentBitIntType(bool IsUnsigned, return QualType(New, 0); } +QualType ASTContext::getPredefinedSugarType(uint32_t KD, +QualType UnderlyingType) const { + auto *New = new (*this,

[clang] [Clang] Make the SizeType, SignedSizeType and PtrdiffType be named sugar types instead of built-in types (PR #143653)

2025-06-14 Thread Matheus Izvekov via cfe-commits
@@ -2528,8 +2528,13 @@ TypeInfo ASTContext::getTypeInfoImpl(const Type *T) const { Align = static_cast(Width); } } + break; + case Type::PredefinedSugar: +return getTypeInfo(cast(T)->desugar().getTypePtr()); +break; mizvekov wrote: `

[clang] [Clang] Make the SizeType, SignedSizeType and PtrdiffType be named sugar types instead of built-in types (PR #143653)

2025-06-14 Thread Matheus Izvekov via cfe-commits
@@ -7246,6 +7250,24 @@ QualType TreeTransform::TransformDependentBitIntType( return Result; } +template +QualType TreeTransform::TransformPredefinedSugarType( +TypeLocBuilder &TLB, PredefinedSugarTypeLoc TL) { + const PredefinedSugarType *EIT = TL.getTypePtr(); + Qua

[clang] [Clang] Make the SizeType, SignedSizeType and PtrdiffType be named sugar types instead of built-in types (PR #143653)

2025-06-14 Thread Matheus Izvekov via cfe-commits
@@ -1894,6 +1894,12 @@ ExpectedType clang::ASTNodeImporter::VisitDependentBitIntType( *ToNumBitsExprOrErr); } +ExpectedType clang::ASTNodeImporter::VisitPredefinedSugarType( +const clang::PredefinedSugarType *T) { +

[clang] [Clang] Make the SizeType, SignedSizeType and PtrdiffType be named sugar types instead of built-in types (PR #143653)

2025-06-14 Thread Matheus Izvekov via cfe-commits
@@ -8054,6 +8054,41 @@ class DependentBitIntType final : public Type, public llvm::FoldingSetNode { } }; +class PredefinedSugarType final : public Type { +public: + enum Kind { SizeT, SignedSizeT, PtrdiffT }; + friend class ASTContext; + +private: + Kind K; + QualType U

[clang] [Clang] Make the SizeType, SignedSizeType and PtrdiffType be named sugar types instead of built-in types (PR #143653)

2025-06-14 Thread Matheus Izvekov via cfe-commits
@@ -8054,6 +8054,41 @@ class DependentBitIntType final : public Type, public llvm::FoldingSetNode { } }; +class PredefinedSugarType final : public Type { +public: + enum Kind { SizeT, SignedSizeT, PtrdiffT }; + friend class ASTContext; + +private: + Kind K; + QualType U

[clang] [llvm] [AVR] Add support for many new AVR mcus like AVR128DB28 (PR #143914)

2025-06-14 Thread Ben Shi via cfe-commits
@@ -326,8 +326,78 @@ constexpr struct { {"attiny1624", "avrxmega3", "avrxmega3", 0x803800}, {"attiny1626", "avrxmega3", "avrxmega3", 0x803800}, {"attiny1627", "avrxmega3", "avrxmega3", 0x803800}, +{"attiny3224", "avrxmega3", "avrxmega3", 0x803400}, +{"attiny

[clang] [llvm] [AVR] Add support for many new AVR mcus like AVR128DB28 (PR #143914)

2025-06-14 Thread Ben Shi via cfe-commits
https://github.com/benshi001 requested changes to this pull request. https://github.com/llvm/llvm-project/pull/143914 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Make the SizeType, SignedSizeType and PtrdiffType be named sugar types instead of built-in types (PR #143653)

2025-06-14 Thread Matheus Izvekov via cfe-commits
@@ -117,3 +117,4 @@ def PipeType : TypeNode; def AtomicType : TypeNode; def BitIntType : TypeNode; def DependentBitIntType : TypeNode, AlwaysDependent; +def PredefinedSugarType : TypeNode, NeverCanonical; mizvekov wrote: Missing newline at the end of the file.

[clang] [llvm] [AVR] Add support for many new AVR mcus like AVR128DB28 (PR #143914)

2025-06-14 Thread Ben Shi via cfe-commits
@@ -326,8 +326,78 @@ constexpr struct { {"attiny1624", "avrxmega3", "avrxmega3", 0x803800}, {"attiny1626", "avrxmega3", "avrxmega3", 0x803800}, {"attiny1627", "avrxmega3", "avrxmega3", 0x803800}, +{"attiny3224", "avrxmega3", "avrxmega3", 0x803400}, +{"attiny

[clang] [Clang] Make the SizeType, SignedSizeType and PtrdiffType be named sugar types instead of built-in types (PR #143653)

2025-06-14 Thread Matheus Izvekov via cfe-commits
@@ -14536,6 +14589,9 @@ static QualType getCommonSugarTypeNode(ASTContext &Ctx, const Type *X, DX->isCountInBytes(), DX->isOrNull(), CDX); } + case Type::PredefinedSugar: { +return QualType(); +

[clang] [Clang] Make the SizeType, SignedSizeType and PtrdiffType be named sugar types instead of built-in types (PR #143653)

2025-06-14 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov edited https://github.com/llvm/llvm-project/pull/143653 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [WIP] ABI Lowering Library (PR #140112)

2025-06-14 Thread Nikita Popov via cfe-commits
@@ -0,0 +1,172 @@ +//===- ABIFunctionInfo.h - ABI Function Information - C++ -===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[clang] [llvm] [WIP] ABI Lowering Library (PR #140112)

2025-06-14 Thread Nikita Popov via cfe-commits
@@ -0,0 +1,136 @@ +//===- ABIInfo.h - ABI information access & encapsulation - C++ ---===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[clang] [llvm] [WIP] ABI Lowering Library (PR #140112)

2025-06-14 Thread Nikita Popov via cfe-commits
@@ -0,0 +1,74 @@ +//== QualTypeMapper.h - Maps Clang QualType to LLVMABI Types ---==// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apa

[clang] [llvm] [WIP] ABI Lowering Library (PR #140112)

2025-06-14 Thread Nikita Popov via cfe-commits
@@ -0,0 +1,404 @@ +//== QualTypeMapper.cpp - Maps Clang QualType to LLVMABI Types -==// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[clang] [llvm] [WIP] ABI Lowering Library (PR #140112)

2025-06-14 Thread Nikita Popov via cfe-commits
@@ -0,0 +1,172 @@ +//===- ABIFunctionInfo.h - ABI Function Information - C++ -===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[clang] [CIR] Upstream ComplexType builtin_complex (PR #144225)

2025-06-14 Thread Sirui Mu via cfe-commits
https://github.com/Lancern edited https://github.com/llvm/llvm-project/pull/144225 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream ComplexType builtin_complex (PR #144225)

2025-06-14 Thread Sirui Mu via cfe-commits
https://github.com/Lancern edited https://github.com/llvm/llvm-project/pull/144225 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR][NFCI] Update RValue class to reflect changes in classic CodeGen (PR #142779)

2025-06-14 Thread Sirui Mu via cfe-commits
@@ -34,28 +32,85 @@ namespace clang::CIRGen { class RValue { enum Flavor { Scalar, Complex, Aggregate }; - // Stores first value and flavor. - llvm::PointerIntPair v1; - // Stores second value and volatility. - llvm::PointerIntPair, 1, bool> v2; - // Stores element type

[clang] [llvm] [WIP] ABI Lowering Library (PR #140112)

2025-06-14 Thread Nikita Popov via cfe-commits
@@ -0,0 +1,172 @@ +//===- ABIFunctionInfo.h - ABI Function Information - C++ -===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[clang] [llvm] [WIP] ABI Lowering Library (PR #140112)

2025-06-14 Thread Nikita Popov via cfe-commits
@@ -0,0 +1,172 @@ +//===- ABIFunctionInfo.h - ABI Function Information - C++ -===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[clang] [llvm] [WIP] ABI Lowering Library (PR #140112)

2025-06-14 Thread Nikita Popov via cfe-commits
@@ -0,0 +1,102 @@ +//===- BPF.cpp ===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[clang] [llvm] [WIP] ABI Lowering Library (PR #140112)

2025-06-14 Thread Nikita Popov via cfe-commits
@@ -0,0 +1,282 @@ +//===- ABI/Types.h --*- C++ -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[clang] [llvm] [WIP] ABI Lowering Library (PR #140112)

2025-06-14 Thread Nikita Popov via cfe-commits
@@ -0,0 +1,136 @@ +//===- ABIInfo.h - ABI information access & encapsulation - C++ ---===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[clang] [llvm] [WIP] ABI Lowering Library (PR #140112)

2025-06-14 Thread Nikita Popov via cfe-commits
@@ -0,0 +1,172 @@ +//===- ABIFunctionInfo.h - ABI Function Information - C++ -===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[clang] [llvm] [WIP] ABI Lowering Library (PR #140112)

2025-06-14 Thread Nikita Popov via cfe-commits
@@ -3,6 +3,7 @@ include(LLVM-Build) # `Demangle', `Support' and `TableGen' libraries are added on the top-level # CMakeLists.txt +# add_subdirectory(ABI) nikic wrote: Should add cmake now that we have cpp files. https://github.com/llvm/llvm-project/pull/1401

[clang] [CIR] Upstream ComplexType builtin_complex (PR #144225)

2025-06-14 Thread Sirui Mu via cfe-commits
@@ -44,6 +68,15 @@ void ComplexExprEmitter::emitStoreOfComplex(mlir::Location loc, mlir::Value val, builder.createStore(loc, val, destAddr); } +mlir::Value ComplexExprEmitter::VisitCallExpr(const CallExpr *e) { + if (e->getCallReturnType(cgf.getContext())->isReferenceType(

[clang] [CIR] Upstream ComplexType builtin_complex (PR #144225)

2025-06-14 Thread Sirui Mu via cfe-commits
https://github.com/Lancern edited https://github.com/llvm/llvm-project/pull/144225 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [WIP] ABI Lowering Library (PR #140112)

2025-06-14 Thread via cfe-commits
@@ -0,0 +1,102 @@ +//===- BPF.cpp ===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[clang] [CIR] Upstream ComplexType ImaginaryLiteral (PR #144223)

2025-06-14 Thread Sirui Mu via cfe-commits
https://github.com/Lancern approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/144223 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [WIP] ABI Lowering Library (PR #140112)

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

[clang] [llvm] [AVR] Add support for many new AVR MCUs (PR #143914)

2025-06-14 Thread Ben Shi via cfe-commits
https://github.com/benshi001 approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/143914 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AVR] Add support for many new AVR MCUs (PR #143914)

2025-06-14 Thread Ben Shi via cfe-commits
@@ -326,8 +326,78 @@ constexpr struct { {"attiny1624", "avrxmega3", "avrxmega3", 0x803800}, {"attiny1626", "avrxmega3", "avrxmega3", 0x803800}, {"attiny1627", "avrxmega3", "avrxmega3", 0x803800}, +{"attiny3224", "avrxmega3", "avrxmega3", 0x803400}, +{"attiny

[clang-tools-extra] [clang-tidy] Fix false positives with template in `misc-unconventional-assign-operator` check (PR #143292)

2025-06-14 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/143292 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 10bc17f - [AVR] Add support for many new AVR MCUs (#143914)

2025-06-14 Thread via cfe-commits
Author: Tom Vijlbrief Date: 2025-06-14T23:10:04+08:00 New Revision: 10bc17fc3676b82c7240046a948d2925dd2045d3 URL: https://github.com/llvm/llvm-project/commit/10bc17fc3676b82c7240046a948d2925dd2045d3 DIFF: https://github.com/llvm/llvm-project/commit/10bc17fc3676b82c7240046a948d2925dd2045d3.diff

[clang] [llvm] [AVR] Add support for many new AVR MCUs (PR #143914)

2025-06-14 Thread via cfe-commits
github-actions[bot] wrote: @tomtor 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 build,

[clang] [llvm] [AVR] Add support for many new AVR MCUs (PR #143914)

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

[clang] [llvm] [AVR] Add support for many new AVR MCUs (PR #143914)

2025-06-14 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `sanitizer-aarch64-linux-bootstrap-hwasan` running on `sanitizer-buildbot12` while building `clang,llvm` at step 2 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/55/builds/12788 Here is t

[clang] [llvm] [AVR] Add support for many new AVR MCUs (PR #143914)

2025-06-14 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-x86_64-debian-dylib` running on `gribozavr4` while building `clang,llvm` at step 5 "build-unified-tree". Full details are available at: https://lab.llvm.org/buildbot/#/builders/60/builds/30265 Here is the relevant piec

[clang] [llvm] [AVR] Add support for many new AVR MCUs (PR #143914)

2025-06-14 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `premerge-monolithic-linux` running on `premerge-linux-1` while building `clang,llvm` at step 6 "build-unified-tree". Full details are available at: https://lab.llvm.org/buildbot/#/builders/153/builds/34834 Here is the relev

[clang] [llvm] [AVR] Add support for many new AVR MCUs (PR #143914)

2025-06-14 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `libc-x86_64-debian-dbg-bootstrap-build` running on `libc-x86_64-debian` while building `clang,llvm` at step 4 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/200/builds/11295 Here is the

[clang] [llvm] [AVR] Add support for many new AVR MCUs (PR #143914)

2025-06-14 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-gcc-ubuntu` running on `sie-linux-worker3` while building `clang,llvm` at step 5 "build-unified-tree". Full details are available at: https://lab.llvm.org/buildbot/#/builders/174/builds/19412 Here is the r

[clang] [llvm] [AVR] Add support for many new AVR MCUs (PR #143914)

2025-06-14 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `openmp-clang-x86_64-linux-debian` running on `gribozavr4` while building `clang,llvm` at step 5 "compile-openmp". Full details are available at: https://lab.llvm.org/buildbot/#/builders/6/builds/9864 Here is the relevant pi

[clang] [llvm] [AVR] Add support for many new AVR MCUs (PR #143914)

2025-06-14 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `ml-opt-dev-x86-64` running on `ml-opt-dev-x86-64-b2` while building `clang,llvm` at step 5 "build-unified-tree". Full details are available at: https://lab.llvm.org/buildbot/#/builders/137/builds/20353 Here is the relevant

[clang] [llvm] [AVR] Add support for many new AVR MCUs (PR #143914)

2025-06-14 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `lld-x86_64-ubuntu-fast` running on `as-builder-4` while building `clang,llvm` at step 5 "build-unified-tree". Full details are available at: https://lab.llvm.org/buildbot/#/builders/33/builds/18281 Here is the relevant piec

[clang] [llvm] [AVR] Add support for many new AVR MCUs (PR #143914)

2025-06-14 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `sanitizer-aarch64-linux-fuzzer` running on `sanitizer-buildbot12` while building `clang,llvm` at step 2 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/159/builds/24385 Here is the releva

[clang] [llvm] [AVR] Add support for many new AVR MCUs (PR #143914)

2025-06-14 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `lldb-arm-ubuntu` running on `linaro-lldb-arm-ubuntu` while building `clang,llvm` at step 4 "build". Full details are available at: https://lab.llvm.org/buildbot/#/builders/18/builds/17486 Here is the relevant piece of the bu

[clang] [llvm] [AVR] Add support for many new AVR MCUs (PR #143914)

2025-06-14 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-ppc64le-linux-test-suite` running on `ppc64le-clang-test-suite` while building `clang,llvm` at step 5 "build-unified-tree". Full details are available at: https://lab.llvm.org/buildbot/#/builders/95/builds/14514 Here

[clang] [llvm] [AVR] Add support for many new AVR MCUs (PR #143914)

2025-06-14 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `openmp-gcc-x86_64-linux-debian` running on `gribozavr4` while building `clang,llvm` at step 5 "compile-openmp". Full details are available at: https://lab.llvm.org/buildbot/#/builders/70/builds/10104 Here is the relevant pi

  1   2   3   >