Searched refs:getAs (Results 101 - 125 of 242) sorted by relevance

12345678910

/freebsd-11-stable/contrib/llvm-project/clang/lib/Analysis/
H A DExprMutationAnalyzer.cpp411 if (const auto *T = ParmType->getAs<PackExpansionType>())
416 if (const auto *RefType = ParmType->getAs<RValueReferenceType>()) {
418 RefType->getPointeeType()->getAs<TemplateTypeParmType>()) {
H A DReachableCode.cpp76 if (Optional<CFGStmt> CS = B->back().getAs<CFGStmt>()) {
93 if (Optional<CFGStmt> CS = I->getAs<CFGStmt>()) {
459 if (Optional<CFGStmt> CS = I->getAs<CFGStmt>()) {
/freebsd-11-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DMallocChecker.cpp1014 if (!V.getAs<NonLoc>()) {
1255 Optional<DefinedSVal> DefArgVal = C.getSVal(Arg).getAs<DefinedSVal>();
1404 if (ElementCount.getAs<NonLoc>()) {
1544 Size.getAs<DefinedOrUnknownSVal>()) {
1569 if (!RetVal->getAs<Loc>())
1761 if (!ArgVal.getAs<DefinedOrUnknownSVal>())
1766 if (!location.getAs<Loc>())
1962 if (Optional<nonloc::ConcreteInt> IntVal = V.getAs<nonloc::ConcreteInt>())
1964 else if (Optional<loc::ConcreteInt> ConstAddr = V.getAs<loc::ConcreteInt>())
1966 else if (Optional<loc::GotoLabel> Label = V.getAs<lo
[all...]
H A DFuchsiaHandleChecker.cpp233 if (const auto *HandleType = QT->getAs<TypedefType>()) {
245 if (Optional<Loc> ArgLoc = Arg.getAs<Loc>())
310 if (const auto *TypeDefTy = FuncDecl->getReturnType()->getAs<TypedefType>())
H A DDeadStoresChecker.cpp275 if (VD->getType()->getAs<ReferenceType>())
386 if (V->getType()->getAs<ReferenceType>())
H A DValistChecker.cpp176 if (const auto *DeclReg = Reg->getAs<DeclRegion>()) {
180 IsSymbolic = Reg && Reg->getAs<SymbolicRegion>();
H A DMismatchedIteratorChecker.cpp177 Param->getType()->getAs<SubstTemplateTypeParmType>();
H A DTaint.cpp63 if (auto LCV = V.getAs<nonloc::LazyCompoundVal>()) {
H A DVforkChecker.cpp156 VforkRetVal.getAs<DefinedOrUnknownSVal>();
H A DIteratorRangeChecker.cpp147 if (auto ValAsLoc = RHS.getAs<Loc>()) {
/freebsd-11-stable/contrib/llvm-project/lldb/source/Symbol/
H A DClangASTImporter.cpp308 if (auto *t = ClangUtil::GetQualType(src_type)->getAs<TagType>())
645 if (const TagType *tag_type = type->getAs<TagType>()) {
677 if (const ObjCObjectType *objc_object_type = type->getAs<ObjCObjectType>()) {
713 if (const TagType *tag_type = type->getAs<TagType>()) {
721 if (const ObjCObjectType *objc_object_type = type->getAs<ObjCObjectType>()) {
729 if (const AtomicType *atomic_type = type->getAs<AtomicType>())
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/AST/
H A DTypeLoc.h56 /// A client should use the TypeLoc subclasses through castAs()/getAs()
88 T getAs() const { function in class:clang::TypeLoc
327 if (QualifiedTypeLoc Loc = getAs<QualifiedTypeLoc>())
2438 if (auto PTL = Cur.getAs<ParenTypeLoc>())
2440 else if (auto ATL = Cur.getAs<AttributedTypeLoc>())
2442 else if (auto ETL = Cur.getAs<ElaboratedTypeLoc>())
2444 else if (auto ATL = Cur.getAs<AdjustedTypeLoc>())
2446 else if (auto MQL = Cur.getAs<MacroQualifiedTypeLoc>())
2451 return Cur.getAs<T>();
/freebsd-11-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/UninitializedObject/
H A DUninitializedObjectChecker.cpp333 if (isDereferencableType(T) || V.getAs<nonloc::LocAsInteger>()) {
466 auto *R = ObjectV.getAsRegion()->getAs<TypedValueRegion>();
/freebsd-11-stable/contrib/llvm-project/clang/lib/Frontend/Rewrite/
H A DRewriteModernObjC.cpp552 if (const PointerType *PT = OCT->getAs<PointerType>()) {
622 const PointerType *PT = funcType->getAs<PointerType>();
1214 if (const PointerType* PT = retType->getAs<PointerType>())
1216 else if (const BlockPointerType *BPT = retType->getAs<BlockPointerType>())
1218 if ((FPRetType = PointeeTy->getAs<FunctionType>())) {
1966 if (const ObjCObjectPointerType *Ptr = t->getAs<ObjCObjectPointerType>()) {
2148 if (const PointerType *PT = T->getAs<PointerType>()) {
2205 const FunctionType *funcType = FD->getType()->getAs<FunctionType>();
2277 const Type* TypePtr = QT->getAs<Type>();
2283 TypePtr = QT->getAs<Typ
[all...]
/freebsd-11-stable/contrib/llvm-project/clang/lib/Index/
H A DIndexTypeSourceInfo.cpp180 T->getAs<TemplateSpecializationType>();
/freebsd-11-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DExprEngineObjC.cpp61 if (auto MV = elementV.getAs<loc::MemRegionVal>())
H A DMemRegion.cpp668 while ((ER = R->getAs<ElementRegion>())) {
670 if (auto CI = ER->getIndex().getAs<nonloc::ConcreteInt>()) {
912 if (!T->getAs<FunctionType>())
1102 const auto *PT = thisPointerTy->getAs<PointerType>();
1111 PT != D->getThisType()->getAs<PointerType>())) {
1243 if (auto CI = index.getAs<nonloc::ConcreteInt>()) {
1411 Index.getAs<nonloc::ConcreteInt>()) {
/freebsd-11-stable/contrib/llvm-project/clang/lib/CodeGen/
H A DCGCXX.cpp284 const RecordType *RT = T->getAs<RecordType>();
/freebsd-11-stable/contrib/llvm-project/clang/lib/AST/
H A DPrintfFormatString.cpp726 if (const EnumType *ETy = QT->getAs<EnumType>())
729 const BuiltinType *BT = QT->getAs<BuiltinType>();
731 const VectorType *VT = QT->getAs<VectorType>();
734 BT = QT->getAs<BuiltinType>();
H A DItaniumCXXABI.cpp45 const RecordType *RT = VD.getType()->getAs<RecordType>();
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DProgramState.h683 assert(Val.getAs<NonLoc>() && "Only NonLocs are supported!");
696 assert(Val.getAs<NonLoc>() && "Only NonLocs are supported!");
703 if (Optional<Loc> L = LV.getAs<Loc>())
753 if (Optional<NonLoc> N = Idx.getAs<NonLoc>())
H A DCheckerContext.h138 if (Optional<PostStore> PSL = L.getAs<PostStore>())
/freebsd-11-stable/contrib/llvm-project/clang/lib/Sema/
H A DSemaAccess.cpp301 if (const RecordType *RT = T->getAs<RecordType>()) {
304 = T->getAs<InjectedClassNameType>()) {
373 ->getAs<FunctionProtoType>();
376 ->getAs<FunctionProtoType>();
425 if (const RecordType *RT = Friend->getAs<RecordType>())
654 if (const RecordType *RT = T->getAs<RecordType>()) {
657 = T->getAs<InjectedClassNameType>()) {
H A DSemaInit.cpp622 ILE->setInit(Init, BaseInit.getAs<Expr>());
647 if (const RecordType *RType = ILE->getType()->getAs<RecordType>())
709 ILE->setInit(Init, MemberInit.getAs<Expr>());
715 ILE->updateInit(SemaRef.Context, Init, MemberInit.getAs<Expr>());
769 if (const RecordType *RType = ILE->getType()->getAs<RecordType>()) {
844 } else if (const VectorType *VType = ILE->getType()->getAs<VectorType>()) {
885 Filler = ElementInit.getAs<Expr>();
1373 Result.getAs<Expr>());
1430 ExprRes.getAs<Expr>());
1561 ResultExpr = Result.getAs<Exp
[all...]
/freebsd-11-stable/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
H A DClangASTSource.cpp274 ClangUtil::GetQualType(clang_type)->getAs<TagType>();
311 ClangUtil::GetQualType(clang_type)->getAs<TagType>();
1522 origin_base_type->getAs<RecordType>();
1660 const RecordType *base_record_type = base_type->getAs<RecordType>();
1926 qual_type.getTypePtr()->getAs<FunctionProtoType>();
1993 } else if (const TagType *tag_type = qual_type->getAs<TagType>()) {
2000 qual_type->getAs<ObjCObjectType>()) {

Completed in 486 milliseconds

12345678910