[clang] [Clang][Concepts] Fix a constraint comparison regression for out-of-line ClassTemplateDecls (PR #102587)

2024-08-09 Thread Younan Zhang via cfe-commits
zyn0217 wrote: @jcsxky Thanks for spotting that. That is indeed a regression and I think that can be resolved by not letting out-of-line specializations contribute to template arguments. https://github.com/llvm/llvm-project/pull/102587 ___ cfe-commit

[clang] [llvm] [PGO][OpenMP] Instrumentation for GPU devices (Revision of #76587) (PR #102691)

2024-08-09 Thread Ethan Luis McDonough via cfe-commits
https://github.com/EthanLuisMcDonough updated https://github.com/llvm/llvm-project/pull/102691 >From 24b1a99a1c014e1015fbba137430c5c6f3e414c5 Mon Sep 17 00:00:00 2001 From: Ethan Luis McDonough Date: Fri, 28 Jun 2024 12:39:19 -0500 Subject: [PATCH 1/4] Changes from old gpuprof branch --- clan

[clang] [Clang][Concepts] Fix a constraint comparison regression for out-of-line ClassTemplateDecls (PR #102587)

2024-08-09 Thread Younan Zhang via cfe-commits
@@ -971,9 +971,12 @@ static const Expr *SubstituteConstraintExpressionWithoutSatisfaction( // this may happen while we're comparing two templates' constraint // equivalence. LocalInstantiationScope ScopeForParameters(S); - if (auto *FD = DeclInfo.getDecl()->getAsFunctio

[clang] [clang-tools-extra] [clang-tidy] Add support for bsl::optional (PR #101450)

2024-08-09 Thread Chris Cotter via cfe-commits
@@ -38,10 +38,22 @@ namespace clang { namespace dataflow { -static bool isTopLevelNamespaceWithName(const NamespaceDecl &NS, -llvm::StringRef Name) { - return NS.getDeclName().isIdentifier() && NS.getName() == Name && - NS.getPa

[clang] [clang] Use llvm::is_contained (NFC) (PR #102720)

2024-08-09 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/102720 None >From 4f216905a659d4cd323721d9457f19d646b07f9e Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Fri, 9 Aug 2024 21:51:04 -0700 Subject: [PATCH] [clang] Use llvm::is_contained (NFC) --- clang/lib/D

[clang] [clang] Use llvm::is_contained (NFC) (PR #102720)

2024-08-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format @llvm/pr-subscribers-clang-driver Author: Kazu Hirata (kazutakahirata) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/102720.diff 2 Files Affected: - (modified) clang/lib/Driver/Driver.cpp (+1-1) - (modified) clang/li

[clang] [clang] Use llvm::is_contained (NFC) (PR #102720)

2024-08-09 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay approved this pull request. https://github.com/llvm/llvm-project/pull/102720 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [PGO][OpenMP] Instrumentation for GPU devices (Revision of #76587) (PR #102691)

2024-08-09 Thread Ethan Luis McDonough via cfe-commits
https://github.com/EthanLuisMcDonough updated https://github.com/llvm/llvm-project/pull/102691 >From 24b1a99a1c014e1015fbba137430c5c6f3e414c5 Mon Sep 17 00:00:00 2001 From: Ethan Luis McDonough Date: Fri, 28 Jun 2024 12:39:19 -0500 Subject: [PATCH 1/5] Changes from old gpuprof branch --- clan

[clang] [Clang][Concepts] Fix a constraint comparison regression for out-of-line ClassTemplateDecls (PR #102587)

2024-08-09 Thread Qizhi Hu via cfe-commits
@@ -599,3 +599,39 @@ template unsigned long DerivedCollection::index() {} } // namespace GH72557 + +namespace GH102320 { + +template +concept Constrained = true; + +template class C { + template > class D; + template +requires Constrained + class E; +}; + +template

[clang] 7a6acd9 - [clang] Use llvm::is_contained (NFC) (#102720)

2024-08-09 Thread via cfe-commits
Author: Kazu Hirata Date: 2024-08-09T22:39:19-07:00 New Revision: 7a6acd9844d61e48cbfecbdd1cbbb53080fc7059 URL: https://github.com/llvm/llvm-project/commit/7a6acd9844d61e48cbfecbdd1cbbb53080fc7059 DIFF: https://github.com/llvm/llvm-project/commit/7a6acd9844d61e48cbfecbdd1cbbb53080fc7059.diff L

[clang] [clang] Use llvm::is_contained (NFC) (PR #102720)

2024-08-09 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/102720 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Concepts] Fix a constraint comparison regression for out-of-line ClassTemplateDecls (PR #102587)

2024-08-09 Thread Younan Zhang via cfe-commits
@@ -599,3 +599,39 @@ template unsigned long DerivedCollection::index() {} } // namespace GH72557 + +namespace GH102320 { + +template +concept Constrained = true; + +template class C { + template > class D; + template +requires Constrained + class E; +}; + +template

[clang] [Clang][Concepts] Fix a constraint comparison regression for out-of-line ClassTemplateDecls (PR #102587)

2024-08-09 Thread Younan Zhang via cfe-commits
@@ -599,3 +599,39 @@ template unsigned long DerivedCollection::index() {} } // namespace GH72557 + +namespace GH102320 { + +template +concept Constrained = true; + +template class C { + template > class D; + template +requires Constrained + class E; +}; + +template

[clang] [clang][Interp] Start implementing unions and changing the active member (PR #102723)

2024-08-09 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/102723 None >From 5d00cf049b64bf31a6039c1c4761dca64483a4f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Fri, 9 Aug 2024 15:30:30 +0200 Subject: [PATCH] [clang][Interp] Start implementing unions

[clang] [clang][Interp] Start implementing unions and changing the active member (PR #102723)

2024-08-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/102723.diff 10 Files Affected: - (modified) clang/lib/AST/Interp/Compiler.cpp (+10-6) - (modified) clang/lib/AST/Interp/Descriptor.cpp (+30-19) -

[clang] [clang-format] Fix a bug in annotating CastRParen (PR #102261)

2024-08-09 Thread Pierre Jolivet via cfe-commits
prj- wrote: This introduced a regression though. ```diff - for (i = 0, k = 1; i < ((PetscInt)local_n0) * partial_dim; i++, k++) { + for (i = 0, k = 1; i < ((PetscInt)local_n0)*partial_dim; i++, k++) { ``` https://github.com/llvm/llvm-project/pull/102261

[clang] [clang-format] Fix a bug in annotating CastRParen (PR #102261)

2024-08-09 Thread Pierre Jolivet via cfe-commits
prj- wrote: Nevermind, this bug (not sure if it's a bug or not) is already present in clang-format 18. See https://github.com/llvm/llvm-project/issues/102727. https://github.com/llvm/llvm-project/pull/102261 ___ cfe-commits mailing list cfe-commits@li

[clang] [clang-format] Fix a serious bug in `git clang-format -f` (PR #102629)

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

<    1   2   3   4   5