Searched refs:getAs (Results 1 - 25 of 179) sorted by relevance

12345678

/freebsd-10.3-release/contrib/llvm/tools/clang/lib/StaticAnalyzer/Core/
H A DSVals.cpp33 if (Optional<nonloc::SymbolVal> SV = getAs<nonloc::SymbolVal>()) {
39 if (Optional<loc::MemRegionVal> RV = getAs<loc::MemRegionVal>()) {
52 if (Optional<loc::MemRegionVal> X = getAs<loc::MemRegionVal>()) {
54 if (const FunctionTextRegion *CTR = R->getAs<FunctionTextRegion>())
71 if (Optional<nonloc::LocAsInteger> X = getAs<nonloc::LocAsInteger>())
74 if (Optional<loc::MemRegionVal> X = getAs<loc::MemRegionVal>()) {
86 Optional<loc::MemRegionVal> X = getAs<loc::MemRegionVal>();
113 if (Optional<nonloc::SymbolVal> X = getAs<nonloc::SymbolVal>())
122 if (Optional<nonloc::SymbolVal> X = getAs<nonloc::SymbolVal>())
136 if (Optional<loc::MemRegionVal> X = getAs<lo
[all...]
H A DSimpleSValBuilder.cpp63 assert(Val.getAs<Loc>() || Val.getAs<NonLoc>());
64 return Val.getAs<Loc>() ? evalCastFromLoc(Val.castAs<Loc>(), CastTy)
72 if (Optional<nonloc::LocAsInteger> LI = val.getAs<nonloc::LocAsInteger>()) {
101 if (!val.getAs<nonloc::ConcreteInt>())
169 if (!val.getAs<loc::ConcreteInt>())
659 if (Optional<loc::ConcreteInt> rInt = rhs.getAs<loc::ConcreteInt>()) {
662 if (Optional<NonLoc> Result = ResultVal.getAs<NonLoc>())
665 assert(!ResultVal.getAs<Loc>() && "Loc-Loc ops should not produce Locs");
673 assert(rhs.getAs<lo
[all...]
H A DBugReporterVisitors.cpp191 while (Node && Node->getLocation().getAs<PostStmt>())
211 if (Optional<Loc> LValue = RetVal.getAs<Loc>())
221 if (Optional<Loc> RetLoc = RetVal.getAs<Loc>())
266 if ((LValue = V.getAs<Loc>())) {
268 if (RValue.getAs<DefinedSVal>())
274 if (V.getAs<nonloc::LazyCompoundVal>() ||
275 V.getAs<nonloc::CompoundVal>())
297 if (V.getAs<Loc>()) {
362 Optional<Loc> ArgV = Call->getArgSVal(I).getAs<Loc>();
536 V.getAs<lo
[all...]
H A DCoreEngine.cpp117 if (U.getNode()->getLocation().getAs<BlockEntrance>())
262 assert(Loc.getAs<PostStmt>() ||
263 Loc.getAs<PostInitializer>() ||
264 Loc.getAs<PostImplicitCall>() ||
265 Loc.getAs<CallExitEnd>());
516 if (N->getLocation().getAs<CallEnter>()) {
524 if (N->getLocation().getAs<PostInitializer>() ||
525 N->getLocation().getAs<PostImplicitCall>()) {
530 if (N->getLocation().getAs<EpsilonPoint>()) {
/freebsd-10.3-release/contrib/llvm/tools/clang/lib/StaticAnalyzer/Checkers/
H A DBoolAssignmentChecker.cpp46 if (const TypedefType *TT = Ty->getAs<TypedefType>())
72 Optional<DefinedSVal> DV = val.getAs<DefinedSVal>();
90 greaterThanOrEqualToZeroVal.getAs<DefinedSVal>();
126 lessThanEqToOneVal.getAs<DefinedSVal>();
H A DNonNullParamChecker.cpp76 Optional<DefinedSVal> DV = V.getAs<DefinedSVal>();
81 assert(!haveRefTypeParam || DV->getAs<Loc>());
83 if (haveAttrNonNull && !DV->getAs<Loc>()) {
95 DV->getAs<nonloc::CompoundVal>()) {
99 DV = V.getAs<DefinedSVal>();
H A DArrayBoundCheckerV2.cpp113 if (Optional<NonLoc> NV = extentBegin.getAs<NonLoc>()) {
118 Optional<NonLoc> lowerBoundToCheck = lowerBound.getAs<NonLoc>();
142 if (!extentVal.getAs<NonLoc>())
150 Optional<NonLoc> upperboundToCheck = upperbound.getAs<NonLoc>();
223 if (const RecordType *RT = Ty->getAs<RecordType>()) {
237 return val.getAs<UndefinedVal>() ? svalBuilder.makeArrayIndex(0) : val;
286 if (!index.getAs<NonLoc>())
H A DNSErrorChecker.cpp189 if (Optional<loc::MemRegionVal> X = val.getAs<loc::MemRegionVal>()) {
191 if (const VarRegion *VR = R->getAs<VarRegion>())
206 if (loc.isUndef() || !loc.getAs<Loc>())
277 const PointerType* PPT = T->getAs<PointerType>();
282 PPT->getPointeeType()->getAs<ObjCObjectPointerType>();
297 const PointerType* PPT = T->getAs<PointerType>();
300 const TypedefType* TT = PPT->getPointeeType()->getAs<TypedefType>();
H A DLLVMConventionsChecker.cpp31 const RecordType *RT = T->getAs<RecordType>();
52 if (const ElaboratedType *QT = T->getAs<ElaboratedType>())
55 const TypedefType *TT = T->getAs<TypedefType>();
84 const TemplateSpecializationType *TS = T->getAs<TemplateSpecializationType>();
98 const TemplateSpecializationType *TS = T->getAs<TemplateSpecializationType>();
204 if (const RecordType *baseT = T->getAs<RecordType>()) {
247 if (const RecordType *RT = T->getAs<RecordType>()) {
H A DAnalyzerStatsChecker.cpp63 if (Optional<BlockEntrance> BE = P.getAs<BlockEntrance>()) {
126 if (Optional<CFGStmt> CS = CE.getAs<CFGStmt>()) {
H A DCStringChecker.cpp207 Optional<DefinedSVal> val = V.getAs<DefinedSVal>();
365 Optional<NonLoc> Length = LengthVal.getAs<NonLoc>();
376 if (Optional<Loc> BufLoc = BufStart.getAs<Loc>()) {
396 if (Optional<Loc> BufLoc = BufStart.getAs<Loc>()) {
432 Optional<Loc> firstLoc = firstVal.getAs<Loc>();
436 Optional<Loc> secondLoc = secondVal.getAs<Loc>();
460 reverse.getAs<DefinedOrUnknownSVal>();
480 Optional<NonLoc> Length = LengthVal.getAs<NonLoc>();
490 Optional<Loc> FirstStartLoc = FirstStart.getAs<Loc>();
497 Optional<Loc> FirstEndLoc = FirstEnd.getAs<Lo
[all...]
H A DDynamicTypePropagation.cpp214 = MsgE->getClassReceiver()->getAs<ObjCObjectType>())
220 = MsgE->getSuperType()->getAs<ObjCObjectType>())
254 CastE->getType()->getAs<ObjCObjectPointerType>();
262 OldDTy->getAs<ObjCObjectPointerType>();
H A DObjCAtSyncChecker.cpp45 if (V.getAs<UndefinedVal>()) {
H A DCheckSecuritySyntaxOnly.cpp300 const FunctionProtoType *FPT = FD->getType()->getAs<FunctionProtoType>();
309 const PointerType *PT = FPT->getArgType(0)->getAs<PointerType>();
336 const FunctionProtoType *FPT = FD->getType()->getAs<FunctionProtoType>();
349 const PointerType *PT = FPT->getArgType(1)->getAs<PointerType>();
380 const FunctionProtoType *FPT = FD->getType()->getAs<FunctionProtoType>();
389 const PointerType *PT = FPT->getArgType(0)->getAs<PointerType>();
549 const FunctionProtoType *FPT = FD->getType()->getAs<FunctionProtoType>();
561 const PointerType *PT = FPT->getArgType(i)->getAs<PointerType>();
583 const FunctionProtoType *FTP = FD->getType()->getAs<FunctionProtoType>();
590 const PointerType *PT = FTP->getArgType(0)->getAs<PointerTyp
[all...]
/freebsd-10.3-release/contrib/llvm/tools/clang/lib/AST/
H A DMangleNumberingContext.cpp24 = CallOperator->getType()->getAs<FunctionProtoType>();
H A DComment.cpp245 if (QualifiedTypeLoc QualifiedTL = TL.getAs<QualifiedTypeLoc>()) {
250 if (PointerTypeLoc PointerTL = TL.getAs<PointerTypeLoc>()) {
255 TL.getAs<BlockPointerTypeLoc>()) {
260 TL.getAs<MemberPointerTypeLoc>()) {
265 if (FunctionTypeLoc FTL = TL.getAs<FunctionTypeLoc>()) {
H A DVTTBuilder.cpp67 cast<CXXRecordDecl>(I->getType()->getAs<RecordType>()->getDecl());
94 cast<CXXRecordDecl>(I->getType()->getAs<RecordType>()->getDecl());
159 cast<CXXRecordDecl>(I->getType()->getAs<RecordType>()->getDecl());
H A DType.cpp52 ND = ty->getAs<RecordType>()->getDecl();
54 ND = ty->getAs<EnumType>()->getDecl();
56 ND = ty->getAs<TypedefType>()->getDecl();
307 while (const ParenType *PT = T->getAs<ParenType>())
333 template <> const TypedefType *Type::getAs() const { function in class:Type
337 template <> const TemplateSpecializationType *Type::getAs() const { function in class:Type
341 template <> const AttributedType *Type::getAs() const { function in class:Type
366 if (const RecordType *RT = getAs<RecordType>())
371 if (const RecordType *RT = getAs<RecordType>())
376 if (const RecordType *RT = getAs<RecordTyp
[all...]
/freebsd-10.3-release/contrib/llvm/tools/clang/lib/Sema/
H A DSemaExceptionSpec.cpp29 if (const PointerType *PtrTy = T->getAs<PointerType>())
31 else if (const ReferenceType *RefTy = T->getAs<ReferenceType>())
33 else if (const MemberPointerType *MPTy = T->getAs<MemberPointerType>())
35 return T->getAs<FunctionProtoType>();
58 if (const PointerType *PT = T->getAs<PointerType>()) {
66 } else if (const ReferenceType *RT = T->getAs<ReferenceType>()) {
87 PointeeT->getAs<RecordType>()->isBeingDefined()) &&
99 if (const PointerType *PT = T->getAs<PointerType>())
101 else if (const MemberPointerType *PT = T->getAs<MemberPointerType>())
106 const FunctionProtoType *FnT = T->getAs<FunctionProtoTyp
[all...]
H A DSemaCast.cpp404 const PointerType *T1PtrType = T1->getAs<PointerType>(),
405 *T2PtrType = T2->getAs<PointerType>();
412 T1->getAs<ObjCObjectPointerType>(),
414 T2->getAs<ObjCObjectPointerType>();
435 const MemberPointerType *T1MPType = T1->getAs<MemberPointerType>(),
436 *T2MPType = T2->getAs<MemberPointerType>();
443 const BlockPointerType *T1BPType = T1->getAs<BlockPointerType>(),
444 *T2BPType = T2->getAs<BlockPointerType>();
550 const PointerType *DestPointer = DestType->getAs<PointerType>();
554 } else if ((DestReference = DestType->getAs<ReferenceTyp
[all...]
/freebsd-10.3-release/contrib/llvm/tools/clang/lib/Analysis/
H A DCocoaConventions.cpp42 const PointerType* PT = RetTy->getAs<PointerType>();
63 const ObjCObjectPointerType *PT = Ty->getAs<ObjCObjectPointerType>();
H A DFormatString.cpp260 const PointerType *PT = argTy->getAs<PointerType>();
279 if (const EnumType *ETy = argTy->getAs<EnumType>())
282 if (const BuiltinType *BT = argTy->getAs<BuiltinType>())
296 if (const EnumType *ETy = argTy->getAs<EnumType>())
303 if (const BuiltinType *BT = argTy->getAs<BuiltinType>())
333 const PointerType *PT = argTy->getAs<PointerType>();
337 if (const BuiltinType *BT = pointeeTy->getAs<BuiltinType>())
353 const PointerType *PT = argTy->getAs<PointerType>();
384 if (argTy->getAs<ObjCObjectPointerType>() ||
385 argTy->getAs<BlockPointerTyp
[all...]
H A DCFGStmtMap.cpp53 Optional<CFGStmt> CS = CE.getAs<CFGStmt>();
/freebsd-10.3-release/contrib/llvm/tools/clang/lib/Index/
H A DUSRGeneration.cpp525 if (const PackExpansionType *Expansion = T->getAs<PackExpansionType>()) {
530 if (const BuiltinType *BT = T->getAs<BuiltinType>()) {
618 if (const PointerType *PT = T->getAs<PointerType>()) {
623 if (const ReferenceType *RT = T->getAs<ReferenceType>()) {
628 if (const FunctionProtoType *FT = T->getAs<FunctionProtoType>()) {
639 if (const BlockPointerType *BT = T->getAs<BlockPointerType>()) {
644 if (const ComplexType *CT = T->getAs<ComplexType>()) {
649 if (const TagType *TT = T->getAs<TagType>()) {
654 if (const TemplateTypeParmType *TTP = T->getAs<TemplateTypeParmType>()) {
659 = T->getAs<TemplateSpecializationTyp
[all...]
/freebsd-10.3-release/contrib/llvm/tools/clang/lib/ARCMigrate/
H A DTransGCAttrs.cpp66 if (QualifiedTypeLoc QL = TL.getAs<QualifiedTypeLoc>()) {
68 } else if (AttributedTypeLoc Attr = TL.getAs<AttributedTypeLoc>()) {
72 } else if (ArrayTypeLoc Arr = TL.getAs<ArrayTypeLoc>()) {
74 } else if (PointerTypeLoc PT = TL.getAs<PointerTypeLoc>()) {
76 } else if (ReferenceTypeLoc RT = TL.getAs<ReferenceTypeLoc>())
252 TL.getAs<AttributedTypeLoc>()) {

Completed in 260 milliseconds

12345678