[clang] [NFC][LifetimeSafety]: Track assignment history within a single CFGBlock (PR #196075)
Utkarsh Saxena via cfe-commits
cfe-commits at lists.llvm.org
Thu May 7 23:47:59 PDT 2026
================
@@ -0,0 +1,36 @@
+//===- AssignmentQuery.cpp - C++ Lifetime Safety Checker --------*- 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 defines functions for tracing assignment history,
+// as well as future data structures or other helper functions.
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_CLANG_ANALYSIS_ANALYSES_ASSIGNMENTQUERY_H
+#define LLVM_CLANG_ANALYSIS_ANALYSES_ASSIGNMENTQUERY_H
+
+#include "clang/Analysis/Analyses/LifetimeSafety/Facts.h"
+#include "clang/Analysis/Analyses/LifetimeSafety/LoanPropagation.h"
+
+namespace clang::lifetimes::internal {
+
+using AssignmentUnit = Origin;
----------------
usx95 wrote:
Let's inline this and use `OriginID` instead.
https://github.com/llvm/llvm-project/pull/196075
More information about the cfe-commits
mailing list