[clang] [LifetimeSafety] Add missing origins stats for lifetime analysis (PR #166568)
Utkarsh Saxena via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 27 05:57:55 PST 2025
================
@@ -0,0 +1,33 @@
+//===- LifetimeStats.h - Miscellaneous statistics related to lifetime safety
+//analysis ---*- C++ -*-===//
+//
+// 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: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------------------------------===//
+//
+// This file declares the data structures and utility function for collection of
+// staticstics related to Lifetimesafety analysis.
+//
+//===----------------------------------------------------------------------------------------------===//
+
+#ifndef LLVM_CLANG_ANALYSIS_ANALYSES_LIFETIMESAFETY_LIFETIMESTATS_H
+#define LLVM_CLANG_ANALYSIS_ANALYSES_LIFETIMESAFETY_LIFETIMESTATS_H
+
+#include "llvm/ADT/StringMap.h"
+
+namespace clang::lifetimes {
+/// A structure to hold the statistics related to LifetimeAnalysis.
+/// Currently it holds only the missing origin details.
----------------
usx95 wrote:
nit: drop this line as the field documentation makes this clear.
https://github.com/llvm/llvm-project/pull/166568
More information about the cfe-commits
mailing list