[clang-tools-extra] Feature/labmda uaf (PR #145307)

2025-06-23 Thread Vasiliy Kulikov via cfe-commits
segoon wrote: Sorry, this PR was not indended to be merged as is =( sorry for the noise https://github.com/llvm/llvm-project/pull/145307 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] Feature/labmda uaf (PR #145307)

2025-06-23 Thread Vasiliy Kulikov via cfe-commits
https://github.com/segoon closed https://github.com/llvm/llvm-project/pull/145307 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] Feature/labmda uaf (PR #145307)

2025-06-23 Thread Baranov Victor via cfe-commits
vbvictor wrote: I suppose this check is specific to this https://github.com/userver-framework/userver framework, so we can't accept it in clang-tidy in current format. https://github.com/llvm/llvm-project/pull/145307 ___ cfe-commits mailing list cfe-

[clang-tools-extra] Feature/labmda uaf (PR #145307)

2025-06-23 Thread via cfe-commits
@@ -124,6 +124,11 @@ New checks pointer and store it as class members without handle the copy and move constructors and the assignments. +- New :doc:`bugprone-taxi-async-use-after-free + ` check. + + Use-after-free for engine::Async. EugeneZelenko wrote:

[clang-tools-extra] Feature/labmda uaf (PR #145307)

2025-06-23 Thread via cfe-commits
@@ -0,0 +1,6 @@ +.. title:: clang-tidy - bugprone-taxi-async-use-after-free + +bugprone-taxi-async-use-after-free +== + +FIXME: Describe what patterns does the check detect and why. Give examples. EugeneZelenko wrote: Missing docum

[clang-tools-extra] Feature/labmda uaf (PR #145307)

2025-06-23 Thread via cfe-commits
@@ -0,0 +1,58 @@ +//===--- TaxiAsyncUseAfterFreeCheck.cpp - clang-tidy --===// +// +// 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-tools-extra] Feature/labmda uaf (PR #145307)

2025-06-23 Thread via cfe-commits
@@ -0,0 +1,58 @@ +//===--- TaxiAsyncUseAfterFreeCheck.cpp - clang-tidy --===// +// +// 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-tools-extra] Feature/labmda uaf (PR #145307)

2025-06-23 Thread via cfe-commits
@@ -0,0 +1,58 @@ +//===--- TaxiAsyncUseAfterFreeCheck.cpp - clang-tidy --===// +// +// 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-tools-extra] Feature/labmda uaf (PR #145307)

2025-06-23 Thread Baranov Victor via cfe-commits
vbvictor wrote: Is this unfinished work? I'd suggest to covert this to draft. https://github.com/llvm/llvm-project/pull/145307 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] Feature/labmda uaf (PR #145307)

2025-06-23 Thread Vasiliy Kulikov via cfe-commits
https://github.com/segoon updated https://github.com/llvm/llvm-project/pull/145307 >From 546567ee93c1c0c0de5e34a1ec4d7c2ccfd081c8 Mon Sep 17 00:00:00 2001 From: Vasily Kulikov Date: Mon, 12 May 2025 20:36:43 +0300 Subject: [PATCH 1/3] clang-tidy: add bugprone-taxi-async-use-after-free --- ...

[clang-tools-extra] Feature/labmda uaf (PR #145307)

2025-06-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Vasiliy Kulikov (segoon) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/145307.diff 8 Files Affected: - (modified) clang-tools-extra/clang-tidy/bugprone/BugproneTidyModule.cpp (+3) - (modified) clang-tool

[clang-tools-extra] Feature/labmda uaf (PR #145307)

2025-06-23 Thread Vasiliy Kulikov via cfe-commits
https://github.com/segoon created https://github.com/llvm/llvm-project/pull/145307 None >From 546567ee93c1c0c0de5e34a1ec4d7c2ccfd081c8 Mon Sep 17 00:00:00 2001 From: Vasily Kulikov Date: Mon, 12 May 2025 20:36:43 +0300 Subject: [PATCH 1/2] clang-tidy: add bugprone-taxi-async-use-after-free --