Searched refs:dyn_cast_or_null (Results 1 - 25 of 169) sorted by relevance

1234567

/external/clang/include/clang/AST/
H A DLambdaCapture.h75 return dyn_cast_or_null<VarDecl>(DeclAndBits.getPointer());
H A DASTLambda.h58 dyn_cast_or_null<CXXConversionDecl>(F->getTemplatedDecl()))
/external/llvm/unittests/Support/
H A DCasting.cpp63 return dyn_cast_or_null<foo>(this);
155 TEST(CastingTest, dyn_cast_or_null) {
156 const foo *F1 = dyn_cast_or_null<foo>(B2);
158 const foo *F2 = dyn_cast_or_null<foo>(B2);
160 const foo *F3 = dyn_cast_or_null<foo>(B4);
162 foo *F4 = dyn_cast_or_null<foo>(fub());
/external/clang/tools/libclang/
H A DCIndexCXX.cpp60 = dyn_cast_or_null<TemplateDecl>(getCursorDecl(C)))
66 = dyn_cast_or_null<ClassTemplatePartialSpecializationDecl>(
H A DCXCursor.cpp453 dyn_cast_or_null<ImplicitParamDecl>(cast<DeclRefExpr>(S)->getDecl())) {
830 return dyn_cast_or_null<Expr>(getCursorStmt(Cursor));
868 const NamedDecl *D = dyn_cast_or_null<NamedDecl>(getCursorDecl(cursor));
993 if (const ObjCMethodDecl *MD = dyn_cast_or_null<ObjCMethodDecl>(D))
995 if (const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(D))
1012 if (const ObjCMethodDecl *MD = dyn_cast_or_null<ObjCMethodDecl>(D)) {
1016 } else if (const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(D)) {
1107 if (const NamedDecl *namedDecl = dyn_cast_or_null<NamedDecl>(decl)) {
1251 ME = dyn_cast_or_null<MemberExpr>(CE->getCallee());
1255 MD = dyn_cast_or_null<CXXMethodDec
[all...]
H A DCXType.cpp243 if (const TypedefNameDecl *TD = dyn_cast_or_null<TypedefNameDecl>(D)) {
261 if (const EnumDecl *TD = dyn_cast_or_null<EnumDecl>(D)) {
278 if (const EnumConstantDecl *TD = dyn_cast_or_null<EnumConstantDecl>(D)) {
294 if (const EnumConstantDecl *TD = dyn_cast_or_null<EnumConstantDecl>(D)) {
310 if (const FieldDecl *FD = dyn_cast_or_null<FieldDecl>(D)) {
582 if (const ObjCMethodDecl *MD = dyn_cast_or_null<ObjCMethodDecl>(D))
781 dyn_cast_or_null<RecordDecl>(cxcursor::getCursorDecl(PC));
840 const FieldDecl *FD = dyn_cast_or_null<FieldDecl>(cxcursor::getCursorDecl(C));
/external/clang/include/clang/Basic/
H A DLLVM.h57 using llvm::dyn_cast_or_null;
/external/clang/lib/ARCMigrate/
H A DTransGCCalls.cpp48 if (FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(DRE->getDecl())) {
H A DTransRetainReleaseDealloc.cpp364 CompoundStmt *CompS = dyn_cast_or_null<CompoundStmt>(*StmtExprChild);
371 DeclStmt *DeclS = dyn_cast_or_null<DeclStmt>(*CompStmtChild);
376 VarDecl *VD = dyn_cast_or_null<VarDecl>(DeclS->getSingleDecl());
440 if (ImplicitCastExpr *castE = dyn_cast_or_null<ImplicitCastExpr>(parent))
443 if (ParenExpr *parenE = dyn_cast_or_null<ParenExpr>(parent))
447 bopE = dyn_cast_or_null<BinaryOperator>(parent)) {
H A DTransUnbridgedCasts.cpp187 if (ObjCMethodDecl *method = dyn_cast_or_null<ObjCMethodDecl>(ParentD)) {
379 if (ReturnStmt *retS = dyn_cast_or_null<ReturnStmt>(parent)) {
418 if ((callE = dyn_cast_or_null<CallExpr>(
421 FD = dyn_cast_or_null<FunctionDecl>(callE->getCalleeDecl()))
431 if (CallExpr *callE = dyn_cast_or_null<CallExpr>(
434 FD = dyn_cast_or_null<FunctionDecl>(callE->getCalleeDecl())) {
/external/clang/lib/StaticAnalyzer/Checkers/
H A DReturnPointerRangeChecker.cpp46 const ElementRegion *ER = dyn_cast_or_null<ElementRegion>(R);
H A DNoReturnFunctionChecker.cpp45 if (const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(CE.getDecl()))
H A DUndefBranchChecker.cpp42 if (const Expr *ExI = dyn_cast_or_null<Expr>(*I)) {
H A DBoolAssignmentChecker.cpp59 dyn_cast_or_null<TypedValueRegion>(loc.getAsRegion());
H A DGenericTaintChecker.cpp581 const SymbolicRegion *SymReg = dyn_cast_or_null<SymbolicRegion>(MemReg);
589 const DeclRegion *DeclReg = dyn_cast_or_null<DeclRegion>(Sm->getRegion());
595 if (const VarDecl *D = dyn_cast_or_null<VarDecl>(DeclReg->getDecl())) {
/external/llvm/lib/IR/
H A DModule.cpp171 return dyn_cast_or_null<Function>(getNamedValue(Name));
187 dyn_cast_or_null<GlobalVariable>(getNamedValue(Name)))
201 GlobalVariable *GV = dyn_cast_or_null<GlobalVariable>(getNamedValue(Name));
229 return dyn_cast_or_null<GlobalAlias>(getNamedValue(Name));
H A DDebugInfo.cpp62 return dyn_cast_or_null<MDNode>(getField(DbgNode, Elt));
66 if (MDString *MDS = dyn_cast_or_null<MDString>(getField(DbgNode, Elt)))
81 dyn_cast_or_null<ConstantInt>(DbgNode->getOperand(Elt)))
93 dyn_cast_or_null<ConstantInt>(DbgNode->getOperand(Elt)))
109 return dyn_cast_or_null<GlobalVariable>(DbgNode->getOperand(Elt));
118 return dyn_cast_or_null<Constant>(DbgNode->getOperand(Elt));
127 return dyn_cast_or_null<Function>(DbgNode->getOperand(Elt));
144 if (auto *CI = dyn_cast_or_null<ConstantInt>(ComplexExpr->getOperand(Idx)))
/external/llvm/lib/Analysis/
H A DTypeBasedAliasAnalysis.cpp157 MDNode *P = dyn_cast_or_null<MDNode>(Node->getOperand(1));
191 return dyn_cast_or_null<MDNode>(Node->getOperand(0));
194 return dyn_cast_or_null<MDNode>(Node->getOperand(1));
239 MDNode *P = dyn_cast_or_null<MDNode>(Node->getOperand(1));
264 MDNode *P = dyn_cast_or_null<MDNode>(Node->getOperand(TheIdx));
/external/llvm/lib/Transforms/Instrumentation/
H A DMaximumSpanningTree.h42 const BasicBlock *BB = dyn_cast_or_null<BasicBlock>(X);
/external/clang/lib/Analysis/
H A DCallGraph.cpp203 if (const NamedDecl *ND = dyn_cast_or_null<NamedDecl>(FD))
224 if (const NamedDecl *ND = dyn_cast_or_null<NamedDecl>(Node->getDecl()))
H A DConsumed.cpp822 dyn_cast_or_null<FunctionDecl>(Call->getDirectCallee());
841 if (const VarDecl *Var = dyn_cast_or_null<VarDecl>(DeclRef->getDecl()))
852 if (const VarDecl *Var = dyn_cast_or_null<VarDecl>(DeclS->getSingleDecl()))
1275 dyn_cast_or_null<IfStmt>(CurrBlock->getTerminator().getStmt())) {
1299 dyn_cast_or_null<BinaryOperator>(CurrBlock->getTerminator().getStmt())) {
1303 if ((BinOp = dyn_cast_or_null<BinaryOperator>(BinOp->getLHS()))) {
1353 const FunctionDecl *D = dyn_cast_or_null<FunctionDecl>(AC.getDecl());
/external/clang/lib/CodeGen/
H A DCodeGenPGO.cpp850 if (const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(D))
852 else if (const ObjCMethodDecl *MD = dyn_cast_or_null<ObjCMethodDecl>(D))
854 else if (const BlockDecl *BD = dyn_cast_or_null<BlockDecl>(D))
856 else if (const CapturedDecl *CD = dyn_cast_or_null<CapturedDecl>(D))
866 if (const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(D))
868 else if (const ObjCMethodDecl *MD = dyn_cast_or_null<ObjCMethodDecl>(D))
870 else if (const BlockDecl *BD = dyn_cast_or_null<BlockDecl>(D))
872 else if (const CapturedDecl *CD = dyn_cast_or_null<CapturedDecl>(D))
/external/llvm/lib/Target/ARM/
H A DARMConstantPoolValue.cpp157 return dyn_cast_or_null<GlobalValue>(CVal);
161 return dyn_cast_or_null<BlockAddress>(CVal);
/external/llvm/lib/Transforms/Utils/
H A DFlattenCFG.cpp392 Instruction *CInst2 = dyn_cast_or_null<Instruction>(IfCond2);
402 Instruction *CInst1 = dyn_cast_or_null<Instruction>(IfCond1);
/external/chromium_org/v8/tools/gcmole/
H A Dgcmole.cc529 clang::type* concrete_expr = llvm::dyn_cast_or_null<clang::type>(expr); \
829 llvm::dyn_cast_or_null<clang::CXXMemberCallExpr>(call);
857 clang::type* concrete_stmt = llvm::dyn_cast_or_null<clang::type>(stmt); \
863 if (clang::Expr* expr = llvm::dyn_cast_or_null<clang::Expr>(stmt)) {
1082 llvm::dyn_cast_or_null<clang::PointerType>(qtype.getTypePtrOrNull());
1090 llvm::dyn_cast_or_null<clang::CXXRecordDecl>(pointee->getDecl());

Completed in 3767 milliseconds

1234567