[clang] [analyzer] Implement LifetimeModeling checker and refactor UseAfterLifetimeEnd (PR #205951)
Gábor Horváth via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 30 03:45:03 PDT 2026
================
@@ -0,0 +1,21 @@
+#ifndef LLVM_CLANG_INCLUDE_STATICANALYZER_CHECKERS_LIFETIMEMODELING_H
+#define LLVM_CLANG_INCLUDE_STATICANALYZER_CHECKERS_LIFETIMEMODELING_H
+
+#include "clang/StaticAnalyzer/Core/PathSensitive/MemRegion.h"
+#include "clang/StaticAnalyzer/Core/PathSensitive/SVals.h"
+#include "clang/StaticAnalyzer/Core/PathSensitive/SymbolManager.h"
+#include <vector>
+
+namespace clang {
----------------
Xazax-hun wrote:
Nit: use nested namespaces like `namespace clang::ento::lifetimemodeling {`.
https://github.com/llvm/llvm-project/pull/205951
More information about the cfe-commits
mailing list