[clang] [llvm] [analyzer] Implemented a base of detecing lifetimebound annotation (PR #200145)
Balázs Benics via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 8 02:02:56 PDT 2026
================
@@ -0,0 +1,163 @@
+#include "clang/StaticAnalyzer/Checkers/BuiltinCheckerRegistration.h"
+#include "clang/StaticAnalyzer/Core/Checker.h"
+#include "clang/StaticAnalyzer/Core/PathSensitive/CallDescription.h"
+#include "clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h"
+#include "clang/StaticAnalyzer/Core/PathSensitive/CheckerContext.h"
+#include "llvm/Support/raw_ostream.h"
+#include "AllocationState.h"
+#include "clang/Analysis/Analyses/LifetimeSafety/LifetimeAnnotations.h"
+
+
+using namespace clang;
+using namespace ento;
+using namespace clang::lifetimes;
----------------
steakhal wrote:
I think since we are not the primary owners of this namespace, I'd rather not `using` it.
I only expect a couple of calls to such APIs anyway.
https://github.com/llvm/llvm-project/pull/200145
More information about the cfe-commits
mailing list