clang
23.0.0git
lib
StaticAnalyzer
Checkers
LifetimeModeling.h
Go to the documentation of this file.
1
#ifndef LLVM_CLANG_LIB_STATICANALYZER_CHECKERS_LIFETIMEMODELING_H
2
#define LLVM_CLANG_LIB_STATICANALYZER_CHECKERS_LIFETIMEMODELING_H
3
4
#include "
clang/StaticAnalyzer/Core/PathSensitive/CheckerContext.h
"
5
#include "
clang/StaticAnalyzer/Core/PathSensitive/MemRegion.h
"
6
#include "
clang/StaticAnalyzer/Core/PathSensitive/SVals.h
"
7
#include <vector>
8
9
namespace
clang::ento::lifetime_modeling
{
10
/// Returns the set of lifetime sources bound to \p Source that are dangling
11
/// stack regions.
12
std::vector<const MemRegion *>
13
getDanglingRegionsAfterReturn
(
SVal
Source,
ProgramStateRef
State,
14
CheckerContext
&
C
);
15
16
}
// namespace clang::ento::lifetime_modeling
17
18
#endif
// LLVM_CLANG_LIB_STATICANALYZER_CHECKERS_LIFETIMEMODELING_H
CheckerContext.h
MemRegion.h
SVals.h
clang::ento::CheckerContext
Definition
CheckerContext.h:24
clang::ento::SVal
SVal - This represents a symbolic expression, which can be either an L-value or an R-value.
Definition
SVals.h:57
clang::ento::lifetime_modeling
Definition
LifetimeModeling.h:9
clang::ento::lifetime_modeling::getDanglingRegionsAfterReturn
std::vector< const MemRegion * > getDanglingRegionsAfterReturn(SVal Source, ProgramStateRef State, CheckerContext &C)
Returns the set of lifetime sources bound to Source that are dangling stack regions.
Definition
LifetimeModeling.cpp:46
clang::ento::ProgramStateRef
IntrusiveRefCntPtr< const ProgramState > ProgramStateRef
Definition
ProgramState_Fwd.h:37
clang::LinkageSpecLanguageIDs::C
@ C
Definition
DeclCXX.h:3028
Generated on
for clang by
1.14.0