clang 20.0.0git
|
#include "clang/AST/ExprCXX.h"
#include "clang/Basic/SourceManager.h"
#include "clang/StaticAnalyzer/Checkers/BuiltinCheckerRegistration.h"
#include "clang/StaticAnalyzer/Core/BugReporter/BugType.h"
#include "clang/StaticAnalyzer/Core/Checker.h"
#include "clang/StaticAnalyzer/Core/CheckerManager.h"
#include "clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h"
#include "clang/StaticAnalyzer/Core/PathSensitive/CheckerContext.h"
#include "clang/StaticAnalyzer/Core/PathSensitive/ProgramState.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/Support/raw_ostream.h"
Go to the source code of this file.
Macros | |
#define | REGISTER_CHECKER(name) |
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. | |
#define REGISTER_CHECKER | ( | name | ) |
Definition at line 543 of file StackAddrEscapeChecker.cpp.
Definition at line 308 of file StackAddrEscapeChecker.cpp.
References clang::ento::MemRegion::getBaseRegion().
|
static |
Definition at line 291 of file StackAddrEscapeChecker.cpp.
References clang::ento::MemRegion::getAs(), clang::ento::MemRegion::getBaseRegion(), clang::ento::MemRegion::getMemorySpace(), and getStackOrGlobalSpaceRegion().
Referenced by getStackOrGlobalSpaceRegion(), and printReferrer().
Check whether Region
refers to a freshly minted symbol after an opaque function call.
Definition at line 361 of file StackAddrEscapeChecker.cpp.
References clang::ento::MemRegion::getAs().
|
static |
Definition at line 319 of file StackAddrEscapeChecker.cpp.
References clang::ento::MemRegion::canPrintPretty(), clang::ento::MemRegion::getBaseRegion(), getStackOrGlobalSpaceRegion(), and clang::ento::MemRegion::printPretty().