| /freebsd-12.1/contrib/llvm/include/llvm/Object/ |
| H A D | ObjectFile.h | 44 class SymbolRef; variable 82 friend class SymbolRef; variable 126 bool containsSymbol(SymbolRef S) const; 141 class SymbolRef : public BasicSymbolRef { 154 SymbolRef() = default; 172 Expected<SymbolRef::Type> getType() const; 188 const SymbolRef *operator->() const { 193 const SymbolRef &operator*() const { 220 friend class SymbolRef; variable 356 inline SymbolRef::SymbolRef(DataRefImpl SymbolP, const ObjectFile *Owner) in SymbolRef() function [all …]
|
| H A D | IRSymtab.h | 247 class SymbolRef; 257 using symbol_range = iterator_range<object::content_iterator<SymbolRef>>; 291 class Reader::SymbolRef : public Symbol { 316 SymbolRef(const storage::Symbol *SymI, const storage::Symbol *SymE, in SymbolRef() function 329 bool operator==(const SymbolRef &Other) const { return SymI == Other.SymI; } 333 return {SymbolRef(Symbols.begin(), Symbols.end(), Uncommons.begin(), this), in symbols() 334 SymbolRef(Symbols.end(), Symbols.end(), nullptr, this)}; in symbols() 341 return {SymbolRef(MBegin, MEnd, Uncommons.begin() + M.UncBegin, this), in module_symbols() 342 SymbolRef(MEnd, MEnd, nullptr, this)}; in module_symbols()
|
| H A D | ELFObjectFile.h | 133 ELFSymbolRef(const SymbolRef &B) : SymbolRef(B) { in ELFSymbolRef() 546 Expected<SymbolRef::Type> 552 return SymbolRef::ST_Unknown; in getSymbolType() 554 return SymbolRef::ST_Debug; in getSymbolType() 556 return SymbolRef::ST_File; in getSymbolType() 558 return SymbolRef::ST_Function; in getSymbolType() 562 return SymbolRef::ST_Data; in getSymbolType() 564 return SymbolRef::ST_Other; in getSymbolType() 575 Result |= SymbolRef::SF_Global; in getSymbolFlags() 578 Result |= SymbolRef::SF_Weak; in getSymbolFlags() [all …]
|
| /freebsd-12.1/contrib/llvm/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
| H A D | RangedConstraintManager.h | 129 using ConstraintRangeTy = llvm::ImmutableMap<SymbolRef, RangeSet>; 149 ProgramStateRef assumeSym(ProgramStateRef State, SymbolRef Sym, 173 virtual ProgramStateRef assumeSymNE(ProgramStateRef State, SymbolRef Sym, 177 virtual ProgramStateRef assumeSymEQ(ProgramStateRef State, SymbolRef Sym, 181 virtual ProgramStateRef assumeSymLT(ProgramStateRef State, SymbolRef Sym, 185 virtual ProgramStateRef assumeSymGT(ProgramStateRef State, SymbolRef Sym, 189 virtual ProgramStateRef assumeSymLE(ProgramStateRef State, SymbolRef Sym, 193 virtual ProgramStateRef assumeSymGE(ProgramStateRef State, SymbolRef Sym, 198 ProgramStateRef State, SymbolRef Sym, const llvm::APSInt &From, 202 ProgramStateRef State, SymbolRef Sym, const llvm::APSInt &From, [all …]
|
| H A D | SymbolManager.h | 129 SymbolRef parentSymbol; 140 SymbolRef getParentSymbol() const { return parentSymbol; } in getParentSymbol() 540 void addSymbolDependency(const SymbolRef Primary, const SymbolRef Dependent); 555 using SymbolSetTy = llvm::DenseSet<SymbolRef>; 556 using SymbolMapTy = llvm::DenseMap<SymbolRef, SymbolStatus>; 584 bool isLive(SymbolRef sym); 594 void markLive(SymbolRef sym); 603 void markInUse(SymbolRef sym); 614 bool isDead(SymbolRef sym) { in isDead() 627 void markDependentsLive(SymbolRef sym); [all …]
|
| H A D | SMTConstraintManager.h | 38 ProgramStateRef assumeSym(ProgramStateRef State, SymbolRef Sym, in assumeSym() 57 ProgramStateRef assumeSymInclusiveRange(ProgramStateRef State, SymbolRef Sym, in assumeSymInclusiveRange() 66 ProgramStateRef assumeSymUnsupported(ProgramStateRef State, SymbolRef Sym, in assumeSymUnsupported() 76 ConditionTruthVal checkNull(ProgramStateRef State, SymbolRef Sym) override { in checkNull() 105 SymbolRef Sym) const override { in getSymVal() 152 SymbolRef CastSym = SC->getOperand(); in getSymVal() 272 virtual ProgramStateRef assumeExpr(ProgramStateRef State, SymbolRef Sym, in assumeExpr() 303 ConditionTruthVal checkModel(ProgramStateRef State, SymbolRef Sym, in checkModel()
|
| H A D | SimpleConstraintManager.h | 55 virtual ProgramStateRef assumeSym(ProgramStateRef State, SymbolRef Sym, 63 SymbolRef Sym, 71 SymbolRef Sym,
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/StaticAnalyzer/Core/ |
| H A D | RangeConstraintManager.cpp | 239 SymbolRef Sym) const override; 286 RangeSet getRange(ProgramStateRef State, SymbolRef Sym); 288 SymbolRef Sym); 290 RangeSet getSymLTRange(ProgramStateRef St, SymbolRef Sym, 293 RangeSet getSymGTRange(ProgramStateRef St, SymbolRef Sym, 296 RangeSet getSymLERange(ProgramStateRef St, SymbolRef Sym, 302 RangeSet getSymGERange(ProgramStateRef St, SymbolRef Sym, 401 SymbolRef Sym = I.getKey(); in removeDeadBindings() 415 SymbolRef Sym, in assumeNonZero() 459 SymbolRef Sym) { in getRange() [all …]
|
| H A D | RangedConstraintManager.cpp | 25 SymbolRef Sym, in assumeSym() 58 SymbolRef Subtraction = in assumeSym() 75 ProgramStateRef State, SymbolRef Sym, const llvm::APSInt &From, in assumeSymInclusiveRange() 82 SymbolRef AdjustedSym = Sym; in assumeSymInclusiveRange() 104 SymbolRef Sym, bool Assumption) { in assumeSymUnsupported() 121 SymbolRef Sym, in assumeSymRel() 185 void RangedConstraintManager::computeAdjustment(SymbolRef &Sym, in computeAdjustment()
|
| H A D | SimpleSValBuilder.cpp | 356 static std::pair<SymbolRef, llvm::APSInt> 402 SymbolRef ResultSym = nullptr; in doRearrangeUnchecked() 465 SymbolRef LSym = Lhs.getAsSymbol(); in tryRearrange() 489 SymbolRef RSym = Rhs.getAsSymbol(); in tryRearrange() 877 if (SymbolRef rSym = rhs.getAsLocSymbol()) { in evalBinOpLL() 1085 SymbolRef LHSSym = lhs.getAsLocSymbol(); in evalBinOpLL() 1086 SymbolRef RHSSym = rhs.getAsLocSymbol(); in evalBinOpLL() 1215 if (SymbolRef Sym = V.getAsSymbol()) in getKnownValue() 1235 llvm::DenseMap<SymbolRef, SVal> Cached; in simplifySVal() 1241 SVal cache(SymbolRef Sym, SVal V) { in simplifySVal() [all …]
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | SimpleStreamChecker.cpp | 29 typedef SmallVector<SymbolRef, 2> SymbolVector; 60 void reportDoubleClose(SymbolRef FileDescSym, 90 REGISTER_MAP_WITH_PROGRAMSTATE(StreamMap, SymbolRef, StreamState) 99 bool VisitSymbol(SymbolRef sym) override { in VisitSymbol() 127 SymbolRef FileDesc = Call.getReturnValue().getAsSymbol(); in checkPostCall() 146 SymbolRef FileDesc = Call.getArgSVal(0).getAsSymbol(); in checkPreCall() 163 static bool isLeaked(SymbolRef Sym, const StreamState &SS, in isLeaked() 182 SymbolRef Sym = I->first; in checkDeadSymbols() 200 void SimpleStreamChecker::reportDoubleClose(SymbolRef FileDescSym, in reportDoubleClose() 222 for (SymbolRef LeakedStream : LeakedStreams) { in reportLeaks() [all …]
|
| H A D | TrustNonnullChecker.cpp | 38 REGISTER_MAP_WITH_PROGRAMSTATE(NonNullImplicationMap, SymbolRef, SymbolRef) 42 REGISTER_MAP_WITH_PROGRAMSTATE(NullImplicationMap, SymbolRef, SymbolRef) 69 const SymbolRef CondS = Cond.getAsSymbol(); in evalAssume() 74 const SymbolRef Antecedent = *B; in evalAssume() 117 SymbolRef ArgS = Msg.getArgSVal(0).getAsSymbol(); in checkPostObjCMessage() 118 SymbolRef RetS = Msg.getReturnValue().getAsSymbol(); in checkPostObjCMessage() 150 for (const std::pair<SymbolRef, SymbolRef> &P : State->get<MapName>()) in dropDeadFromGDM() 214 ProgramStateRef addImplication(SymbolRef Antecedent, in addImplication() 220 const SymbolRef *Consequent = in addImplication()
|
| H A D | CheckObjCDealloc.cpp | 145 SymbolRef getInstanceSymbolFromIvarSymbol(SymbolRef IvarSym) const; 148 findPropertyOnDeallocatingInstance(SymbolRef IvarSym, 263 SymbolRef SelfSymbol = SelfVal.getAsSymbol(); in checkBeginFunction() 291 SymbolRef Symbol = InitialVal.getAsSymbol(); in checkBeginFunction() 317 SymbolRef 336 SymbolRef ReleasedValue = nullptr; in checkPreObjCMessage() 423 SymbolRef NullSymbol = nullptr; in evalAssume() 500 SymbolRef SelfSym = SelfVal.getAsSymbol(); in diagnoseMissingReleases() 609 SymbolRef IvarSym, CheckerContext &C) const { in findPropertyOnDeallocatingInstance() 856 ProgramStateRef State, SymbolRef Instance, SymbolRef Value) const { in removeValueRequiringRelease() [all …]
|
| H A D | IteratorChecker.cpp | 144 ContainerData(SymbolRef B, SymbolRef E) : Begin(B), End(E) {} in ContainerData() 386 SymbolRef NewSym, SymbolRef CondSym, BinaryOperator::Opcode Opc); 1622 bool isLess(ProgramStateRef State, SymbolRef Sym1, SymbolRef Sym2); 1623 bool isGreater(ProgramStateRef State, SymbolRef Sym1, SymbolRef Sym2); 1624 bool isEqual(ProgramStateRef State, SymbolRef Sym1, SymbolRef Sym2); 1625 bool compare(ProgramStateRef State, SymbolRef Sym1, SymbolRef Sym2, 1632 SymbolRef OldSym, SymbolRef NewSym); 2295 SymbolRef OrigExpr, SymbolRef OldExpr, in rebaseSymbol() 2365 bool isLess(ProgramStateRef State, SymbolRef Sym1, SymbolRef Sym2) { in isLess() 2373 bool isEqual(ProgramStateRef State, SymbolRef Sym1, SymbolRef Sym2) { in isEqual() [all …]
|
| H A D | ObjCSuperDeallocChecker.cpp | 54 void reportUseAfterDealloc(SymbolRef Sym, StringRef Desc, const Stmt *S, 62 REGISTER_SET_WITH_PROGRAMSTATE(CalledSuperDealloc, SymbolRef) 66 SymbolRef ReceiverSymbol; 70 SuperDeallocBRVisitor(SymbolRef ReceiverSymbol) in SuperDeallocBRVisitor() 88 SymbolRef ReceiverSymbol = M.getReceiverSVal().getAsSymbol(); in checkPreObjCMessage() 121 SymbolRef ReceiverSymbol = M.getSelfSVal().getAsSymbol(); in checkPostObjCMessage() 133 SymbolRef BaseSym = L.getLocSymbolInBase(); in checkLocation() 176 void ObjCSuperDeallocChecker::reportUseAfterDealloc(SymbolRef Sym, in reportUseAfterDealloc() 206 SymbolRef Sym = CE.getArgSVal(I).getAsSymbol(); in diagnoseCallArguments()
|
| H A D | MacOSKeychainAPIChecker.cpp | 43 SymbolRef Region; 132 SymbolRef Sym; 135 SecKeychainBugVisitor(SymbolRef S) : Sym(S) {} in SecKeychainBugVisitor() 154 SymbolRef, in REGISTER_MAP_WITH_PROGRAMSTATE() argument 206 static SymbolRef getAsPointeeSymbol(const Expr *Expr, in getAsPointeeSymbol() 268 if (SymbolRef V = getAsPointeeSymbol(ArgExpr, C)) in checkPreStmt() 310 SymbolRef ArgSM = ArgSVal.getAsLocSymbol(); in checkPreStmt() 420 if (SymbolRef V = getAsPointeeSymbol(ArgExpr, C)) { in checkPostStmt() 518 SymbolRef ReturnSymbol = nullptr; in evalAssume() 588 SymbolRef Sym = I.first; in checkPointerEscape() [all …]
|
| H A D | MallocChecker.cpp | 143 SymbolRef ReallocatedSym; 420 SymbolRef Sym, SymbolRef PrevSym) const; 448 SymbolRef Sym; 454 SymbolRef FailedReallocSymbol; 572 REGISTER_MAP_WITH_PROGRAMSTATE(FreeReturnValue, SymbolRef, SymbolRef) 1355 SymbolRef Sym, SymbolRef &RetStatusSymbol) { in didPreviousFreeFail() 2353 SmallVector<SymbolRef, 2> Errors; in checkDeadSymbols() 2474 SymbolRef Sym = RetVal.getAsSymbol(); in checkEscapeOnReturn() 2816 SymbolRef EscapingSymbol = nullptr; in checkPointerEscapeAux() 2827 SymbolRef sym = *I; in checkPointerEscapeAux() [all …]
|
| H A D | AllocationState.h | 21 ProgramStateRef markReleased(ProgramStateRef State, SymbolRef Sym, 27 std::unique_ptr<BugReporterVisitor> getInnerPointerBRVisitor(SymbolRef Sym); 32 const MemRegion *getContainerObjRegion(ProgramStateRef State, SymbolRef Sym);
|
| H A D | ObjCContainersChecker.cpp | 41 inline SymbolRef getArraySym(const Expr *E, CheckerContext &C) const { in getArraySym() 43 SymbolRef ArraySym = ArrayRef.getAsSymbol(); in getArraySym() 67 REGISTER_MAP_WITH_PROGRAMSTATE(ArraySizeMap, SymbolRef, DefinedSVal) in REGISTER_MAP_WITH_PROGRAMSTATE() argument 79 SymbolRef ArraySym = ArrayRef.getAsSymbol(); in REGISTER_MAP_WITH_PROGRAMSTATE() 123 SymbolRef ArraySym = getArraySym(ArrayExpr, C); in checkPreStmt()
|
| H A D | InnerPointerChecker.cpp | 29 REGISTER_SET_FACTORY_WITH_PROGRAMSTATE(PtrSet, SymbolRef) 44 SymbolRef PtrToBuf; 47 InnerPointerBRVisitor(SymbolRef Sym) : PtrToBuf(Sym) {} in InnerPointerBRVisitor() 64 bool isSymbolTracked(ProgramStateRef State, SymbolRef Sym) { in isSymbolTracked() 208 if (SymbolRef Sym = RawPtr.getAsSymbol(/*IncludeBaseRegions=*/true)) { in checkPostCall() 264 std::unique_ptr<BugReporterVisitor> getInnerPointerBRVisitor(SymbolRef Sym) { in getInnerPointerBRVisitor() 268 const MemRegion *getContainerObjRegion(ProgramStateRef State, SymbolRef Sym) { in getContainerObjRegion()
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/ |
| H A D | RetainCountDiagnostics.h | 40 SymbolRef Sym; 44 ExplodedNode *n, SymbolRef sym, 48 ExplodedNode *n, SymbolRef sym, 65 void deriveParamLocation(CheckerContext &Ctx, SymbolRef sym); 67 void deriveAllocLocation(CheckerContext &Ctx, SymbolRef sym); 73 SymbolRef sym, CheckerContext &Ctx);
|
| H A D | RetainCountChecker.cpp | 198 bool VisitSymbol(SymbolRef sym) override { in VisitSymbol() 290 if (SymbolRef sym = V.getAsSymbol()) in processObjCLiterals() 304 if (SymbolRef sym = in processObjCLiterals() 501 if (SymbolRef Sym = V.getAsLocSymbol()) { in processSummaryOfInlined() 628 SymbolRef ErrorSym = nullptr; in checkSummary() 639 if (SymbolRef Sym = V.getAsLocSymbol()) { in checkSummary() 991 SymbolRef Sym = in processReturn() 1233 for (SymbolRef sym : in checkRegionChanges() 1449 SmallVector<SymbolRef, 10> Leaked; in checkEndFunction() 1463 SmallVector<SymbolRef, 10> Leaked; in checkDeadSymbols() [all …]
|
| H A D | RetainCountChecker.h | 329 SymbolRef Sym, ProgramStateRef state) const; 335 ProgramStateRef updateSymbol(ProgramStateRef state, SymbolRef sym, 340 RefVal::Kind ErrorKind, SymbolRef Sym, 346 SymbolRef sid, RefVal V, 347 SmallVectorImpl<SymbolRef> &Leaked) const; 352 SymbolRef Sym, 357 SmallVectorImpl<SymbolRef> &Leaked, 372 const RefVal *getRefBinding(ProgramStateRef State, SymbolRef Sym); 374 ProgramStateRef setRefBinding(ProgramStateRef State, SymbolRef Sym, 377 ProgramStateRef removeRefBinding(ProgramStateRef State, SymbolRef Sym);
|
| /freebsd-12.1/contrib/llvm/lib/DebugInfo/Symbolize/ |
| H A D | SymbolizableObjectFile.cpp | 70 std::vector<std::pair<SymbolRef, uint64_t>> Symbols = in create() 136 std::error_code SymbolizableObjectFile::addSymbol(const SymbolRef &Symbol, in addSymbol() 140 Expected<SymbolRef::Type> SymbolTypeOrErr = Symbol.getType(); in addSymbol() 143 SymbolRef::Type SymbolType = *SymbolTypeOrErr; in addSymbol() 144 if (SymbolType != SymbolRef::ST_Function && SymbolType != SymbolRef::ST_Data) in addSymbol() 171 auto &M = SymbolType == SymbolRef::ST_Function ? Functions : Objects; in addSymbol() 189 bool SymbolizableObjectFile::getNameFromSymbolTable(SymbolRef::Type Type, in getNameFromSymbolTable() 194 const auto &SymbolMap = Type == SymbolRef::ST_Function ? Functions : Objects; in getNameFromSymbolTable() 233 if (getNameFromSymbolTable(SymbolRef::ST_Function, ModuleOffset, in symbolizeCode() 256 if (getNameFromSymbolTable(SymbolRef::ST_Function, ModuleOffset, in symbolizeInlinedCode() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/Object/ |
| H A D | SymbolSize.cpp | 34 static unsigned getSymbolSectionID(const ObjectFile &O, SymbolRef Sym) { in getSymbolSectionID() 40 std::vector<std::pair<SymbolRef, uint64_t>> 42 std::vector<std::pair<SymbolRef, uint64_t>> Ret; in computeSymbolSizes() 58 SymbolRef Sym = *I; in computeSymbolSizes()
|