clang 17.0.0git
|
#include "clang/AST/CharUnits.h"
#include "clang/StaticAnalyzer/Checkers/BuiltinCheckerRegistration.h"
#include "clang/StaticAnalyzer/Checkers/Taint.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/APSIntType.h"
#include "clang/StaticAnalyzer/Core/PathSensitive/CheckerContext.h"
#include "clang/StaticAnalyzer/Core/PathSensitive/DynamicExtent.h"
#include "clang/StaticAnalyzer/Core/PathSensitive/ExprEngine.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/Support/raw_ostream.h"
#include <optional>
Go to the source code of this file.
Functions | |
static SVal | computeExtentBegin (SValBuilder &svalBuilder, const MemRegion *region) |
static std::pair< NonLoc, nonloc::ConcreteInt > | getSimplifiedOffsets (NonLoc offset, nonloc::ConcreteInt extent, SValBuilder &svalBuilder) |
static SVal | getValue (SVal val, SValBuilder &svalBuilder) |
static SVal | scaleValue (ProgramStateRef state, NonLoc baseVal, CharUnits scaling, SValBuilder &sb) |
static SVal | addValue (ProgramStateRef state, SVal x, SVal y, SValBuilder &svalBuilder) |
|
static |
Definition at line 293 of file ArrayBoundCheckerV2.cpp.
References clang::ento::SVal::castAs(), clang::ento::SValBuilder::evalBinOpNN(), clang::ento::SValBuilder::getArrayIndexType(), and clang::ento::SVal::isUnknownOrUndef().
|
static |
Definition at line 72 of file ArrayBoundCheckerV2.cpp.
References clang::ento::MemRegion::getKind(), clang::ento::MemRegion::getMemorySpace(), and clang::ento::SValBuilder::makeZeroArrayIndex().
|
static |
Definition at line 86 of file ArrayBoundCheckerV2.cpp.
References clang::ento::APSIntType::convert(), clang::ento::SVal::getAs(), getSimplifiedOffsets(), clang::ento::nonloc::ConcreteInt::getValue(), and clang::ento::SValBuilder::makeIntVal().
Referenced by getSimplifiedOffsets().
|
inlinestatic |
Definition at line 277 of file ArrayBoundCheckerV2.cpp.
References clang::ento::SVal::isUndef(), and clang::ento::SValBuilder::makeZeroArrayIndex().
Referenced by clang::ento::SimpleConstraintManager::assumeInclusiveRangeInternal(), clang::ento::nonloc::CompoundVal::begin(), clang::ento::nonloc::CompoundVal::end(), clang::tooling::OptionRequirement< OptionType >::evaluate(), clang::ento::StoreManager::getLValueElement(), clang::threadSafety::getSourceLiteralString(), nodeToCommandLine(), clang::APValue::Profile(), clang::ento::shouldCompletelyUnroll(), clang::ento::ExprEngine::VisitLogicalExpr(), and clang::ento::ExprEngine::VisitUnaryOperator().
|
inlinestatic |
Definition at line 283 of file ArrayBoundCheckerV2.cpp.
References clang::ento::SValBuilder::evalBinOpNN(), clang::ento::SValBuilder::getArrayIndexType(), clang::CharUnits::getQuantity(), and clang::ento::SValBuilder::makeArrayIndex().