Searched refs:getAs (Results 26 - 50 of 242) sorted by relevance

12345678910

/freebsd-11-stable/contrib/llvm-project/clang/lib/AST/
H A DTemplateBase.cpp57 if (const EnumType *ET = T->getAs<EnumType>()) {
H A DCXXInheritance.cpp158 const RecordType *Ty = I.getType()->getAs<RecordType>();
226 DetectedVirtual = BaseType->getAs<RecordType>();
284 BaseSpec.getType()->getAs<TemplateSpecializationType>();
286 if (auto *RT = BaseSpec.getType()->getAs<RecordType>())
369 if (const RecordType *Record = PE.Base->getType()->getAs<RecordType>())
381 HidingP.back().Base->getType()->getAs<RecordType>())
457 Specifier->getType()->getAs<TemplateSpecializationType>();
459 auto *RT = Specifier->getType()->getAs<RecordType>();
610 if (const RecordType *RT = Base.getType()->getAs<RecordType>()) {
H A DFormatString.cpp327 const PointerType *PT = argTy->getAs<PointerType>();
346 if (const EnumType *ETy = argTy->getAs<EnumType>()) {
354 if (const BuiltinType *BT = argTy->getAs<BuiltinType>())
369 if (const EnumType *ETy = argTy->getAs<EnumType>()) {
382 if (const BuiltinType *BT = argTy->getAs<BuiltinType>())
416 const PointerType *PT = argTy->getAs<PointerType>();
420 if (const BuiltinType *BT = pointeeTy->getAs<BuiltinType>())
436 const PointerType *PT = argTy->getAs<PointerType>();
475 if (argTy->getAs<ObjCObjectPointerType>() ||
476 argTy->getAs<BlockPointerTyp
[all...]
/freebsd-11-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DWorkList.cpp101 if (U.getNode()->getLocation().getAs<BlockEntrance>())
151 auto BE = N->getLocation().getAs<BlockEntrance>();
233 if (auto BE = N->getLocation().getAs<BlockEntrance>()) {
295 if (auto BE = N->getLocation().getAs<BlockEntrance>())
H A DSValBuilder.cpp104 if (Optional<nonloc::ConcreteInt> CI = val.getAs<nonloc::ConcreteInt>()) {
394 if (Optional<nonloc::ConcreteInt> rInt = RHS.getAs<nonloc::ConcreteInt>())
398 if (Optional<nonloc::ConcreteInt> lInt = LHS.getAs<nonloc::ConcreteInt>())
412 if (lhs.getAs<nonloc::LazyCompoundVal>() ||
413 rhs.getAs<nonloc::LazyCompoundVal>()) {
417 if (Optional<Loc> LV = lhs.getAs<Loc>()) {
418 if (Optional<Loc> RV = rhs.getAs<Loc>())
424 if (Optional<Loc> RV = rhs.getAs<Loc>()) {
547 if (Optional<Loc> L = val.getAs<Loc>())
566 if (Optional<nonloc::LocAsInteger> LV = val.getAs<nonlo
[all...]
H A DBugReporterVisitors.cpp170 const auto LLCV = LeftVal.getAs<nonloc::LazyCompoundVal>();
174 const auto RLCV = RightVal.getAs<nonloc::LazyCompoundVal>();
201 if (auto FieldL = State->getSVal(ME, LCtx).getAs<Loc>())
211 if (auto CI = V->getAs<nonloc::ConcreteInt>())
809 auto BugPoint = BR.getErrorNode()->getLocation().getAs<StmtPoint>();
835 Options.ShouldSuppressNullReturnPaths && V.getAs<Loc>())
837 R->getAs<SubRegion>(), V));
966 while (Node && Node->getLocation().getAs<PostStmt>())
986 if (Optional<Loc> LValue = RetVal.getAs<Loc>())
995 if (Optional<Loc> RetLoc = RetVal.getAs<Lo
[all...]
H A DCheckerHelpers.cpp102 const auto *AttrType = Type->getAs<AttributedType>();
H A DRegionStore.cpp881 Extent.getAs<nonloc::ConcreteInt>()) {
1053 V.getAs<nonloc::LazyCompoundVal>()) {
1126 if (Optional<Loc> L = V.getAs<Loc>()) {
1311 V.getAs<nonloc::LazyCompoundVal>()) {
1431 if (Array.getAs<loc::ConcreteInt>())
1434 if (!Array.getAs<loc::MemRegionVal>())
1448 assert(!L.getAs<UnknownVal>() && "location unknown");
1449 assert(!L.getAs<UndefinedVal>() && "location undefined");
1457 if (L.getAs<loc::ConcreteInt>()) {
1460 if (!L.getAs<lo
[all...]
/freebsd-11-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DCheckSecuritySyntaxOnly.cpp353 const FunctionProtoType *FPT = FD->getType()->getAs<FunctionProtoType>();
363 const PointerType *PT = FPT->getParamType(i)->getAs<PointerType>();
395 const FunctionProtoType *FPT = FD->getType()->getAs<FunctionProtoType>();
405 const PointerType *PT = FPT->getParamType(i)->getAs<PointerType>();
438 const FunctionProtoType *FPT = FD->getType()->getAs<FunctionProtoType>();
447 const PointerType *PT = FPT->getParamType(0)->getAs<PointerType>();
480 const FunctionProtoType *FPT = FD->getType()->getAs<FunctionProtoType>();
489 const PointerType *PT = FPT->getParamType(0)->getAs<PointerType>();
516 const FunctionProtoType *FPT = FD->getType()->getAs<FunctionProtoType>();
529 const PointerType *PT = FPT->getParamType(1)->getAs<PointerTyp
[all...]
H A DObjCAtSyncChecker.cpp44 if (V.getAs<UndefinedVal>()) {
H A DIterator.cpp161 } else if (const auto LCVal = Val.getAs<nonloc::LazyCompoundVal>()) {
174 } else if (const auto LCVal = Val.getAs<nonloc::LazyCompoundVal>()) {
194 if (const auto IntDist = Distance.getAs<nonloc::ConcreteInt>()) {
219 assert(comparison.getAs<DefinedSVal>() &&
H A DCStringChecker.cpp268 Optional<DefinedSVal> val = V.getAs<DefinedSVal>();
401 Optional<NonLoc> Length = LengthVal.getAs<NonLoc>();
414 if (Optional<Loc> BufLoc = BufStart.getAs<Loc>()) {
434 if (Optional<Loc> BufLoc = BufStart.getAs<Loc>()) {
470 Optional<Loc> firstLoc = firstVal.getAs<Loc>();
474 Optional<Loc> secondLoc = secondVal.getAs<Loc>();
498 reverse.getAs<DefinedOrUnknownSVal>();
518 Optional<NonLoc> Length = LengthVal.getAs<NonLoc>();
528 Optional<Loc> FirstStartLoc = FirstStart.getAs<Loc>();
535 Optional<Loc> FirstEndLoc = FirstEnd.getAs<Lo
[all...]
H A DAnalyzerStatsChecker.cpp62 if (Optional<BlockEntrance> BE = P.getAs<BlockEntrance>()) {
127 if (Optional<CFGStmt> CS = CE.getAs<CFGStmt>()) {
H A DAnalysisOrderChecker.cpp136 if (LastElement.getAs<CFGStmt>())
138 else if (LastElement.getAs<CFGAutomaticObjDtor>())
H A DMmapWriteExecChecker.cpp51 Optional<nonloc::ConcreteInt> ProtLoc = ProtVal.getAs<nonloc::ConcreteInt>();
H A DUndefBranchChecker.cpp91 if (Optional<PostStmt> PS = P.getAs<PostStmt>())
H A DUndefCapturedBlockVarChecker.cpp73 state->getSVal(I.getOriginalRegion()).getAs<UndefinedVal>()) {
H A DEnumCastOutOfRangeChecker.cpp112 C.getSVal(CE->getSubExpr()).getAs<DefinedOrUnknownSVal>();
H A DMallocSizeofChecker.cpp139 if (B->isVoidPointerType() && A->getAs<PointerType>())
149 if (const PointerType *ptrA = A->getAs<PointerType>())
150 if (const PointerType *ptrB = B->getAs<PointerType>()) {
H A DNullabilityChecker.cpp277 auto RegionSVal = Val.getAs<loc::MemRegionVal>();
284 if (auto FieldReg = Region->getAs<FieldRegion>())
286 if (auto ElementReg = Region->getAs<ElementRegion>())
336 auto RegionVal = LV.getAs<loc::MemRegionVal>();
346 auto StoredVal = State->getSVal(*RegionVal).getAs<loc::MemRegionVal>();
456 const auto *Region = I->first->getAs<SymbolicRegion>();
535 auto RetSVal = C.getSVal(S).getAs<DefinedOrUnknownSVal>();
660 auto ArgSVal = Call.getArgSVal(Idx++).getAs<DefinedOrUnknownSVal>();
788 if (auto DefOrUnknown = Receiver.getAs<DefinedOrUnknownSVal>()) {
795 auto ValueRegionSVal = Receiver.getAs<lo
[all...]
H A DUnreachableCodeChecker.cpp77 if (Optional<BlockEntrance> BE = P.getAs<BlockEntrance>()) {
132 if (Optional<CFGStmt> S = (*ci).getAs<CFGStmt>())
202 if (Optional<CFGStmt> S = I->getAs<CFGStmt>()) {
/freebsd-11-stable/contrib/llvm-project/clang/lib/ARCMigrate/
H A DTransGCAttrs.cpp65 if (QualifiedTypeLoc QL = TL.getAs<QualifiedTypeLoc>()) {
67 } else if (AttributedTypeLoc Attr = TL.getAs<AttributedTypeLoc>()) {
72 TL.getAs<MacroQualifiedTypeLoc>()) {
74 } else if (ArrayTypeLoc Arr = TL.getAs<ArrayTypeLoc>()) {
76 } else if (PointerTypeLoc PT = TL.getAs<PointerTypeLoc>()) {
78 } else if (ReferenceTypeLoc RT = TL.getAs<ReferenceTypeLoc>())
245 TL.getAs<AttributedTypeLoc>()) {
/freebsd-11-stable/contrib/llvm-project/clang/lib/Analysis/
H A DCFGStmtMap.cpp52 Optional<CFGStmt> CS = CE.getAs<CFGStmt>();
/freebsd-11-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/MPI-Checker/
H A DMPIChecker.cpp153 if (const ElementRegion *const ER = MR->getAs<ElementRegion>()) {
166 const llvm::APSInt &ArrSize = Size.getAs<nonloc::ConcreteInt>()->getValue();
175 ReqRegions.push_back(ER->getAs<MemRegion>());
/freebsd-11-stable/contrib/llvm-project/clang/lib/CodeGen/
H A DTargetInfo.cpp154 const RecordType *RT = T->getAs<RecordType>();
164 if (const auto *RT = Ty->getAs<RecordType>())
496 const RecordType *RT = FT->getAs<RecordType>();
514 const RecordType *RT = T->getAs<RecordType>();
542 const RecordType *RT = T->getAs<RecordType>();
700 if (const EnumType *EnumTy = Ty->getAs<EnumType>())
715 if (const EnumType *EnumTy = RetTy->getAs<EnumType>())
903 } else if (const EnumType *EnumTy = Ty->getAs<EnumType>()) {
924 if (const EnumType *EnumTy = RetTy->getAs<EnumType>())
961 if (const BuiltinType *BT = Ty->getAs<BuiltinTyp
[all...]

Completed in 187 milliseconds

12345678910