[clang] [clang-tools-extra] [analyzer][clang-tidy][NFC] Clean up eagerly-assume handling (PR #112209)

2024-10-14 Thread via cfe-commits
@@ -3742,20 +3742,18 @@ void ExprEngine::evalLocation(ExplodedNodeSet &Dst, BldrTop.addNodes(Tmp); } -std::pair -ExprEngine::geteagerlyAssumeBinOpBifurcationTags() { - static SimpleProgramPointTag - eagerlyAssumeBinOpBifurcationTrue(TagProviderName, -

[clang] [clang-tools-extra] [analyzer][clang-tidy][NFC] Clean up eagerly-assume handling (PR #112209)

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

[clang] [lld] [llvm] [WebAssembly] Define a new "Trail1" CPU (PR #112035)

2024-10-14 Thread Dan Gohman via cfe-commits
https://github.com/sunfishcode updated https://github.com/llvm/llvm-project/pull/112035 >From 8db1c6225cb938433f57414594cc3accae39f03c Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Fri, 11 Oct 2024 04:30:32 -0700 Subject: [PATCH 1/6] [WebAssembly] Define a new "Trail1" CPU First, define some

[clang] Focused taint (PR #112215)

2024-10-14 Thread Daniel Krupp via cfe-commits
https://github.com/dkrupp converted_to_draft https://github.com/llvm/llvm-project/pull/112215 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2024-10-14 Thread via cfe-commits
@@ -7,3 +7,15 @@ namespace PR5840 { int Base = 10; struct Derived : Base {}; } + +namespace issue_16855 { + struct x {}; + namespace + { + namespace x + { + struct y : x + {}; + } + } +} Sirraide wrote: nit: missing new

[clang] [Clang] Diagnose additional ObjC statements as function effect violations (PR #112148)

2024-10-14 Thread Doug Wyatt via cfe-commits
https://github.com/dougsonos updated https://github.com/llvm/llvm-project/pull/112148 >From f34e4ac55d04bcd8e34bef57afec5a39fbf2acb9 Mon Sep 17 00:00:00 2001 From: Doug Wyatt Date: Sun, 13 Oct 2024 11:35:10 -0700 Subject: [PATCH 1/3] [Clang] Diagnose ObjC @autoreleasepool statements as functio

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

2024-10-14 Thread via cfe-commits
@@ -357,9 +357,10 @@ ParsedType Sema::getTypeName(const IdentifierInfo &II, SourceLocation NameLoc, return nullptr; } - // FIXME: LookupNestedNameSpecifierName isn't the right kind of - // lookup for class-names. - LookupNameKind Kind = isClassName ? LookupNestedNa

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

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

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

2024-10-14 Thread via cfe-commits
https://github.com/Sirraide commented: I think the implementation is fine. This still needs a release note, though. https://github.com/llvm/llvm-project/pull/112166 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/

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

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

[clang] [clang-tools-extra] [analyzer][clang-tidy][NFC] Clean up eagerly-assume handling (PR #112209)

2024-10-14 Thread Donát Nagy via cfe-commits
@@ -583,14 +583,14 @@ class ExprEngine { ExplodedNode *Pred, ExplodedNodeSet &Dst); - /// evalEagerlyAssumeBinOpBifurcation - Given the nodes in 'Src', eagerly assume symbolic - /// expressions of the form 'x

[clang] [clang-tools-extra] [analyzer][clang-tidy][NFC] Clean up eagerly-assume handling (PR #112209)

2024-10-14 Thread Donát Nagy via cfe-commits
@@ -3767,28 +3765,27 @@ void ExprEngine::evalEagerlyAssumeBinOpBifurcation(ExplodedNodeSet &Dst, continue; } -ProgramStateRef state = Pred->getState(); -SVal V = state->getSVal(Ex, Pred->getLocationContext()); +ProgramStateRef State = Pred->getState(); +

[clang-tools-extra] Add option to exclude headers from clang-tidy analysis (PR #91400)

2024-10-14 Thread Justin Cady via cfe-commits
justincady wrote: @Baiyi27 Could you please file an issue as opposed to adding it as a comment here? It may or may not be related to this original change, and separating it out into its own discussion would be helpful. Thanks! https://github.com/llvm/llvm-project/pull/91400 ___

[clang] [clang-tools-extra] [analyzer][clang-tidy][NFC] Clean up eagerly-assume handling (PR #112209)

2024-10-14 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat updated https://github.com/llvm/llvm-project/pull/112209 From ea6ab3fe84e5ac89f82def877c37c8409889d01d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Don=C3=A1t=20Nagy?= Date: Mon, 14 Oct 2024 15:34:55 +0200 Subject: [PATCH 1/4] [analyzer][clang-tidy][NFC] Clean up eagerl

[clang] Make [[clang::lifetimebound]] work for expressions coming from default arguments (PR #112047)

2024-10-14 Thread via cfe-commits
@@ -34,13 +38,20 @@ namespace usage_ok { struct A { A(); A(int); +A(const char*, const int& def3 [[clang::lifetimebound]] = 0); // #def3 int *class_member() [[clang::lifetimebound]]; operator int*() [[clang::lifetimebound]]; +static const int &defaul

[clang] Make [[clang::lifetimebound]] work for expressions coming from default arguments (PR #112047)

2024-10-14 Thread via cfe-commits
https://github.com/higher-performance updated https://github.com/llvm/llvm-project/pull/112047 >From d643b4f6301705790a42db110adbca596ae29c6e Mon Sep 17 00:00:00 2001 From: higher-performance Date: Fri, 11 Oct 2024 17:09:13 -0400 Subject: [PATCH] Make [[clang::lifetimebound]] work for expressio

[clang] Make [[clang::lifetimebound]] work for expressions coming from default arguments (PR #112047)

2024-10-14 Thread via cfe-commits
@@ -465,17 +466,27 @@ static void visitFunctionCallArguments(IndirectLocalPath &Path, Expr *Call, for (unsigned I = 0, N = std::min(Callee->getNumParams(), Args.size()); I != N; ++I) { +Expr *Arg = Args[I]; +auto *DAE = dyn_cast(Arg); +if (

[clang] Make [[clang::lifetimebound]] work for expressions coming from default arguments (PR #112047)

2024-10-14 Thread via cfe-commits
@@ -34,13 +38,20 @@ namespace usage_ok { struct A { A(); A(int); +A(const char*, const int& def3 [[clang::lifetimebound]] = 0); // #def3 int *class_member() [[clang::lifetimebound]]; operator int*() [[clang::lifetimebound]]; +static const int &defaul

[clang] [clang-tools-extra] [analyzer][clang-tidy][NFC] Clean up eagerly-assume handling (PR #112209)

2024-10-14 Thread Donát Nagy via cfe-commits
@@ -3742,23 +3742,20 @@ void ExprEngine::evalLocation(ExplodedNodeSet &Dst, BldrTop.addNodes(Tmp); } -std::pair -ExprEngine::geteagerlyAssumeBinOpBifurcationTags() { - static SimpleProgramPointTag - eagerlyAssumeBinOpBifurcationTrue(TagProviderName, -

[clang] [clang][bytecode] Fix __builtin_convertvector with float-cast (PR #112238)

2024-10-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes Comparing their PrimTypes isn't enough in this case. We can have a floating cast here as well. --- Full diff: https://github.com/llvm/llvm-project/pull/112238.diff 2 Files Affected: - (modified) clang/lib

[clang] [clang][bytecode] Fix __builtin_convertvector with float-cast (PR #112238)

2024-10-14 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/112238 Comparing their PrimTypes isn't enough in this case. We can have a floating cast here as well. >From 7c9ea06f6bda11c3c41477028fd39453acfd8954 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date:

[clang] [llvm] [CUDA] Add support for CUDA-12.6 and sm_100 (PR #112028)

2024-10-14 Thread Artem Belevich via cfe-commits
https://github.com/Artem-B updated https://github.com/llvm/llvm-project/pull/112028 >From 17989b287b28fa1234dc7aca726f973086b687f2 Mon Sep 17 00:00:00 2001 From: Sergey Kozub Date: Tue, 2 Jul 2024 02:44:56 -0700 Subject: [PATCH 1/2] [CUDA] Add support for CUDA-12.6 and sm_100 --- clang/docs/R

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

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

[clang] [HLSL] Make HLSLAttributedResourceType canonical and add code paths to convert HLSL types to DirectX target types (PR #110327)

2024-10-14 Thread Helena Kotas via cfe-commits
https://github.com/hekota updated https://github.com/llvm/llvm-project/pull/110327 >From 4f235c0e9c539cdaa2bab9a7f8228f33c0fea2b8 Mon Sep 17 00:00:00 2001 From: Helena Kotas Date: Thu, 26 Sep 2024 14:34:16 -0700 Subject: [PATCH 1/9] Add codegen for existing resource types and make HLSLAttribut

[clang] [Clang][Sema] Fix templated array size calculation. (PR #96464)

2024-10-14 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik approved this pull request. If you have approvals you don't have to wait for other reviewers unless they have made a comment that required a change and you them to confirm the fix or they explicitly blocked the review. https://github.com/llvm/llvm-project/pull/96464

[clang] [llvm] [CUDA] Add support for CUDA-12.6 and sm_100 (PR #112028)

2024-10-14 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 approved this pull request. I swear there's got to be a way to automate this. https://github.com/llvm/llvm-project/pull/112028 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/lis

[clang] [clang-tools-extra] [analyzer][clang-tidy][NFC] Clean up eagerly-assume handling (PR #112209)

2024-10-14 Thread via cfe-commits
=?utf-8?q?Donát?= Nagy , =?utf-8?q?Donát?= Nagy , =?utf-8?q?Donát?= Nagy Message-ID: In-Reply-To: @@ -3742,23 +3742,20 @@ void ExprEngine::evalLocation(ExplodedNodeSet &Dst, BldrTop.addNodes(Tmp); } -std::pair -ExprEngine::geteagerlyAssumeBinOpBifurcationTags() { - stati

[clang] [clang] Track function template instantiation from definition (PR #112241)

2024-10-14 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov created https://github.com/llvm/llvm-project/pull/112241 This fixes instantiation of definition for friend function templates, when the declaration found and the one containing the definition have different template contexts. In these cases, the the function declar

[clang] [clang] Track function template instantiation from definition (PR #112241)

2024-10-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-modules @llvm/pr-subscribers-clang Author: Matheus Izvekov (mizvekov) Changes This fixes instantiation of definition for friend function templates, when the declaration found and the one containing the definition have different template contexts.

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

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

[clang-tools-extra] [clang-tidy] [docs] Replace _not_ in reserved-identifier.rst with *not* (PR #112162)

2024-10-14 Thread Carlos Galvez via cfe-commits
carlosgalvezp wrote: > @carlosgalvezp That message is because I got a new computer and it wasn't > properly setup yet. I would like to remove it if possible. What is the > process for updating a commit message in this repo? Should I just force push > a modified message to this branch? I'm not

[clang] Make [[clang::lifetimebound]] work for expressions coming from default arguments (PR #112047)

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

[clang] [compiler-rt] [lld] [llvm] [Coverage][WebAssembly] Add initial support for WebAssembly/WASI (PR #111332)

2024-10-14 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `sanitizer-windows` running on `sanitizer-windows` while building `clang,compiler-rt,lld,llvm` at step 4 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/107/builds/3945 Here is the relevan

[clang] 30a06e8 - [CUDA] Add support for CUDA-12.6 and sm_100 (#112028)

2024-10-14 Thread via cfe-commits
Author: Artem Belevich Date: 2024-10-14T11:51:05-07:00 New Revision: 30a06e8022e9c569989035d192d3aa373753125a URL: https://github.com/llvm/llvm-project/commit/30a06e8022e9c569989035d192d3aa373753125a DIFF: https://github.com/llvm/llvm-project/commit/30a06e8022e9c569989035d192d3aa373753125a.diff

[clang] [llvm] [CUDA] Add support for CUDA-12.6 and sm_100 (PR #112028)

2024-10-14 Thread Artem Belevich via cfe-commits
https://github.com/Artem-B closed https://github.com/llvm/llvm-project/pull/112028 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Diagnose dangling references in std::vector. (PR #111753)

2024-10-14 Thread Haojian Wu via cfe-commits
https://github.com/hokein updated https://github.com/llvm/llvm-project/pull/111753 >From 354b33432d0dafbf54667a9ee973f5b2712c5773 Mon Sep 17 00:00:00 2001 From: Haojian Wu Date: Wed, 9 Oct 2024 21:34:49 +0200 Subject: [PATCH 1/2] [clang] Diagnose the dangling references for vector. --- clang/

[clang] [Clang] Diagnose dangling references in std::vector. (PR #111753)

2024-10-14 Thread Haojian Wu via cfe-commits
@@ -404,7 +404,7 @@ shouldTrackFirstArgumentForConstructor(const CXXConstructExpr *Ctor) { if (LHSRecordDecl->hasAttr()) return true; - if (Ctor->getConstructor()->getNumParams() != 1 || + if (Ctor->getConstructor()->getNumParams() < 1 || hokein wrote

[clang] Make [[clang::lifetimebound]] work for expressions coming from default arguments (PR #112047)

2024-10-14 Thread via cfe-commits
https://github.com/higher-performance updated https://github.com/llvm/llvm-project/pull/112047 >From f2153f0d9da362063c9d8311bb1d653dd51beb98 Mon Sep 17 00:00:00 2001 From: higher-performance Date: Fri, 11 Oct 2024 17:09:13 -0400 Subject: [PATCH] Make [[clang::lifetimebound]] work for expressio

[clang] Make [[clang::lifetimebound]] work for expressions coming from default arguments (PR #112047)

2024-10-14 Thread via cfe-commits
@@ -34,13 +38,20 @@ namespace usage_ok { struct A { A(); A(int); +A(const char*, const int& def3 [[clang::lifetimebound]] = 0); // #def3 int *class_member() [[clang::lifetimebound]]; operator int*() [[clang::lifetimebound]]; +static const int &defaul

[clang] Make [[clang::lifetimebound]] work for expressions coming from default arguments (PR #112047)

2024-10-14 Thread via cfe-commits
https://github.com/higher-performance deleted https://github.com/llvm/llvm-project/pull/112047 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Diagnose dangling references in std::vector. (PR #111753)

2024-10-14 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 approved this pull request. https://github.com/llvm/llvm-project/pull/111753 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] [docs] Replace _not_ in reserved-identifier.rst with *not* (PR #112162)

2024-10-14 Thread Nick Riasanovsky via cfe-commits
https://github.com/njriasan updated https://github.com/llvm/llvm-project/pull/112162 >From e5a70cb2f9d744716e376ec0939645a7b0365ead Mon Sep 17 00:00:00 2001 From: Nicholas Riasanovsky Date: Mon, 14 Oct 2024 01:42:39 -0400 Subject: [PATCH] Replace _not_ in reserved-identifier.rst from the clang-

[clang] [Clang][SYCL] Introduce clang-sycl-link-wrapper to link SYCL offloadi… (PR #112245)

2024-10-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Arvind Sudarsanam (asudarsa) Changes This PR is one of the many PRs in the SYCL upstreaming effort focusing on device code linking during the SYCL offload compilation process. RFC: https://discourse.llvm.org/t/rfc-offloading-design

[clang] [Clang][SYCL] Introduce clang-sycl-link-wrapper to link SYCL offloadi… (PR #112245)

2024-10-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Arvind Sudarsanam (asudarsa) Changes This PR is one of the many PRs in the SYCL upstreaming effort focusing on device code linking during the SYCL offload compilation process. RFC: https://discourse.llvm.org/t/rfc-offloading-design-for-sy

[clang] [Clang][SYCL] Introduce clang-sycl-link-wrapper to link SYCL offloadi… (PR #112245)

2024-10-14 Thread Arvind Sudarsanam via cfe-commits
https://github.com/asudarsa created https://github.com/llvm/llvm-project/pull/112245 …ng device code This PR is one of the many PRs in the SYCL upstreaming effort focusing on device code linking during the SYCL offload compilation process. RFC: https://discourse.llvm.org/t/rfc-offloading-desi

[clang] [Clang][SYCL] Introduce clang-sycl-link-wrapper to link SYCL offloading device code (PR #112245)

2024-10-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-spir-v Author: Arvind Sudarsanam (asudarsa) Changes This PR is one of the many PRs in the SYCL upstreaming effort focusing on device code linking during the SYCL offload compilation process. RFC: https://discourse.llvm.org/t/rfc-offloading-desi

[clang] [Clang][SYCL] Introduce clang-sycl-link-wrapper to link SYCL offloading device code (PR #112245)

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

[clang] [Clang][SYCL] Introduce clang-sycl-link-wrapper to link SYCL offloadi… (PR #112245)

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

[clang-tools-extra] [clang-tidy] [docs] Replace _not_ in reserved-identifier.rst with *not* (PR #112162)

2024-10-14 Thread Nick Riasanovsky via cfe-commits
njriasan wrote: @carlosgalvezp I think the force push fixed it. Could you confirm that you no longer see the second author? Thanks. https://github.com/llvm/llvm-project/pull/112162 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.

[clang] [Clang][SYCL] Introduce clang-sycl-link-wrapper to link SYCL offloading device code (Part 1 of many) (PR #112245)

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

[clang] 0eaccee - [Clang] Diagnose dangling references in std::vector. (#111753)

2024-10-14 Thread via cfe-commits
Author: Haojian Wu Date: 2024-10-14T21:09:00+02:00 New Revision: 0eaccee1800331d6a4a3a58d52325279ca187066 URL: https://github.com/llvm/llvm-project/commit/0eaccee1800331d6a4a3a58d52325279ca187066 DIFF: https://github.com/llvm/llvm-project/commit/0eaccee1800331d6a4a3a58d52325279ca187066.diff LO

[clang] [Clang][SYCL] Introduce clang-sycl-link-wrapper to link SYCL offloading device code (Part 1 of many) (PR #112245)

2024-10-14 Thread Arvind Sudarsanam via cfe-commits
asudarsa wrote: This PR is the first in the list of multiple PRs that will be submitted to add SYCL offloading support using the new offloading model. Upcoming PRs include: 1. SYCL finalization steps that will run after llvm-link will be added to the linking clow inside clang-sycl-link-wrapper.

[clang] [Clang][SYCL] Introduce clang-sycl-link-wrapper to link SYCL offloading device code (Part 1 of many) (PR #112245)

2024-10-14 Thread Arvind Sudarsanam via cfe-commits
asudarsa wrote: @jhuber6 Can you please take a look at this PR when convenient? Thanks for all your inputs in getting this PR ready. Sincerely https://github.com/llvm/llvm-project/pull/112245 ___ cfe-commits mailing list cfe-commits@lists.llvm.org h

[clang] [Clang] Diagnose dangling references in std::vector. (PR #111753)

2024-10-14 Thread Haojian Wu via cfe-commits
https://github.com/hokein closed https://github.com/llvm/llvm-project/pull/111753 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2024-10-14 Thread via cfe-commits
github-actions[bot] wrote: @bricknerb Congratulations on having your first Pull Request (PR) merged into the LLVM Project! Your changes will be combined with recent changes from other authors, then tested by our [build bots](https://lab.llvm.org/buildbot/). If there is a problem with a buil

[clang] Different info in docs in AST methods (PR #112190)

2024-10-14 Thread Mikhnenko Sasha via cfe-commits
https://github.com/4JustMe4 created https://github.com/llvm/llvm-project/pull/112190 [Here](https://github.com/llvm/llvm-project/blob/6a98c4a1602591c942f01dceb3aa29ffd4cf1e5b/clang/include/clang/ASTMatchers/ASTMatchers.h#L4188-L4203) and [here](https://github.com/llvm/llvm-project/blob/6a98c4a

[clang] [clang] Introduce [[clang::lifetime_capture_by(X)]] (PR #111499)

2024-10-14 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 updated https://github.com/llvm/llvm-project/pull/111499 >From 4951a7b9b87f9800bc3629bd44f65141ba98c6b0 Mon Sep 17 00:00:00 2001 From: Utkarsh Saxena Date: Tue, 8 Oct 2024 08:19:56 + Subject: [PATCH 1/7] start working on lifetime capture --- clang/include/clang/Ba

[clang] Reapply "[Clang][Sema] Refactor collection of multi-level template argument lists (#106585, #111173)" (PR #111852)

2024-10-14 Thread Ilya Biryukov via cfe-commits
ilya-biryukov wrote: We are seeing some internal tests (and tools) failing because the canonical declaration for template specializations has changed in cases like this: ```cpp template void Foo(T target); // #1 template void Foo(T defn) {} // #2 template <> void Foo(int specialization) {}

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

2024-10-14 Thread Erich Keane via cfe-commits
https://github.com/erichkeane approved this pull request. https://github.com/llvm/llvm-project/pull/112033 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2024-10-14 Thread Erich Keane via cfe-commits
https://github.com/erichkeane approved this pull request. https://github.com/llvm/llvm-project/pull/112177 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HIP] Replace use of `llvm-mc` with `clang` (PR #112041)

2024-10-14 Thread Matt Arsenault via cfe-commits
arsenm wrote: I fixed an apparent missing test dependency in 1ac6ef5af28b72e534496a9833a2b75a2aba66cc and this commit removed the llvm-mc dependency https://github.com/llvm/llvm-project/pull/112041 ___ cfe-commits mailing list cfe-commits@lists.llvm

[clang] c2d8112 - Silence a "not all control paths return a value" diagnostic; NFC

2024-10-14 Thread Aaron Ballman via cfe-commits
Author: Aaron Ballman Date: 2024-10-14T09:41:42-04:00 New Revision: c2d8112f71d59384d77ac56e278147afc1947ce9 URL: https://github.com/llvm/llvm-project/commit/c2d8112f71d59384d77ac56e278147afc1947ce9 DIFF: https://github.com/llvm/llvm-project/commit/c2d8112f71d59384d77ac56e278147afc1947ce9.diff

[clang] [HIP] Replace use of `llvm-mc` with `clang` (PR #112041)

2024-10-14 Thread Aaron Ballman via cfe-commits
AaronBallman wrote: Thanks, things seem to be better now! https://github.com/llvm/llvm-project/pull/112041 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HIP] Replace use of `llvm-mc` with `clang` (PR #112041)

2024-10-14 Thread Joseph Huber via cfe-commits
jhuber6 wrote: > I fixed an apparent missing test dependency in > [1ac6ef5](https://github.com/llvm/llvm-project/commit/1ac6ef5af28b72e534496a9833a2b75a2aba66cc) > and this commit removed the llvm-mc dependency I probably should've remembered to include removing that in this patch. https://gi

[clang-tools-extra] Add option to exclude headers from clang-tidy analysis (PR #91400)

2024-10-14 Thread SwanBai Lei27 via cfe-commits
Baiyi27 wrote: I found a problem. In my project, I used `vcpkg` to manage the qt5 library. ```c++ #include "qapplication.h" #include "qpushbutton.h" #include "qstring.h" #include "fmt/format.h" class MainWindow: public QWidget { public: MainWindow(QWidget *parent= nullptr) : QWidget(

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

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

[clang] Make [[clang::lifetimebound]] work for expressions coming from default arguments (PR #112047)

2024-10-14 Thread Ilya Biryukov via cfe-commits
ilya-biryukov wrote: cc @usx95 @bricknerb who were looking at the lifetime annotations recently too. https://github.com/llvm/llvm-project/pull/112047 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinf

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

2024-10-14 Thread Gábor Spaits via cfe-commits
spaits wrote: Thank you @Sirraide for reviewing my PR. I have added this change to the release notes and addressed the other comments. https://github.com/llvm/llvm-project/pull/112166 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lis

[clang] Make [[clang::lifetimebound]] work for expressions coming from default arguments (PR #112047)

2024-10-14 Thread via cfe-commits
https://github.com/higher-performance updated https://github.com/llvm/llvm-project/pull/112047 >From 7422a13bbf2a4cd2a7994df77c5c89acb5ea84de Mon Sep 17 00:00:00 2001 From: higher-performance Date: Fri, 11 Oct 2024 17:09:13 -0400 Subject: [PATCH] Make [[clang::lifetimebound]] work for expressio

[clang] [clang] Check null TypeSourceInfo in CreateUnaryExprOrTypeTraitExpr (PR #112111)

2024-10-14 Thread via cfe-commits
https://github.com/Sirraide commented: The implementation lgtm, but this still needs a test and a release note. https://github.com/llvm/llvm-project/pull/112111 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mail

[clang] Reapply "[Clang][Sema] Refactor collection of multi-level template argument lists (#106585, #111173)" (PR #111852)

2024-10-14 Thread Ilya Biryukov via cfe-commits
ilya-biryukov wrote: > @ilya-biryukov When instantiating a template from a member template that was > explicitly specialized for a given implicitly instantiated specialization of > its enclosing class template, we need to keep track of which template was > actually used as the primary template

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

2024-10-14 Thread via cfe-commits
@@ -357,10 +357,12 @@ ParsedType Sema::getTypeName(const IdentifierInfo &II, SourceLocation NameLoc, return nullptr; } - // FIXME: LookupNestedNameSpecifierName isn't the right kind of - // lookup for class-names. - LookupNameKind Kind = isClassName ? LookupNestedN

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

2024-10-14 Thread via cfe-commits
@@ -151,6 +151,8 @@ C++ Language Changes - The builtin type alias ``__builtin_common_type`` has been added to improve the performance of ``std::common_type``. +- During the lookup for a base class name, non-type names are ignored. + Sirraide wrote: This sh

[clang] [clang-tools-extra] [analyzer][clang-tidy][NFC] Clean up eagerly-assume handling (PR #112209)

2024-10-14 Thread Balazs Benics via cfe-commits
steakhal wrote: I want to have a look at this PR tomorrow. https://github.com/llvm/llvm-project/pull/112209 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 09fa2f0 - [Clang] Add explicit visibility symbol macros (#108276)

2024-10-14 Thread via cfe-commits
Author: Thomas Fransham Date: 2024-10-14T18:32:50+03:00 New Revision: 09fa2f012fccb6f1cf2f540856e67f55431da800 URL: https://github.com/llvm/llvm-project/commit/09fa2f012fccb6f1cf2f540856e67f55431da800 DIFF: https://github.com/llvm/llvm-project/commit/09fa2f012fccb6f1cf2f540856e67f55431da800.dif

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

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

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

2024-10-14 Thread Vassil Vassilev via cfe-commits
https://github.com/vgvassilev closed https://github.com/llvm/llvm-project/pull/108276 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

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

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

2024-10-14 Thread Gábor Spaits via cfe-commits
@@ -151,6 +151,8 @@ C++ Language Changes - The builtin type alias ``__builtin_common_type`` has been added to improve the performance of ``std::common_type``. +- During the lookup for a base class name, non-type names are ignored. + spaits wrote: Sorry I d

<    1   2   3   4   5   6