clang: lib/StaticAnalyzer/Checkers/StackAddrEscapeChecker.cpp File Reference (original) (raw)
Go to the source code of this file.
Functions | |
---|---|
static const MemSpaceRegion * | getStackOrGlobalSpaceRegion (const MemRegion *R) |
static const MemRegion * | getOriginBaseRegion (const MemRegion *Reg) |
static std::optional< std::string > | printReferrer (const MemRegion *Referrer) |
static bool | isInvalidatedSymbolRegion (const MemRegion *Region) |
Check whether Region refers to a freshly minted symbol after an opaque function call. | |
◆ REGISTER_CHECKER
| #define REGISTER_CHECKER | ( | | name | ) | | ------------------------- | - | | ---- | - |
Value:
StackAddrEscapeChecker *Chk = Mgr.getChecker(); \
Chk->ChecksEnabled[StackAddrEscapeChecker::CK_##name] = true; \
Chk->CheckNames[StackAddrEscapeChecker::CK_##name] = \
} \
\
bool ento::shouldRegister##name(const CheckerManager &mgr) { return true; }
CheckerNameRef getCurrentCheckerName() const
Definition at line 543 of file StackAddrEscapeChecker.cpp.
◆ getOriginBaseRegion()
◆ getStackOrGlobalSpaceRegion()
◆ isInvalidatedSymbolRegion()
static bool isInvalidatedSymbolRegion ( const MemRegion * Region) | static |
---|
◆ printReferrer()
static std::optional< std::string > printReferrer ( const MemRegion * Referrer) | static |
---|