[clang] [clang] Implement lifetime analysis for lifetime_capture_by(X) (PR #115921)

Boaz Brickner via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 15 06:09:41 PST 2024


================
@@ -0,0 +1,220 @@
+// RUN: %clang_cc1 --std=c++20 -fsyntax-only -Wdangling -Wdangling-field -Wreturn-stack-address -verify %s
+
+#include "Inputs/lifetime-analysis.h"
----------------
bricknerb wrote:

Perhaps let's split the test file that checks the capture-by on the standard library from a test file that checks the capture-by in a self contained way (without the include that imitates the standard library)?

https://github.com/llvm/llvm-project/pull/115921


More information about the cfe-commits mailing list