[clang] [RISCV] Allow YAML file to control multilib selection (PR #98856)

2024-08-06 Thread via cfe-commits
https://github.com/ArcaneNibble updated https://github.com/llvm/llvm-project/pull/98856 >From 6577b7b1396aef1c313c1927fd86de81a9a860c2 Mon Sep 17 00:00:00 2001 From: R Date: Mon, 15 Jul 2024 04:13:07 +0100 Subject: [PATCH] [RISCV] Allow YAML file to control multilib selection --- clang/lib/Dr

[clang] [RISCV] Allow YAML file to control multilib selection (PR #98856)

2024-08-06 Thread via cfe-commits
@@ -258,6 +259,13 @@ static void getARMMultilibFlags(const Driver &D, } } +static void getRISCVMultilibFlags(const Driver &D, const llvm::Triple &Triple, + const llvm::opt::ArgList &Args, + Multilib::flags_lis

[clang] [RISCV] Allow YAML file to control multilib selection (PR #98856)

2024-08-06 Thread via cfe-commits
ArcaneNibble wrote: > Could you add a testcase for that? Added a test case for checking the resulting flags. There's already test cases covering handling the YAML file itself. I haven't added a test for the fallback logic specifically, as that seemed a bit fiddly and there's desire to remove i

[clang] [Clang] Implement C++26’s P2893R3 ‘Variadic friends’ (PR #101448)

2024-08-06 Thread via cfe-commits
Sirraide wrote: It turns out that `FriendPackDecl` wasn’t needed after all, so that already simplifies this pr quite a bit. https://github.com/llvm/llvm-project/pull/101448 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org

[clang] [Clang] strengthen checks for 'main' function to meet [basic.start.main] p3 requirements (PR #101853)

2024-08-06 Thread via cfe-commits
https://github.com/Sirraide edited https://github.com/llvm/llvm-project/pull/101853 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] strengthen checks for 'main' function to meet [basic.start.main] p3 requirements (PR #101853)

2024-08-06 Thread via cfe-commits
https://github.com/Sirraide approved this pull request. Two more minor changes but LGTM otherwise. https://github.com/llvm/llvm-project/pull/101853 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/

[clang] [Clang] strengthen checks for 'main' function to meet [basic.start.main] p3 requirements (PR #101853)

2024-08-06 Thread via cfe-commits
@@ -7353,6 +7353,15 @@ void emitReadOnlyPlacementAttrWarning(Sema &S, const VarDecl *VD) { } } +// Checks if VD is declared at global scope or with C language linkage Sirraide wrote: ```suggestion // Checks if VD is declared at global scope or with C langu

[clang] [Clang] strengthen checks for 'main' function to meet [basic.start.main] p3 requirements (PR #101853)

2024-08-06 Thread via cfe-commits
@@ -8,6 +8,9 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s -DTEST8 // RUN: %clang_cc1 -fsyntax-only -verify %s -DTEST9 // RUN: %clang_cc1 -fsyntax-only -verify %s -DTEST10 -ffreestanding +// RUN: %clang_cc1 -fsyntax-only -verify -pedantic-errors %s -DTEST11 +// RUN: %clang_cc1

[clang] [Clang] strengthen checks for 'main' function to meet [basic.start.main] p3 requirements (PR #101853)

2024-08-06 Thread via cfe-commits
@@ -990,6 +990,12 @@ def warn_main_redefined : Warning<"variable named 'main' with external linkage " "has undefined behavior">, InGroup; def ext_main_used : Extension< "referring to 'main' within an expression is a Clang extension">, InGroup; +def ext_main_invalid_li

[clang] [WIP][Clang][Interp] Fix display of syntactically-invalid note for member function calls (PR #102170)

2024-08-06 Thread via cfe-commits
https://github.com/yronglin created https://github.com/llvm/llvm-project/pull/102170 None >From 59706e6788e36dbd30d876a3cc5541f224c62af3 Mon Sep 17 00:00:00 2001 From: yronglin Date: Tue, 6 Aug 2024 23:50:34 +0800 Subject: [PATCH] [WIP][Clang][Interp] Fix display of syntactically-invalid note

[clang] [Clang] [Frontend] fix crash on parsing ternary operator with `vector_size` condition (PR #102004)

2024-08-06 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman edited https://github.com/llvm/llvm-project/pull/102004 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] [Frontend] fix crash on parsing ternary operator with `vector_size` condition (PR #102004)

2024-08-06 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman commented: Thank you for working on this! Please be sure to add a release note to `clang/docs/ReleaseNotes.rst` so users know about the fix. https://github.com/llvm/llvm-project/pull/102004 ___ cfe-commits mailing list

[clang] [Clang] [Frontend] fix crash on parsing ternary operator with `vector_size` condition (PR #102004)

2024-08-06 Thread Aaron Ballman via cfe-commits
@@ -169,10 +173,10 @@ void all_dependent(Cond C, LHS L, RHS R) { void Templates() { dependent_cond(two_ints); dependent_operand(two_floats); - // expected-error@165 {{vector operands to the vector conditional must be the same type ('__attribute__((__vector_size__(4 * size

[clang] [Clang] [Frontend] fix crash on parsing ternary operator with `vector_size` condition (PR #102004)

2024-08-06 Thread Aaron Ballman via cfe-commits
@@ -110,6 +110,10 @@ void Operands() { (void)(four_shorts ? four_shorts : uss); // expected-error {{cannot convert between scalar type 'unsigned short' and vector type 'FourShorts'}} (void)(four_ints ? four_floats : us);// expected-error {{cannot convert between scalar

[clang] [Clang] strengthen checks for 'main' function to meet [basic.start.main] p3 requirements (PR #101853)

2024-08-06 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk updated https://github.com/llvm/llvm-project/pull/101853 >From 56c8d3a8e5f860ec1f68adf997d502849de1cb50 Mon Sep 17 00:00:00 2001 From: Oleksandr T Date: Sun, 4 Aug 2024 00:45:49 +0300 Subject: [PATCH 1/2] [Clang] strengthen checks for 'main' function to meet [basi

[clang] [Clang] strengthen checks for 'main' function to meet [basic.start.main] p3 requirements (PR #101853)

2024-08-06 Thread Oleksandr T. via cfe-commits
@@ -7353,6 +7353,15 @@ void emitReadOnlyPlacementAttrWarning(Sema &S, const VarDecl *VD) { } } +// Checks if VD is declared at global scope or with C language linkage a-tarasyuk wrote: Fixed https://github.com/llvm/llvm-project/pull/101853 ___

[clang] [Clang] strengthen checks for 'main' function to meet [basic.start.main] p3 requirements (PR #101853)

2024-08-06 Thread Oleksandr T. via cfe-commits
@@ -8,6 +8,9 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s -DTEST8 // RUN: %clang_cc1 -fsyntax-only -verify %s -DTEST9 // RUN: %clang_cc1 -fsyntax-only -verify %s -DTEST10 -ffreestanding +// RUN: %clang_cc1 -fsyntax-only -verify -pedantic-errors %s -DTEST11 +// RUN: %clang_cc1

[clang] [Clang] strengthen checks for 'main' function to meet [basic.start.main] p3 requirements (PR #101853)

2024-08-06 Thread Oleksandr T. via cfe-commits
@@ -990,6 +990,12 @@ def warn_main_redefined : Warning<"variable named 'main' with external linkage " "has undefined behavior">, InGroup; def ext_main_used : Extension< "referring to 'main' within an expression is a Clang extension">, InGroup; +def ext_main_invalid_li

[clang] [Clang][Parser] Accept P2741R3 (static_assert with user-generated message) in C++11 as an extension (PR #102044)

2024-08-06 Thread Aaron Ballman via cfe-commits
@@ -671,10 +671,8 @@ static void InitializeCPlusPlusFeatureTestMacros(const LangOptions &LangOpts, LangOpts.CPlusPlus23 ? "202211L" : LangOpts.CPlusPlus17 ? "201603L" : "200907");

[clang] [Clang] Implement C++26’s P2893R3 ‘Variadic friends’ (PR #101448)

2024-08-06 Thread via cfe-commits
@@ -177,6 +190,8 @@ class FriendDecl final UnsupportedFriend = Unsupported; } + bool isVariadic() const { return EllipsisLoc.isValid(); } cor3ntin wrote: ```suggestion bool isPackExpansion() const { return EllipsisLoc.isValid(); } ``` https://github

[clang] [Clang] Implement C++26’s P2893R3 ‘Variadic friends’ (PR #101448)

2024-08-06 Thread via cfe-commits
@@ -3800,7 +3800,8 @@ class Sema final : public SemaBase { const ParsedAttributesView &DeclAttrs, MultiTemplateParamsArg TemplateParams, bool IsExplicitInstantiation, -

[clang] [Clang] Implement C++26’s P2893R3 ‘Variadic friends’ (PR #101448)

2024-08-06 Thread via cfe-commits
@@ -5538,7 +5539,8 @@ class Sema final : public SemaBase { /// parameters present at all, require proper matching, i.e. /// template <> template \ friend class A::B; Decl *ActOnFriendTypeDecl(Scope *S, const DeclSpec &DS, -MultiTemplateParams

[clang] [Clang] Implement C++26’s P2893R3 ‘Variadic friends’ (PR #101448)

2024-08-06 Thread via cfe-commits
@@ -487,7 +487,26 @@ void DeclPrinter::VisitDeclContext(DeclContext *DC, bool Indent) { } this->Indent(); -Visit(*D); + +// Group friend declarations if need be. +if (isa(*D)) { + auto *FD = cast(*D); + VisitFriendDecl(FD); + SourceLocation

[clang] [Clang] Implement C++26’s P2893R3 ‘Variadic friends’ (PR #101448)

2024-08-06 Thread via cfe-commits
@@ -3048,6 +3087,66 @@ Parser::DeclGroupPtrTy Parser::ParseCXXClassMemberDeclaration( if (DS.hasTagDefinition()) Actions.ActOnDefinedDeclarationSpecifier(DS.getRepAsDecl()); + // Handle C++26's variadic friend declarations. These don't even have + // declarators, so w

[clang] [Clang] Implement C++26’s P2893R3 ‘Variadic friends’ (PR #101448)

2024-08-06 Thread via cfe-commits
@@ -2694,6 +2694,8 @@ void TextNodeDumper::VisitAccessSpecDecl(const AccessSpecDecl *D) { void TextNodeDumper::VisitFriendDecl(const FriendDecl *D) { if (TypeSourceInfo *T = D->getFriendType()) dumpType(T->getType()); + if (D->isVariadic()) +OS << " variadic"; -

[clang] [Clang] Implement C++26’s P2893R3 ‘Variadic friends’ (PR #101448)

2024-08-06 Thread via cfe-commits
@@ -1087,6 +1087,7 @@ void JSONNodeDumper::VisitAccessSpecDecl(const AccessSpecDecl *ASD) { void JSONNodeDumper::VisitFriendDecl(const FriendDecl *FD) { if (const TypeSourceInfo *T = FD->getFriendType()) JOS.attribute("type", createQualType(T->getType())); + attributeOn

[clang] [Clang] Implement C++26’s P2893R3 ‘Variadic friends’ (PR #101448)

2024-08-06 Thread via cfe-commits
@@ -862,13 +881,21 @@ void DeclPrinter::VisitFunctionDecl(FunctionDecl *D) { } } -void DeclPrinter::VisitFriendDecl(FriendDecl *D) { +void DeclPrinter::VisitFriendDecl(FriendDecl *D, bool FirstInGroup) { if (TypeSourceInfo *TSI = D->getFriendType()) { unsigned NumTPL

[clang] [Clang] Implement C++26’s P2893R3 ‘Variadic friends’ (PR #101448)

2024-08-06 Thread via cfe-commits
@@ -1442,8 +1442,49 @@ Decl *TemplateDeclInstantiator::VisitFriendDecl(FriendDecl *D) { if (D->isUnsupportedFriend()) { InstTy = Ty; } else { - InstTy = SemaRef.SubstType(Ty, TemplateArgs, - D->getLocation(), DeclarationName()

[clang] [Clang] Implement C++26’s P2893R3 ‘Variadic friends’ (PR #101448)

2024-08-06 Thread via cfe-commits
@@ -17354,12 +17354,18 @@ Decl *Sema::BuildStaticAssertDeclaration(SourceLocation StaticAssertLoc, DeclResult Sema::ActOnTemplatedFriendTag( Scope *S, SourceLocation FriendLoc, unsigned TagSpec, SourceLocation TagLoc, CXXScopeSpec &SS, IdentifierInfo *Name, SourceLoca

[clang] [Clang] Implement C++26’s P2893R3 ‘Variadic friends’ (PR #101448)

2024-08-06 Thread via cfe-commits
@@ -17354,12 +17354,18 @@ Decl *Sema::BuildStaticAssertDeclaration(SourceLocation StaticAssertLoc, DeclResult Sema::ActOnTemplatedFriendTag( Scope *S, SourceLocation FriendLoc, unsigned TagSpec, SourceLocation TagLoc, CXXScopeSpec &SS, IdentifierInfo *Name, SourceLoca

[clang] [clang-tools-extra] [flang] [lld] [llvm] [mlir] Reapply "[CMake] Fold export_executable_symbols_* into function args. (#101741)" (PR #102138)

2024-08-06 Thread Steven Wu via cfe-commits
https://github.com/cachemeifyoucan edited https://github.com/llvm/llvm-project/pull/102138 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Implement C++26’s P2893R3 ‘Variadic friends’ (PR #101448)

2024-08-06 Thread via cfe-commits
@@ -487,7 +487,26 @@ void DeclPrinter::VisitDeclContext(DeclContext *DC, bool Indent) { } this->Indent(); -Visit(*D); + +// Group friend declarations if need be. +if (isa(*D)) { + auto *FD = cast(*D); + VisitFriendDecl(FD); + SourceLocation

[clang] [Clang] Implement C++26’s P2893R3 ‘Variadic friends’ (PR #101448)

2024-08-06 Thread via cfe-commits
@@ -3048,6 +3087,66 @@ Parser::DeclGroupPtrTy Parser::ParseCXXClassMemberDeclaration( if (DS.hasTagDefinition()) Actions.ActOnDefinedDeclarationSpecifier(DS.getRepAsDecl()); + // Handle C++26's variadic friend declarations. These don't even have + // declarators, so w

[clang] [Clang] Implement C++26’s P2893R3 ‘Variadic friends’ (PR #101448)

2024-08-06 Thread via cfe-commits
@@ -487,7 +487,26 @@ void DeclPrinter::VisitDeclContext(DeclContext *DC, bool Indent) { } this->Indent(); -Visit(*D); + +// Group friend declarations if need be. +if (isa(*D)) { + auto *FD = cast(*D); + VisitFriendDecl(FD); + SourceLocation

[clang] [clang-tools-extra] [lldb] [clang] Reland: Instantiate alias templates with sugar (PR #101858)

2024-08-06 Thread Matheus Izvekov via cfe-commits
mizvekov wrote: > I agree that we don't need `SubstTemplateTypeParmType` nodes if all > resuraging that we ever do is related to types that the Clang frontend itself > knows. However that is not universally true. > > For example, we (Google) have a tool for inferring and checking nullability

[clang] [Clang] Implement C++26’s P2893R3 ‘Variadic friends’ (PR #101448)

2024-08-06 Thread via cfe-commits
@@ -17354,12 +17354,18 @@ Decl *Sema::BuildStaticAssertDeclaration(SourceLocation StaticAssertLoc, DeclResult Sema::ActOnTemplatedFriendTag( Scope *S, SourceLocation FriendLoc, unsigned TagSpec, SourceLocation TagLoc, CXXScopeSpec &SS, IdentifierInfo *Name, SourceLoca

[clang] [Clang] strengthen checks for 'main' function to meet [basic.start.main] p3 requirements (PR #101853)

2024-08-06 Thread Mital Ashok via cfe-commits
https://github.com/MitalAshok approved this pull request. Diagnostic changes are a minor nit, LGTM otherwise https://github.com/llvm/llvm-project/pull/101853 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman

[clang] [Clang] strengthen checks for 'main' function to meet [basic.start.main] p3 requirements (PR #101853)

2024-08-06 Thread Mital Ashok via cfe-commits
https://github.com/MitalAshok edited https://github.com/llvm/llvm-project/pull/101853 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] strengthen checks for 'main' function to meet [basic.start.main] p3 requirements (PR #101853)

2024-08-06 Thread Mital Ashok via cfe-commits
@@ -61,6 +64,64 @@ int q(void) // expected-no-diagnostics int main; +#elif TEST11 +extern "C" { + namespace Y { +int main; // expected-error {{main cannot be declared as global variable}} MitalAshok wrote: These diagnostics could be similar to: https://

[clang] [Clang] strengthen checks for 'main' function to meet [basic.start.main] p3 requirements (PR #101853)

2024-08-06 Thread Mital Ashok via cfe-commits
@@ -8052,10 +8061,7 @@ NamedDecl *Sema::ActOnVariableDeclarator( } // Special handling of variable named 'main'. - if (Name.getAsIdentifierInfo() && Name.getAsIdentifierInfo()->isStr("main") && - NewVD->getDeclContext()->getRedeclContext()->isTranslationUnit() && -

[clang] [Clang] strengthen checks for 'main' function to meet [basic.start.main] p3 requirements (PR #101853)

2024-08-06 Thread Mital Ashok via cfe-commits
@@ -12238,7 +12255,6 @@ void Sema::CheckMain(FunctionDecl* FD, const DeclSpec& DS) { << FixItHint::CreateRemoval(DS.getConstexprSpecLoc()); FD->setConstexprKind(ConstexprSpecKind::Unspecified); } MitalAshok wrote: ```suggestion } ``` (Unnece

[clang] [Clang] Implement C++26’s P2893R3 ‘Variadic friends’ (PR #101448)

2024-08-06 Thread via cfe-commits
@@ -487,7 +487,26 @@ void DeclPrinter::VisitDeclContext(DeclContext *DC, bool Indent) { } this->Indent(); -Visit(*D); + +// Group friend declarations if need be. +if (isa(*D)) { + auto *FD = cast(*D); + VisitFriendDecl(FD); + SourceLocation

[clang] [llvm] [LV] Mask off possibly aliasing vector lanes (PR #100579)

2024-08-06 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 c7a3346ab6a8fbd551a80bd4028ec8624daa35e4 2a351ed7ee51d58dc9abc398ea57f68800791194 --e

[clang] [lldb] [clang][AST] fix ast-print of extern with >=2 declarators, fixed, fixed (PR #98795)

2024-08-06 Thread via cfe-commits
temyurchenko wrote: > > I don't have the full context but I can definitely run the lldb test suite > > for you. I'm building now. (BTW, I see there are some merge conflicts on > > the PR.) > > I have the results now. The patch is based on a fairly old revision, so it > didn't work for me with

[clang] [llvm] [PowerPC] Fix codegen for transparent_union function params (PR #101738)

2024-08-06 Thread Lei Huang via cfe-commits
lei137 wrote: I was thinking it would make the code cleaner if we can do something like this instead: ``` // For transparent union types, return the type of the first element. -// Set TU to true if Ty given was a transparent union and to false otherwise. +// and set CTy the integer type of the

[clang] [llvm] [Clang][Parser] Accept P2741R3 (static_assert with user-generated message) in C++11 as an extension (PR #102044)

2024-08-06 Thread Mital Ashok via cfe-commits
https://github.com/MitalAshok updated https://github.com/llvm/llvm-project/pull/102044 >From 90441c251c1ec5a3b8be923ca9678c8d3d586bee Mon Sep 17 00:00:00 2001 From: Mital Ashok Date: Mon, 5 Aug 2024 20:29:12 +0100 Subject: [PATCH 1/6] [Clang][Sema] Backport P2741R3 (static_assert with user-gen

[clang] [Clang][Sema][OpenMP] Allow `num_teams` to accept multiple expressions (PR #99732)

2024-08-06 Thread Simon Pilgrim via cfe-commits
@@ -3332,6 +3331,13 @@ OMPClause *Parser::ParseOpenMPClause(OpenMPDirectiveKind DKind, ? ParseOpenMPSimpleClause(CKind, WrongDirective) : ParseOpenMPClause(CKind, WrongDirective); break; + case OMPC_num_teams: +if (!FirstClause) { +

[clang] [llvm] [Clang][Parser] Accept P2741R3 (static_assert with user-generated message) in C++11 as an extension (PR #102044)

2024-08-06 Thread Mital Ashok via cfe-commits
@@ -105,6 +105,11 @@ C2y Feature Support C23 Feature Support ^^^ +Non-comprehensive list of changes in this release +- MitalAshok wrote: Opened as #102134 https://github.com/llvm/llvm-project/pu

[clang] [lldb] [clang][AST] fix ast-print of extern with >=2 declarators, fixed, fixed (PR #98795)

2024-08-06 Thread via cfe-commits
https://github.com/temyurchenko updated https://github.com/llvm/llvm-project/pull/98795 >From 24ee56b5a104bdc8434413458f23b2d271764c78 Mon Sep 17 00:00:00 2001 From: Artem Yurchenko <44875844+temyurche...@users.noreply.github.com> Date: Thu, 30 May 2024 16:18:47 -0400 Subject: [PATCH 1/4] [clang

[clang] [Clang] Implement C++26’s P2893R3 ‘Variadic friends’ (PR #101448)

2024-08-06 Thread via cfe-commits
@@ -17354,12 +17354,18 @@ Decl *Sema::BuildStaticAssertDeclaration(SourceLocation StaticAssertLoc, DeclResult Sema::ActOnTemplatedFriendTag( Scope *S, SourceLocation FriendLoc, unsigned TagSpec, SourceLocation TagLoc, CXXScopeSpec &SS, IdentifierInfo *Name, SourceLoca

[clang] [Clang][NFC] Restore "Non-comprehensive list of changes in this release" in ReleaseNotes (PR #102134)

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

[clang] [llvm] [RISCV] Add sifive-p470 processor (PR #102022)

2024-08-06 Thread Michael Maitland via cfe-commits
https://github.com/michaelmaitland updated https://github.com/llvm/llvm-project/pull/102022 >From 987b46c76297486e2c4c5a67f5c67225b2bbd361 Mon Sep 17 00:00:00 2001 From: Michael Maitland Date: Mon, 5 Aug 2024 10:01:08 -0700 Subject: [PATCH 1/3] [RISCV] Add sifive-p470 processor This is an OOO

[clang] [llvm] [RISCV] Add sifive-p470 processor (PR #102022)

2024-08-06 Thread Michael Maitland via cfe-commits
@@ -266,11 +272,47 @@ def SIFIVE_P450 : RISCVProcessorModel<"sifive-p450", SiFiveP400Model, FeatureStdExtZfhmin, FeatureUnalignedScalarMem, FeatureUnalignedVect

[clang] 55ea360 - [Clang][Sema] Make UnresolvedLookupExprs in class scope explicit specializations instantiation dependent (#100392)

2024-08-06 Thread via cfe-commits
Author: Krystian Stasiowski Date: 2024-08-06T12:40:44-04:00 New Revision: 55ea36002bd364518c20b3ce282640c920697bf7 URL: https://github.com/llvm/llvm-project/commit/55ea36002bd364518c20b3ce282640c920697bf7 DIFF: https://github.com/llvm/llvm-project/commit/55ea36002bd364518c20b3ce282640c920697bf7

[clang] [Clang][Sema] Make UnresolvedLookupExprs in class scope explicit specializations instantiation dependent (PR #100392)

2024-08-06 Thread Krystian Stasiowski via cfe-commits
https://github.com/sdkrystian closed https://github.com/llvm/llvm-project/pull/100392 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][DebugInfo] Don't mark structured bindings as artificial (PR #100355)

2024-08-06 Thread Adrian Prantl via cfe-commits
https://github.com/adrian-prantl approved this pull request. So this patch makes structured bindings not artificial, so they aren't hidden in debuggers by default. That sounds right to me. https://github.com/llvm/llvm-project/pull/100355 ___ cfe-commi

[clang] [clang-tools-extra] [flang] [lld] [llvm] [mlir] Reapply "[CMake] Fold export_executable_symbols_* into function args. (#101741)" (PR #102138)

2024-08-06 Thread Steven Wu via cfe-commits
cachemeifyoucan wrote: @petrhosek Let me know if you want to check this offline before I merge or you want me to merge and see if it breaks again. https://github.com/llvm/llvm-project/pull/102138 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[clang] [Clang][Parser] Accept P2741R3 (static_assert with user-generated message) in C++11 as an extension (PR #102044)

2024-08-06 Thread Mital Ashok via cfe-commits
https://github.com/MitalAshok updated https://github.com/llvm/llvm-project/pull/102044 >From 90441c251c1ec5a3b8be923ca9678c8d3d586bee Mon Sep 17 00:00:00 2001 From: Mital Ashok Date: Mon, 5 Aug 2024 20:29:12 +0100 Subject: [PATCH 1/6] [Clang][Sema] Backport P2741R3 (static_assert with user-gen

[clang] [Clang] strengthen checks for 'main' function to meet [basic.start.main] p3 requirements (PR #101853)

2024-08-06 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk updated https://github.com/llvm/llvm-project/pull/101853 >From 56c8d3a8e5f860ec1f68adf997d502849de1cb50 Mon Sep 17 00:00:00 2001 From: Oleksandr T Date: Sun, 4 Aug 2024 00:45:49 +0300 Subject: [PATCH 1/3] [Clang] strengthen checks for 'main' function to meet [basi

[clang] 0c2ded6 - [NFC] Fix compile warning introduced in #99732

2024-08-06 Thread Shilei Tian via cfe-commits
Author: Shilei Tian Date: 2024-08-06T12:45:29-04:00 New Revision: 0c2ded670652c73cb0245b2a8ec065cd1b4f0c6f URL: https://github.com/llvm/llvm-project/commit/0c2ded670652c73cb0245b2a8ec065cd1b4f0c6f DIFF: https://github.com/llvm/llvm-project/commit/0c2ded670652c73cb0245b2a8ec065cd1b4f0c6f.diff L

[clang] [Clang][Sema][OpenMP] Allow `num_teams` to accept multiple expressions (PR #99732)

2024-08-06 Thread Shilei Tian via cfe-commits
@@ -3332,6 +3331,13 @@ OMPClause *Parser::ParseOpenMPClause(OpenMPDirectiveKind DKind, ? ParseOpenMPSimpleClause(CKind, WrongDirective) : ParseOpenMPClause(CKind, WrongDirective); break; + case OMPC_num_teams: +if (!FirstClause) { +

[clang] [Clang][Sema] Make UnresolvedLookupExprs in class scope explicit specializations instantiation dependent (PR #100392)

2024-08-06 Thread Aaron Ballman via cfe-commits
AaronBallman wrote: > > This sounds more like an unrelated refactoring change. I'm going to hold > > off on doing that in this patch. > > With this change, some of modified functions get multiple boolean back to > > back and we are for some of them at 11+ parameters. I think some cleanup > > w

[clang] [Clang][Parser] Accept P2741R3 (static_assert with user-generated message) in C++11 as an extension (PR #102044)

2024-08-06 Thread via cfe-commits
@@ -1504,7 +1504,7 @@ Conditional ``explicit`` __cpp_conditional_explicit C+ ``static operator()``__cpp_static_call_operator C++23 C++03 Attributes on Lambda-Expressions

[clang] [Clang][Parser] Accept P2741R3 (static_assert with user-generated message) in C++11 as an extension (PR #102044)

2024-08-06 Thread Mital Ashok via cfe-commits
https://github.com/MitalAshok updated https://github.com/llvm/llvm-project/pull/102044 >From 90441c251c1ec5a3b8be923ca9678c8d3d586bee Mon Sep 17 00:00:00 2001 From: Mital Ashok Date: Mon, 5 Aug 2024 20:29:12 +0100 Subject: [PATCH 1/7] [Clang][Sema] Backport P2741R3 (static_assert with user-gen

[clang] [CodeGen][NFCI] Don't re-implement parts of ASTContext::getIntWidth (PR #101765)

2024-08-06 Thread Jessica Clarke via cfe-commits
jrtc27 wrote: For the avoidance of doubt, I would appreciate a review from a core Clang developer, given Alex also comes from a CHERI LLVM background. https://github.com/llvm/llvm-project/pull/101765 ___ cfe-commits mailing list cfe-commits@lists.llvm

[clang] [PAC][clang][Driver] Add signed GOT flag (PR #96160)

2024-08-06 Thread Daniil Kovalev via cfe-commits
https://github.com/kovdan01 updated https://github.com/llvm/llvm-project/pull/96160 >From 1ca6cf823585b03a6c580b23caafd1ff44d83aa7 Mon Sep 17 00:00:00 2001 From: Daniil Kovalev Date: Tue, 6 Aug 2024 20:02:07 +0300 Subject: [PATCH] [PAC][clang][Driver] Add signed GOT flag Depends on #96159 Add

[clang] 1119a08 - [BoundsSafety][NFC] Remove the unused parameter 'Decls' from 'Sema::C… (#102076)

2024-08-06 Thread via cfe-commits
Author: Yeoul Na Date: 2024-08-06T10:04:25-07:00 New Revision: 1119a0805009501691538a28aeb9bb18b3ff911f URL: https://github.com/llvm/llvm-project/commit/1119a0805009501691538a28aeb9bb18b3ff911f DIFF: https://github.com/llvm/llvm-project/commit/1119a0805009501691538a28aeb9bb18b3ff911f.diff LOG:

[clang] [BoundsSafety][NFC] Remove the unused parameter 'Decls' from 'Sema::C… (PR #102076)

2024-08-06 Thread Yeoul Na via cfe-commits
https://github.com/rapidsna closed https://github.com/llvm/llvm-project/pull/102076 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [OpenMP] OpenMP 5.1 "assume" directive parsing support (PR #92731)

2024-08-06 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,llvm` at step 5 "build-unified-tree". Full details are available at: https://lab.llvm.org/buildbot/#/builders/157/builds/4246 Here is the r

[clang] c826c07 - [Test] Update clang/test/Modules/crash-vfs-include-pch.m (#102080)

2024-08-06 Thread via cfe-commits
Author: Steven Wu Date: 2024-08-06T10:06:48-07:00 New Revision: c826c074813a668de87d4aa8bfc95f9f8adf1e5f URL: https://github.com/llvm/llvm-project/commit/c826c074813a668de87d4aa8bfc95f9f8adf1e5f DIFF: https://github.com/llvm/llvm-project/commit/c826c074813a668de87d4aa8bfc95f9f8adf1e5f.diff LOG

[clang] [Test] Update clang/test/Modules/crash-vfs-include-pch.m (PR #102080)

2024-08-06 Thread Steven Wu via cfe-commits
https://github.com/cachemeifyoucan closed https://github.com/llvm/llvm-project/pull/102080 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Parser] Accept P2741R3 (static_assert with user-generated message) in C++11 as an extension (PR #102044)

2024-08-06 Thread Mital Ashok via cfe-commits
https://github.com/MitalAshok updated https://github.com/llvm/llvm-project/pull/102044 >From 90441c251c1ec5a3b8be923ca9678c8d3d586bee Mon Sep 17 00:00:00 2001 From: Mital Ashok Date: Mon, 5 Aug 2024 20:29:12 +0100 Subject: [PATCH 1/8] [Clang][Sema] Backport P2741R3 (static_assert with user-gen

[clang] [Clang][Parser] Accept P2741R3 (static_assert with user-generated message) in C++11 as an extension (PR #102044)

2024-08-06 Thread Mital Ashok via cfe-commits
https://github.com/MitalAshok updated https://github.com/llvm/llvm-project/pull/102044 >From 90441c251c1ec5a3b8be923ca9678c8d3d586bee Mon Sep 17 00:00:00 2001 From: Mital Ashok Date: Mon, 5 Aug 2024 20:29:12 +0100 Subject: [PATCH 1/8] [Clang][Sema] Backport P2741R3 (static_assert with user-gen

[clang] [clang-format] Change BinPackParameters to an enum to add a BreakAlways (PR #101882)

2024-08-06 Thread via cfe-commits
VolatileAcorn wrote: When you say rename, do you mean deprecate `BinPackParameters` like in these changes 6739bb5006bc28e2bdbdb2326eb2c957546634aa but using `BreakParameters` and `Never`/`OnePerLine`/`Always` for the names? https://github.com/llvm/llvm-project/pull/101882 _

[clang] [Clang][Parser] Accept P2741R3 (static_assert with user-generated message) in C++11 as an extension (PR #102044)

2024-08-06 Thread Mital Ashok via cfe-commits
@@ -1504,7 +1504,7 @@ Conditional ``explicit`` __cpp_conditional_explicit C+ ``static operator()``__cpp_static_call_operator C++23 C++03 Attributes on Lambda-Expressions

[clang] [PAC] Add support for __ptrauth type qualifier (PR #100830)

2024-08-06 Thread Eli Friedman via cfe-commits
@@ -104,6 +104,7 @@ FEATURE(thread_sanitizer, LangOpts.Sanitize.has(SanitizerKind::Thread)) FEATURE(dataflow_sanitizer, LangOpts.Sanitize.has(SanitizerKind::DataFlow)) FEATURE(scudo, LangOpts.Sanitize.hasOneOf(SanitizerKind::Scudo)) FEATURE(ptrauth_intrinsics, LangOpts.Pointer

[clang] [Clang][Sema][OpenMP] Allow `num_teams` to accept multiple expressions (PR #99732)

2024-08-06 Thread Mital Ashok via cfe-commits
@@ -363,5 +363,7 @@ considered for standardization. Please post on the | device extension | `'ompx_bare' clause on 'target teams' construct | :good:`prototyped` | #66844, #70612 | |

[clang] [lld] [llvm] [LTO] enable `ObjCARCContractPass` only on optimized build (PR #101114)

2024-08-06 Thread Peter Rong via cfe-commits
https://github.com/DataCorrupted updated https://github.com/llvm/llvm-project/pull/101114 >From 1aaa05fe132bd2742e971df1a81186d6f1fe8a61 Mon Sep 17 00:00:00 2001 From: Peter Rong Date: Mon, 29 Jul 2024 16:05:54 -0700 Subject: [PATCH 1/5] Reapply "Run ObjCContractPass in Default Codegen Pipeline

[clang] [lld] [llvm] [LTO] enable `ObjCARCContractPass` only on optimized build (PR #101114)

2024-08-06 Thread Peter Rong via cfe-commits
DataCorrupted wrote: Interesting, I didn't know DT is preserved during critical edge splitting. Just add the line to preserve DT. Many DT Construction is removed from the tests. https://github.com/llvm/llvm-project/pull/101114 ___ cfe-commits mailing

[clang] [PAC][clang][Driver] Add signed GOT flag (PR #96160)

2024-08-06 Thread Daniil Kovalev via cfe-commits
https://github.com/kovdan01 updated https://github.com/llvm/llvm-project/pull/96160 >From 1ca6cf823585b03a6c580b23caafd1ff44d83aa7 Mon Sep 17 00:00:00 2001 From: Daniil Kovalev Date: Tue, 6 Aug 2024 20:02:07 +0300 Subject: [PATCH 1/2] [PAC][clang][Driver] Add signed GOT flag Depends on #96159

[clang] 31a999c - [Clang][Doc] Fix an error in `OpenMPSupport.rst`

2024-08-06 Thread Shilei Tian via cfe-commits
Author: Shilei Tian Date: 2024-08-06T13:28:35-04:00 New Revision: 31a999c1ad2e24e16b85915b2a47b91627644a9e URL: https://github.com/llvm/llvm-project/commit/31a999c1ad2e24e16b85915b2a47b91627644a9e DIFF: https://github.com/llvm/llvm-project/commit/31a999c1ad2e24e16b85915b2a47b91627644a9e.diff L

[clang] [Clang][Sema][OpenMP] Allow `num_teams` to accept multiple expressions (PR #99732)

2024-08-06 Thread Shilei Tian via cfe-commits
@@ -363,5 +363,7 @@ considered for standardization. Please post on the | device extension | `'ompx_bare' clause on 'target teams' construct | :good:`prototyped` | #66844, #70612 | |

[clang] [Clang][Sema][OpenMP] Allow `num_teams` to accept multiple expressions (PR #99732)

2024-08-06 Thread Shilei Tian via cfe-commits
https://github.com/shiltian edited https://github.com/llvm/llvm-project/pull/99732 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [lld] [llvm] [LTO] enable `ObjCARCContractPass` only on optimized build (PR #101114)

2024-08-06 Thread Peter Rong via cfe-commits
https://github.com/DataCorrupted updated https://github.com/llvm/llvm-project/pull/101114 >From 69d67e6d164a1489006847b20c4d4a6ef398c321 Mon Sep 17 00:00:00 2001 From: Peter Rong Date: Mon, 29 Jul 2024 16:05:54 -0700 Subject: [PATCH 1/5] Reapply "Run ObjCContractPass in Default Codegen Pipeline

[clang] [llvm] [Clang][OMPX] Add the code generation for multi-dim `num_teams` (PR #101407)

2024-08-06 Thread Alexey Bataev via cfe-commits
https://github.com/alexey-bataev approved this pull request. LG https://github.com/llvm/llvm-project/pull/101407 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] #101784 part 1: introduce ctyped in an independent manner (PR #101941)

2024-08-06 Thread Jannick Kremer via cfe-commits
https://github.com/DeinAlptraum edited https://github.com/llvm/llvm-project/pull/101941 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] #101784 part 1: introduce ctyped in an independent manner (PR #101941)

2024-08-06 Thread Jannick Kremer via cfe-commits
https://github.com/DeinAlptraum edited https://github.com/llvm/llvm-project/pull/101941 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Overflow Idiom Exclusions (PR #100272)

2024-08-06 Thread Justin Stitt via cfe-commits
https://github.com/JustinStitt edited https://github.com/llvm/llvm-project/pull/100272 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Overflow Pattern Exclusions (PR #100272)

2024-08-06 Thread Justin Stitt via cfe-commits
https://github.com/JustinStitt edited https://github.com/llvm/llvm-project/pull/100272 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] #101784 part 1: introduce ctyped in an independent manner (PR #101941)

2024-08-06 Thread Jannick Kremer via cfe-commits
DeinAlptraum wrote: Regarding the segfault: this was a purely local problem for me, the function runs just fine for me now, and has always run fine in tests in the CI. I only left that comment to indicate that I couldn't test that specific part. https://github

[clang] [libclang/python] Add strict typing to clang Python bindings (#76664) (PR #78114)

2024-08-06 Thread Jannick Kremer via cfe-commits
https://github.com/DeinAlptraum edited https://github.com/llvm/llvm-project/pull/78114 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Adjust requires clause wrapping (#101550) (PR #102078)

2024-08-06 Thread Björn Schäpers via cfe-commits
HazardyKnusperkeks wrote: I see where you are coming from, and am annoyed by trailing requires clauses in my code as well, because it wraps the brace. Nevertheless I made this on purpose, `OwnLine` says the clause has its own line(s), the brace does not belong there. What I refrained from, whe

[clang] [clang-format] Adjust requires clause wrapping (#101550) (PR #102078)

2024-08-06 Thread Björn Schäpers via cfe-commits
https://github.com/HazardyKnusperkeks requested changes to this pull request. Github says I have to comment something... https://github.com/llvm/llvm-project/pull/102078 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi

[clang] Return available function types for BindingDecls. (PR #102196)

2024-08-06 Thread Samira Bazuzi via cfe-commits
https://github.com/bazuzi created https://github.com/llvm/llvm-project/pull/102196 Only return nullptr when we don't have an available QualType. >From 052eff82638bdfbc8c7b8a2b90bcd9a0c46e52c4 Mon Sep 17 00:00:00 2001 From: Samira Bazuzi Date: Tue, 6 Aug 2024 14:11:46 -0400 Subject: [PATCH] Ret

[clang] Return available function types for BindingDecls. (PR #102196)

2024-08-06 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Samira Bazuzi (bazuzi) Changes Only return nullptr when we don't have an available QualType. --- Full diff: https://github.com/llvm/llvm-project/pull/102196.diff 1 Files Affected: - (modified) clang/lib/AST/DeclBase.cpp (+8-3) ``

[clang] [llvm] [OpenMP] OpenMP 5.1 "assume" directive parsing support (PR #92731)

2024-08-06 Thread Valentin Clement バレンタイン クレメン via cfe-commits
clementval wrote: This is still breaking a buildbot. https://lab.llvm.org/buildbot/#/builders/157/builds/4246 Are you working on a fix? https://github.com/llvm/llvm-project/pull/92731 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://li

[clang] Reland "[Modules] Fix using `va_list` with modules and a precompiled header. (#101752)" (PR #101762)

2024-08-06 Thread Volodymyr Sapsai via cfe-commits
@@ -0,0 +1,84 @@ +// Check how builtins using varargs behave with the modules. + +// REQUIRES: x86-registered-target +// RUN: rm -rf %t +// RUN: split-file %s %t + +// RUN: %clang_cc1 -triple x86_64-apple-darwin \ vsapsai wrote: The issue is reproducible on x86_6

[clang] Return available function types for BindingDecls. (PR #102196)

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

[clang] Return available function types for BindingDecls. (PR #102196)

2024-08-06 Thread Samira Bazuzi via cfe-commits
bazuzi wrote: Thanks for the quick review! Could you merge for me? I don't have write access. https://github.com/llvm/llvm-project/pull/102196 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-c

[clang] Return available function types for BindingDecls. (PR #102196)

2024-08-06 Thread Matheus Izvekov via cfe-commits
mizvekov wrote: Is this a bug fix? If so, do you have a test case for this? If the change is supposed to be user or API visible, a release note explaining it would also be useful. https://github.com/llvm/llvm-project/pull/102196 ___ cfe-commits maili

<    1   2   3   4   5   >