/external/llvm/unittests/Support/ |
D | Casting.cpp | 63 return dyn_cast_or_null<foo>(this); in naz() 155 TEST(CastingTest, dyn_cast_or_null) { in TEST() argument 156 const foo *F1 = dyn_cast_or_null<foo>(B2); in TEST() 158 const foo *F2 = dyn_cast_or_null<foo>(B2); in TEST() 160 const foo *F3 = dyn_cast_or_null<foo>(B4); in TEST() 162 foo *F4 = dyn_cast_or_null<foo>(fub()); in TEST() 321 EXPECT_TRUE(dyn_cast_or_null<pointer_wrappers::Derived>(MN) == nullptr); in TEST() 322 EXPECT_TRUE(dyn_cast_or_null<pointer_wrappers::Derived>(CN) == nullptr); in TEST() 323 EXPECT_TRUE(dyn_cast_or_null<pointer_wrappers::Derived>(MB) == nullptr); in TEST() 324 EXPECT_TRUE(dyn_cast_or_null<pointer_wrappers::Derived>(CB) == nullptr); in TEST() [all …]
|
/external/clang/lib/StaticAnalyzer/Core/ |
D | CheckerHelpers.cpp | 81 if (auto Assign = dyn_cast_or_null<BinaryOperator>(S)) { in parseAssignment() 85 if (auto DE = dyn_cast_or_null<DeclRefExpr>(Assign->getLHS())) in parseAssignment() 86 VD = dyn_cast_or_null<VarDecl>(DE->getDecl()); in parseAssignment() 88 } else if (auto PD = dyn_cast_or_null<DeclStmt>(S)) { in parseAssignment() 91 VD = dyn_cast_or_null<VarDecl>(PD->getSingleDecl()); in parseAssignment()
|
D | IssueHash.cpp | 53 llvm::dyn_cast_or_null<FunctionType>(Target->getType().getTypePtr()); in GetSignature() 66 dyn_cast_or_null<FunctionProtoType>(Target->getType().getTypePtr())) { in GetSignature() 101 DeclName = GetSignature(dyn_cast_or_null<FunctionDecl>(ND)); in GetEnclosingDeclContextSignature()
|
/external/llvm/lib/ExecutionEngine/Orc/ |
D | ExecutionUtils.cpp | 22 GV ? dyn_cast_or_null<ConstantArray>(GV->getInitializer()) : nullptr), in CtorDtorIterator() 55 if (Function *F = dyn_cast_or_null<Function>(FuncC)) { in operator *() 58 } else if (ConstantExpr *CE = dyn_cast_or_null<ConstantExpr>(FuncC)) { in operator *() 60 FuncC = dyn_cast_or_null<ConstantExpr>(CE->getOperand(0)); in operator *()
|
/external/llvm/lib/DebugInfo/PDB/ |
D | PDBContext.cpp | 41 if (auto Func = dyn_cast_or_null<PDBSymbolFunc>(Symbol.get())) { in getLineInfoForAddress() 43 } else if (auto Data = dyn_cast_or_null<PDBSymbolData>(Symbol.get())) { in getLineInfoForAddress() 104 if (auto PS = dyn_cast_or_null<PDBSymbolPublicSymbol>(PublicSym.get())) in getFunctionName() 116 if (auto Func = dyn_cast_or_null<PDBSymbolFunc>(FuncSymbol.get())) in getFunctionName()
|
/external/clang/tools/libclang/ |
D | CXType.cpp | 243 if (const TypedefNameDecl *TD = dyn_cast_or_null<TypedefNameDecl>(D)) { in clang_getTypedefDeclUnderlyingType() 261 if (const EnumDecl *TD = dyn_cast_or_null<EnumDecl>(D)) { in clang_getEnumDeclIntegerType() 278 if (const EnumConstantDecl *TD = dyn_cast_or_null<EnumConstantDecl>(D)) { in clang_getEnumConstantDeclValue() 294 if (const EnumConstantDecl *TD = dyn_cast_or_null<EnumConstantDecl>(D)) { in clang_getEnumConstantDeclUnsignedValue() 310 if (const FieldDecl *FD = dyn_cast_or_null<FieldDecl>(D)) { in clang_getFieldDeclBitWidth() 586 if (const ObjCMethodDecl *MD = dyn_cast_or_null<ObjCMethodDecl>(D)) in clang_getCursorResultType() 783 dyn_cast_or_null<RecordDecl>(cxcursor::getCursorDecl(PC)); in validateFieldParentType() 818 dyn_cast_or_null<RecordDecl>(cxcursor::getCursorDecl(PC)); in clang_Type_getOffsetOf() 847 if (const FieldDecl *FD = dyn_cast_or_null<FieldDecl>(D)) in clang_Cursor_getOffsetOfField() 849 if (const IndirectFieldDecl *IFD = dyn_cast_or_null<IndirectFieldDecl>(D)) in clang_Cursor_getOffsetOfField() [all …]
|
D | CIndexCXX.cpp | 60 = dyn_cast_or_null<TemplateDecl>(getCursorDecl(C))) in clang_getTemplateCursorKind() 66 = dyn_cast_or_null<ClassTemplatePartialSpecializationDecl>( in clang_getTemplateCursorKind()
|
D | CXCursor.cpp | 469 dyn_cast_or_null<ImplicitParamDecl>(cast<DeclRefExpr>(S)->getDecl())) { in MakeCXCursor() 908 return dyn_cast_or_null<Expr>(getCursorStmt(Cursor)); in getCursorExpr() 946 const NamedDecl *D = dyn_cast_or_null<NamedDecl>(getCursorDecl(cursor)); in getOverriddenCursors() 1071 if (const ObjCMethodDecl *MD = dyn_cast_or_null<ObjCMethodDecl>(D)) in clang_Cursor_getNumArguments() 1073 if (const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(D)) in clang_Cursor_getNumArguments() 1090 if (const ObjCMethodDecl *MD = dyn_cast_or_null<ObjCMethodDecl>(D)) { in clang_Cursor_getArgument() 1094 } else if (const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(D)) { in clang_Cursor_getArgument() 1120 const FunctionDecl *FD = llvm::dyn_cast_or_null<clang::FunctionDecl>( in clang_Cursor_getNumTemplateArguments() 1158 const FunctionDecl *FD = llvm::dyn_cast_or_null<clang::FunctionDecl>( in clang_Cursor_getTemplateArgument() 1319 if (const NamedDecl *namedDecl = dyn_cast_or_null<NamedDecl>(decl)) { in clang_getCursorCompletionString() [all …]
|
/external/clang/lib/ARCMigrate/ |
D | TransRetainReleaseDealloc.cpp | 354 auto *CompS = dyn_cast_or_null<CompoundStmt>(*StmtExprChild.begin()); in checkForGCDOrXPC() 361 auto *DeclS = dyn_cast_or_null<DeclStmt>(*CompStmtChild.begin()); in checkForGCDOrXPC() 366 VarDecl *VD = dyn_cast_or_null<VarDecl>(DeclS->getSingleDecl()); in checkForGCDOrXPC() 430 if (ImplicitCastExpr *castE = dyn_cast_or_null<ImplicitCastExpr>(parent)) in tryRemoving() 433 if (ParenExpr *parenE = dyn_cast_or_null<ParenExpr>(parent)) in tryRemoving() 437 bopE = dyn_cast_or_null<BinaryOperator>(parent)) { in tryRemoving()
|
D | TransUnbridgedCasts.cpp | 187 if (ObjCMethodDecl *method = dyn_cast_or_null<ObjCMethodDecl>(ParentD)) { in transformNonObjCToObjCCast() 379 if (ReturnStmt *retS = dyn_cast_or_null<ReturnStmt>(parent)) { in transformObjCToNonObjCCast() 418 if ((callE = dyn_cast_or_null<CallExpr>( in isPassedToCFRetain() 421 FD = dyn_cast_or_null<FunctionDecl>(callE->getCalleeDecl())) in isPassedToCFRetain() 431 if (CallExpr *callE = dyn_cast_or_null<CallExpr>( in isPassedToCParamWithKnownOwnership() 434 FD = dyn_cast_or_null<FunctionDecl>(callE->getCalleeDecl())) { in isPassedToCParamWithKnownOwnership()
|
D | TransGCCalls.cpp | 48 if (FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(DRE->getDecl())) { in VisitCallExpr()
|
/external/llvm/lib/IR/ |
D | Module.cpp | 192 return dyn_cast_or_null<Function>(getNamedValue(Name)); in getFunction() 208 dyn_cast_or_null<GlobalVariable>(getNamedValue(Name))) in getGlobalVariable() 222 GlobalVariable *GV = dyn_cast_or_null<GlobalVariable>(getNamedValue(Name)); in getOrInsertGlobal() 250 return dyn_cast_or_null<GlobalAlias>(getNamedValue(Name)); in getNamedAlias() 304 dyn_cast_or_null<MDString>(Flag->getOperand(1))) { in getModuleFlagsMetadata()
|
/external/llvm/lib/Analysis/ |
D | TypeBasedAliasAnalysis.cpp | 156 MDNode *P = dyn_cast_or_null<MDNode>(Node->getOperand(1)); in getParent() 190 return dyn_cast_or_null<MDNode>(Node->getOperand(0)); in getBaseType() 193 return dyn_cast_or_null<MDNode>(Node->getOperand(1)); in getAccessType() 240 MDNode *P = dyn_cast_or_null<MDNode>(Node->getOperand(1)); in getParent() 265 MDNode *P = dyn_cast_or_null<MDNode>(Node->getOperand(TheIdx)); in getParent()
|
/external/clang/lib/CodeGen/ |
D | CodeGenPGO.cpp | 643 if (const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(D)) in mapRegionCounters() 645 else if (const ObjCMethodDecl *MD = dyn_cast_or_null<ObjCMethodDecl>(D)) in mapRegionCounters() 647 else if (const BlockDecl *BD = dyn_cast_or_null<BlockDecl>(D)) in mapRegionCounters() 649 else if (const CapturedDecl *CD = dyn_cast_or_null<CapturedDecl>(D)) in mapRegionCounters() 708 if (const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(D)) in computeRegionCounts() 710 else if (const ObjCMethodDecl *MD = dyn_cast_or_null<ObjCMethodDecl>(D)) in computeRegionCounts() 712 else if (const BlockDecl *BD = dyn_cast_or_null<BlockDecl>(D)) in computeRegionCounts() 714 else if (const CapturedDecl *CD = dyn_cast_or_null<CapturedDecl>(D)) in computeRegionCounts()
|
/external/llvm/lib/Transforms/IPO/ |
D | CrossDSOCFI.cpp | 82 auto C = dyn_cast_or_null<ConstantInt>(TM->getValue()); in extractBitSetTypeId() 88 auto FM = dyn_cast_or_null<ValueAsMetadata>(MD->getOperand(1)); in extractBitSetTypeId()
|
/external/clang/lib/Analysis/ |
D | CallGraph.cpp | 200 if (const NamedDecl *ND = dyn_cast_or_null<NamedDecl>(FD)) in print() 221 if (const NamedDecl *ND = dyn_cast_or_null<NamedDecl>(Node->getDecl())) in getNodeLabel()
|
D | Consumed.cpp | 822 dyn_cast_or_null<FunctionDecl>(Call->getDirectCallee()); in VisitCXXOperatorCallExpr() 841 if (const VarDecl *Var = dyn_cast_or_null<VarDecl>(DeclRef->getDecl())) in VisitDeclRefExpr() 852 if (const VarDecl *Var = dyn_cast_or_null<VarDecl>(DeclS->getSingleDecl())) in VisitDeclStmt() 1263 dyn_cast_or_null<IfStmt>(CurrBlock->getTerminator().getStmt())) { in splitState() 1287 dyn_cast_or_null<BinaryOperator>(CurrBlock->getTerminator().getStmt())) { in splitState() 1291 if ((BinOp = dyn_cast_or_null<BinaryOperator>(BinOp->getLHS()))) { in splitState() 1340 const FunctionDecl *D = dyn_cast_or_null<FunctionDecl>(AC.getDecl()); in run()
|
/external/llvm/include/llvm/Support/ |
D | Casting.h | 307 dyn_cast_or_null(const Y &Val) { 314 dyn_cast_or_null(Y &Val) { 320 dyn_cast_or_null(Y *Val) {
|
/external/clang/include/clang/AST/ |
D | LambdaCapture.h | 78 return dyn_cast_or_null<VarDecl>(DeclAndBits.getPointer()); in capturesVariable()
|
D | ASTLambda.h | 58 dyn_cast_or_null<CXXConversionDecl>(F->getTemplatedDecl())) in isLambdaConversionOperator()
|
/external/llvm/lib/Target/ARM/ |
D | ARMConstantPoolValue.cpp | 156 return dyn_cast_or_null<GlobalValue>(CVal); in getGV() 160 return dyn_cast_or_null<BlockAddress>(CVal); in getBlockAddress()
|
/external/llvm/include/llvm/DebugInfo/PDB/ |
D | ConcreteSymbolEnumerator.h | 51 ChildType *ConcreteChild = dyn_cast_or_null<ChildType>(Child.release()); in make_concrete_child()
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
D | ReturnPointerRangeChecker.cpp | 46 const ElementRegion *ER = dyn_cast_or_null<ElementRegion>(R); in checkPreStmt()
|
/external/clang/include/clang/Analysis/Analyses/ |
D | ThreadSafetyCommon.h | 60 const auto *PE1 = dyn_cast_or_null<til::Project>(E1); in partiallyMatches() 63 const auto *PE2 = dyn_cast_or_null<til::Project>(E2); in partiallyMatches() 141 if (!dyn_cast_or_null<NamedDecl>(AC.getDecl())) in init()
|
/external/clang/include/clang/Basic/ |
D | LLVM.h | 58 using llvm::dyn_cast_or_null;
|