|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
References
include/llvm/Analysis/SparsePropagation.h 319 dyn_cast_or_null<Constant>(LatticeFunc->GetValueFromLatticeVal(
357 Constant *C = dyn_cast_or_null<Constant>(LatticeFunc->GetValueFromLatticeVal(
include/llvm/IR/DebugInfoMetadata.h 849 return dyn_cast_or_null<DIObjCProperty>(getExtraData());
855 if (auto *CI = dyn_cast_or_null<ConstantInt>(CM->getValue()))
include/llvm/IR/InstrTypes.h 1293 return dyn_cast_or_null<Function>(getCalledOperand());
include/llvm/IR/Metadata.h 591 if (auto *V = dyn_cast_or_null<ConstantAsMetadata>(MD))
include/llvm/IR/PatternMatch.h 164 if (auto *CI = dyn_cast_or_null<ConstantInt>(C->getSplatValue())) {
184 if (auto *CI = dyn_cast_or_null<ConstantFP>(C->getSplatValue())) {
229 if (const auto *CI = dyn_cast_or_null<ConstantInt>(C->getSplatValue()))
269 if (auto *CI = dyn_cast_or_null<ConstantInt>(C->getSplatValue()))
288 if (const auto *CF = dyn_cast_or_null<ConstantFP>(C->getSplatValue()))
617 if (auto *CFP = dyn_cast_or_null<ConstantFP>(C->getSplatValue()))
656 CI = dyn_cast_or_null<ConstantInt>(C->getSplatValue());
lib/Analysis/ConstantFolding.cpp 81 auto *ElementCI = dyn_cast_or_null<ConstantInt>(Element);
218 Src = dyn_cast_or_null<ConstantInt>(Src);
2002 dyn_cast_or_null<ConstantFP>(Op->getAggregateElement(0U)))
2012 dyn_cast_or_null<ConstantFP>(Op->getAggregateElement(0U)))
2236 dyn_cast_or_null<ConstantFP>(Op->getAggregateElement(0U)))
2246 dyn_cast_or_null<ConstantFP>(Op->getAggregateElement(0U)))
2256 dyn_cast_or_null<ConstantFP>(Op->getAggregateElement(0U)))
2266 dyn_cast_or_null<ConstantFP>(Op->getAggregateElement(0U)))
lib/Analysis/InlineCost.cpp 436 if (auto *AllocSize = dyn_cast_or_null<ConstantInt>(Size)) {
1081 if (Constant *C = dyn_cast_or_null<Constant>(SimpleV))
1113 if (Constant *C = dyn_cast_or_null<Constant>(SimpleV))
1217 C = dyn_cast_or_null<Constant>(SimplifiedValues.lookup(I));
1309 Function *F = dyn_cast_or_null<Function>(SimplifiedValues.lookup(Callee));
1349 dyn_cast_or_null<ConstantInt>(
1365 dyn_cast_or_null<Constant>(SimplifiedValues.lookup(SI.getCondition()));
1866 dyn_cast_or_null<ConstantInt>(SimplifiedValues.lookup(Cond))) {
1877 dyn_cast_or_null<ConstantInt>(SimplifiedValues.lookup(Cond))) {
lib/Analysis/InstructionSimplify.cpp 951 Constant *C = dyn_cast_or_null<Constant>(V);
lib/Analysis/LazyValueInfo.cpp 1356 if (auto *C = dyn_cast_or_null<ConstantInt>(
1368 if (auto *C = dyn_cast_or_null<ConstantInt>(
lib/Analysis/LoopCacheAnalysis.cpp 228 const SCEVConstant *SCEVConst = dyn_cast_or_null<SCEVConstant>(Distance);
lib/Analysis/LoopInfo.cpp 172 if (BranchInst *BI = dyn_cast_or_null<BranchInst>(Latch->getTerminator()))
232 BranchInst *BI = dyn_cast_or_null<BranchInst>(Latch->getTerminator());
406 ConstantInt *Init = dyn_cast_or_null<ConstantInt>(IndDesc.getStartValue());
lib/Analysis/LoopUnrollAnalyzer.cpp 85 if (Constant *C = dyn_cast_or_null<Constant>(SimpleV))
lib/Analysis/MemorySSA.cpp 1751 Def = dyn_cast_or_null<MemoryDef>(Template) != nullptr;
1752 Use = dyn_cast_or_null<MemoryUse>(Template) != nullptr;
2036 MemoryAccess *MD = dyn_cast_or_null<MemoryDef>(getMemoryAccess(&I));
lib/Analysis/MemorySSAUpdater.cpp 94 MemoryPhi *Phi = dyn_cast_or_null<MemoryPhi>(MSSA->getMemoryAccess(BB));
lib/Analysis/MustExecute.cpp 145 auto *SimpleCst = dyn_cast_or_null<Constant>(SimpleValOrNull);
lib/Analysis/PHITransAddr.cpp 326 if (Instruction *Inst = dyn_cast_or_null<Instruction>(Addr))
lib/Analysis/ScalarEvolution.cpp 7987 auto *CondVal = dyn_cast_or_null<ConstantInt>(
lib/Analysis/ValueTracking.cpp 1434 if (dyn_cast_or_null<UndefValue>(P->hasConstantValue()))
1683 auto *ElementCI = dyn_cast_or_null<ConstantInt>(Element);
2347 auto *Elt = dyn_cast_or_null<ConstantInt>(CV->getAggregateElement(i));
2961 auto *CFP = dyn_cast_or_null<ConstantFP>(CV->getAggregateElement(i));
lib/AsmParser/LLParser.cpp 3008 return dyn_cast_or_null<BasicBlock>(
3013 return dyn_cast_or_null<BasicBlock>(
3295 BB = dyn_cast_or_null<BasicBlock>(
lib/Bitcode/Reader/BitcodeReader.cpp 2249 if (Constant *C = dyn_cast_or_null<Constant>(ValueList[ValID]))
2262 Constant *C = dyn_cast_or_null<Constant>(ValueList[ValID]);
2278 if (Constant *C = dyn_cast_or_null<Constant>(ValueList[ValID]))
2291 if (Constant *C = dyn_cast_or_null<Constant>(ValueList[ValID]))
2304 if (Constant *C = dyn_cast_or_null<Constant>(ValueList[ValID]))
2648 dyn_cast_or_null<VectorType>(getTypeByID(Record[0]));
2701 dyn_cast_or_null<VectorType>(getTypeByID(Record[0]));
2786 dyn_cast_or_null<Function>(ValueList.getConstantFwdRef(Record[1],FnTy));
3849 Scope = dyn_cast_or_null<MDNode>(
3855 IA = dyn_cast_or_null<MDNode>(
4433 dyn_cast_or_null<ConstantInt>(getFnValueByID(Record[3+i*2], OpTy));
4746 auto *PTy = dyn_cast_or_null<PointerType>(Ty);
5171 if ((A = dyn_cast_or_null<Argument>(ValueList[i])) && !A->getParent()) {
lib/Bitcode/Reader/MetadataLoader.cpp 250 if (auto *N = dyn_cast_or_null<MDNode>(MD))
257 return dyn_cast_or_null<MDNode>(getMetadataFwdRef(Idx));
316 auto *UUID = dyn_cast_or_null<MDString>(MaybeUUID);
330 auto *Tuple = dyn_cast_or_null<MDTuple>(MaybeTuple);
347 auto *Tuple = dyn_cast_or_null<MDTuple>(MaybeTuple);
386 auto *N = dyn_cast_or_null<MDNode>(MD);
486 if (auto *SPs = dyn_cast_or_null<MDTuple>(CU_SP.second))
502 if (auto *GVs = dyn_cast_or_null<MDTuple>(CU->getRawGlobalVariables()))
538 dyn_cast_or_null<Argument>(DDI->getAddress())) {
1575 if (auto *CMD = dyn_cast_or_null<ConstantAsMetadata>(CUorFn))
1738 if (auto *CMD = dyn_cast_or_null<ConstantAsMetadata>(Expr)) {
2047 MDNode *MD = dyn_cast_or_null<MDNode>(Node);
lib/CodeGen/AsmPrinter/AsmPrinter.cpp 2615 const GlobalValue *BaseGV = dyn_cast_or_null<GlobalValue>(BaseCst);
lib/CodeGen/AsmPrinter/CodeViewDebug.cpp 388 if (const auto *Class = dyn_cast_or_null<DICompositeType>(Scope)) {
421 if (auto *ReturnDCTy = dyn_cast_or_null<DICompositeType>(ReturnTy)) {
1909 dyn_cast_or_null<DIDerivedType>(ReturnAndArgs[Index])) {
2064 if (auto *Enumerator = dyn_cast_or_null<DIEnumerator>(Element)) {
2381 dyn_cast_or_null<ConstantInt>(Member->getStorageOffsetInBits())) {
3123 if (const auto *MemberDecl = dyn_cast_or_null<DIDerivedType>(
lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp 767 auto Dep = dyn_cast_or_null<const DILocalVariable>(Dependency);
lib/CodeGen/AsmPrinter/DwarfDebug.cpp 883 if (auto *SP = dyn_cast_or_null<DISubprogram>(Scope))
lib/CodeGen/AsmPrinter/DwarfUnit.cpp 923 dyn_cast_or_null<ConstantInt>(DDTy->getDiscriminantValue())) {
1398 if (auto *Element = dyn_cast_or_null<DINode>(Elements[i]))
1421 auto *Enum = dyn_cast_or_null<DIEnumerator>(Elements[i]);
1592 if (const ConstantInt *CI = dyn_cast_or_null<ConstantInt>(DT->getConstant()))
1594 if (const ConstantFP *CFP = dyn_cast_or_null<ConstantFP>(DT->getConstant()))
lib/CodeGen/CodeGenPrepare.cpp 4920 PointerType *BasePtrTy = dyn_cast_or_null<PointerType>(BaseTy);
4921 PointerType *ScalePtrTy = dyn_cast_or_null<PointerType>(ScaleTy);
4964 Instruction *I = dyn_cast_or_null<Instruction>(Result);
7133 Instruction *VI = dyn_cast_or_null<Instruction>(DVI->getValue());
lib/CodeGen/LowerEmuTLS.cpp 140 EmuTlsTmplVar = dyn_cast_or_null<GlobalVariable>(
lib/CodeGen/MIRParser/MIParser.cpp 630 BB = dyn_cast_or_null<BasicBlock>(
2151 BB = dyn_cast_or_null<BasicBlock>(
lib/CodeGen/MIRParser/MIRParser.cpp 226 dyn_cast_or_null<yaml::BlockScalarNode>(In.getCurrentNode())) {
697 Alloca = dyn_cast_or_null<AllocaInst>(
820 const Constant *Value = dyn_cast_or_null<Constant>(
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp 340 const Instruction *I = dyn_cast_or_null<Instruction>(V);
3885 if (const auto *CI = dyn_cast_or_null<ConstantInt>(C)) {
4358 auto *CI = dyn_cast_or_null<ConstantInt>(C);
6581 const AllocaInst *LifetimeObject = dyn_cast_or_null<AllocaInst>(*Object);
lib/CodeGen/StackColoring.cpp 973 const AllocaInst *AI = dyn_cast_or_null<AllocaInst>(MMO->getValue());
1042 const AllocaInst *AI = dyn_cast_or_null<AllocaInst>(V);
lib/CodeGen/StackSlotColoring.cpp 183 dyn_cast_or_null<FixedStackPseudoSourceValue>(
lib/CodeGen/TargetInstrInfo.cpp 358 dyn_cast_or_null<FixedStackPseudoSourceValue>((*o)->getPseudoValue()))
372 dyn_cast_or_null<FixedStackPseudoSourceValue>((*o)->getPseudoValue()))
lib/CodeGen/TargetLoweringBase.cpp 1684 dyn_cast_or_null<GlobalVariable>(M->getNamedValue(UnsafeStackPtrVar));
lib/CodeGen/WinEHPrepare.cpp 938 auto *CatchPad = dyn_cast_or_null<CatchPadInst>(FuncletPad);
939 auto *CleanupPad = dyn_cast_or_null<CleanupPadInst>(FuncletPad);
lib/DebugInfo/DWARF/DWARFContext.cpp 616 return dyn_cast_or_null<DWARFCompileUnit>(
900 return dyn_cast_or_null<DWARFCompileUnit>(
lib/DebugInfo/PDB/PDBContext.cpp 41 if (auto Func = dyn_cast_or_null<PDBSymbolFunc>(Symbol.get())) {
43 } else if (auto Data = dyn_cast_or_null<PDBSymbolData>(Symbol.get())) {
106 auto *Func = dyn_cast_or_null<PDBSymbolFunc>(FuncSymbol.get());
114 if (auto *PS = dyn_cast_or_null<PDBSymbolPublicSymbol>(PublicSym.get())) {
lib/DebugInfo/PDB/PDBSymbolTypeFunctionSig.cpp 85 if (auto Builtin = llvm::dyn_cast_or_null<PDBSymbolTypeBuiltin>(Last.get())) {
lib/DebugInfo/Symbolize/Symbolize.cpp 385 if (MachOUniversalBinary *UB = dyn_cast_or_null<MachOUniversalBinary>(Bin)) {
lib/ExecutionEngine/Orc/ExecutionUtils.cpp 24 GV ? dyn_cast_or_null<ConstantArray>(GV->getInitializer()) : nullptr),
57 if (Function *F = dyn_cast_or_null<Function>(FuncC)) {
60 } else if (ConstantExpr *CE = dyn_cast_or_null<ConstantExpr>(FuncC)) {
62 FuncC = dyn_cast_or_null<ConstantExpr>(CE->getOperand(0));
lib/IR/AutoUpgrade.cpp 3574 if (auto *Offset = dyn_cast_or_null<Constant>(CI->getArgOperand(1)))
4077 auto *T = dyn_cast_or_null<MDTuple>(MD);
4101 auto *T = dyn_cast_or_null<MDTuple>(MD);
lib/IR/BasicBlock.cpp 188 if (auto *CI = dyn_cast_or_null<CallInst>(RI->getPrevNode()))
lib/IR/ConstantFold.cpp 2136 CI = dyn_cast_or_null<ConstantInt>(CV->getSplatValue());
lib/IR/Constants.cpp 51 if (ConstantFP *SplatCFP = dyn_cast_or_null<ConstantFP>(CV->getSplatValue()))
77 if (ConstantFP *SplatCFP = dyn_cast_or_null<ConstantFP>(CV->getSplatValue()))
208 auto *CFP = dyn_cast_or_null<ConstantFP>(this->getAggregateElement(i));
221 auto *CFP = dyn_cast_or_null<ConstantFP>(this->getAggregateElement(i));
234 auto *CFP = dyn_cast_or_null<ConstantFP>(this->getAggregateElement(i));
247 auto *CFP = dyn_cast_or_null<ConstantFP>(this->getAggregateElement(i));
lib/IR/Core.cpp 933 if (auto *MD = dyn_cast_or_null<MetadataAsValue>(unwrap(Val)))
941 if (auto *MD = dyn_cast_or_null<MetadataAsValue>(unwrap(Val)))
lib/IR/DIBuilder.cpp 633 dyn_cast_or_null<DICompositeType>(getNonCompileUnitScope(Context)))
lib/IR/DebugInfo.cpp 44 if (auto *LocalScope = dyn_cast_or_null<DILocalScope>(Scope))
418 MDNode *mapNode(Metadata *N) { return dyn_cast_or_null<MDNode>(map(N)); }
655 if (auto *T = dyn_cast_or_null<MDTuple>(Attachment.second))
lib/IR/LLVMContextImpl.h 453 if (auto *CT = dyn_cast_or_null<DICompositeType>(Scope))
485 auto *CT = dyn_cast_or_null<DICompositeType>(Scope);
676 if (auto *CT = dyn_cast_or_null<DICompositeType>(Scope))
712 auto *CT = dyn_cast_or_null<DICompositeType>(Scope);
lib/IR/Metadata.cpp 533 if (auto *N = dyn_cast_or_null<MDNode>(Op))
884 if (MDNode *N = dyn_cast_or_null<MDNode>(Ops[0]))
lib/IR/Module.cpp 175 return dyn_cast_or_null<Function>(getNamedValue(Name));
192 dyn_cast_or_null<GlobalVariable>(getNamedValue(Name)))
208 GlobalVariable *GV = dyn_cast_or_null<GlobalVariable>(getNamedValue(Name));
240 return dyn_cast_or_null<GlobalAlias>(getNamedValue(Name));
244 return dyn_cast_or_null<GlobalIFunc>(getNamedValue(Name));
574 auto *CM = dyn_cast_or_null<ConstantAsMetadata>(getModuleFlag("SDK Version"));
577 auto *Arr = dyn_cast_or_null<ConstantDataArray>(CM->getValue());
lib/IR/ModuleSummaryIndex.cpp 71 auto *Summary = dyn_cast_or_null<FunctionSummary>(GlobSummary.get());
308 auto *FS = dyn_cast_or_null<FunctionSummary>(GVS);
465 if (auto *AS = dyn_cast_or_null<AliasSummary>(SummaryIt.second)) {
470 if (auto *FS = dyn_cast_or_null<FunctionSummary>(SummaryIt.second))
lib/IR/ProfileSummary.cpp 143 MDTuple *Tuple = dyn_cast_or_null<MDTuple>(MD);
lib/IR/Type.cpp 565 const ConstantInt *CU = dyn_cast_or_null<ConstantInt>(C);
lib/IR/Verifier.cpp 1064 auto *Enum = dyn_cast_or_null<DICompositeType>(Op);
2335 const DILocation *DL = dyn_cast_or_null<DILocation>(Node);
3098 if (BitCastInst *BI = dyn_cast_or_null<BitCastInst>(Next)) {
3106 ReturnInst *Ret = dyn_cast_or_null<ReturnInst>(Next);
4989 DILocalVariable *V = dyn_cast_or_null<DILocalVariable>(I.getRawVariable());
4990 DIExpression *E = dyn_cast_or_null<DIExpression>(I.getRawExpression());
5060 DIExpression *E = dyn_cast_or_null<DIExpression>(I.getRawExpression());
lib/LTO/LTO.cpp 236 if (auto *AS = dyn_cast_or_null<AliasSummary>(S))
lib/Linker/LinkModules.cpp 133 if (const auto *GA = dyn_cast_or_null<GlobalAlias>(GVal)) {
141 GVar = dyn_cast_or_null<GlobalVariable>(GVal);
lib/MC/MCCodePadder.cpp 125 dyn_cast_or_null<MCDataFragment>(InstFragment))
133 dyn_cast_or_null<MCRelaxableFragment>(InstFragment))
lib/MC/MCObjectStreamer.cpp 162 MCDataFragment *F = dyn_cast_or_null<MCDataFragment>(getCurrentFragment());
172 dyn_cast_or_null<MCPaddingFragment>(getCurrentFragment());
240 auto *F = dyn_cast_or_null<MCDataFragment>(getCurrentFragment());
253 auto *DF = dyn_cast_or_null<MCDataFragment>(F);
lib/MC/MCParser/ELFAsmParser.cpp 454 Associated = dyn_cast_or_null<MCSymbolELF>(getContext().lookupSymbol(Name));
lib/MC/MCXCOFFStreamer.cpp 55 auto *F = dyn_cast_or_null<MCDataFragment>(getCurrentFragment());
lib/Object/ModuleSymbolTable.cpp 199 if (dyn_cast_or_null<Function>(GV->getBaseObject()))
lib/ObjectYAML/ELFEmitter.cpp 536 dyn_cast_or_null<ELFYAML::RawContentSection>(YAMLSec);
613 dyn_cast_or_null<ELFYAML::RawContentSection>(YAMLSec);
lib/ProfileData/InstrProf.cpp 1081 auto *InitVal = dyn_cast_or_null<ConstantInt>(IRInstrVar->getInitializer());
lib/Support/YAMLTraits.cpp 134 MapHNode *MN = dyn_cast_or_null<MapHNode>(CurrentNode);
194 MapHNode *MN = dyn_cast_or_null<MapHNode>(CurrentNode);
lib/TableGen/Record.cpp 947 dyn_cast_or_null<IntInit>(LHS->convertInitializerTo(IntRecTy::get()));
949 dyn_cast_or_null<IntInit>(RHS->convertInitializerTo(IntRecTy::get()));
986 dyn_cast_or_null<IntInit>(LHS->convertInitializerTo(IntRecTy::get()));
988 dyn_cast_or_null<IntInit>(RHS->convertInitializerTo(IntRecTy::get()));
1180 if (IntInit *LHSi = dyn_cast_or_null<IntInit>(
1221 if (IntInit *Value = dyn_cast_or_null<IntInit>(
1823 if (IntInit *CondI = dyn_cast_or_null<IntInit>(
lib/TableGen/TGParser.cpp 675 IntInit *II = dyn_cast_or_null<IntInit>(CurVal);
693 IntInit *II_End = dyn_cast_or_null<IntInit>(I_End);
lib/Target/AArch64/AArch64ISelLowering.cpp 2883 auto *Fn = dyn_cast_or_null<Function>(GSD ? GSD->getGlobal() : nullptr);
lib/Target/AArch64/AArch64StackTagging.cpp 538 dyn_cast_or_null<AllocaInst>(DVI->getVariableLocation())) {
lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp 5282 const MCConstantExpr *Value = dyn_cast_or_null<MCConstantExpr>(Expr);
lib/Target/AMDGPU/AMDGPULibCalls.cpp 896 CF = CDV ? dyn_cast_or_null<ConstantFP>(CDV->getSplatValue()) : nullptr;
897 CINT = CDV ? dyn_cast_or_null<ConstantInt>(CDV->getSplatValue()) : nullptr;
1316 CallInst *XI = dyn_cast_or_null<CallInst>(U);
1435 ConstantFP *fpopr0 = dyn_cast_or_null<ConstantFP>(copr0);
1436 ConstantFP *fpopr1 = dyn_cast_or_null<ConstantFP>(copr1);
1437 ConstantFP *fpopr2 = dyn_cast_or_null<ConstantFP>(copr2);
1589 if (ConstantInt *iopr1 = dyn_cast_or_null<ConstantInt>(copr1)) {
1598 if (ConstantInt *iopr1 = dyn_cast_or_null<ConstantInt>(copr1)) {
1658 ConstantDataVector *CDV0 = dyn_cast_or_null<ConstantDataVector>(copr0);
1659 ConstantDataVector *CDV1 = dyn_cast_or_null<ConstantDataVector>(copr1);
1660 ConstantDataVector *CDV2 = dyn_cast_or_null<ConstantDataVector>(copr2);
lib/Target/AMDGPU/AMDGPULibFunc.cpp 944 Function *F = dyn_cast_or_null<Function>(
959 Function *F = dyn_cast_or_null<Function>(
lib/Target/AMDGPU/AMDGPUPerfHintAnalysis.cpp 244 AM.BaseGV = dyn_cast_or_null<GlobalValue>(const_cast<Value *>(Ptr));
lib/Target/AMDGPU/SIISelLowering.cpp 1337 const Instruction *I = dyn_cast_or_null<Instruction>(Ptr);
lib/Target/ARM/ARMConstantPoolValue.cpp 184 return dyn_cast_or_null<GlobalValue>(CVal);
188 return dyn_cast_or_null<BlockAddress>(CVal);
lib/Target/ARM/AsmParser/ARMAsmParser.cpp11203 const MCConstantExpr *Value = dyn_cast_or_null<MCConstantExpr>(Expr);
lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp 557 if (const MCSymbolRefExpr *SRE = dyn_cast_or_null<MCSymbolRefExpr>(Value)) {
617 auto *DF = dyn_cast_or_null<MCDataFragment>(getCurrentFragment());
lib/Target/BPF/BPFAbstractMemberAccess.cpp 219 if (auto *Element = dyn_cast_or_null<DINode>(Elements[I]))
lib/Target/BPF/BTFDebug.cpp 483 if (auto *Element = dyn_cast_or_null<DINode>(Elements[I]))
lib/Target/Hexagon/HexagonISelLowering.cpp 3233 const auto *GO = dyn_cast_or_null<const GlobalObject>(GA->getGlobal());
lib/Target/Hexagon/HexagonLoopIdiomRecognition.cpp 1853 SelectInst *SelI = dyn_cast_or_null<SelectInst>(T);
lib/Target/Mips/MipsISelLowering.cpp 3042 dyn_cast_or_null<const ExternalSymbolSDNode>(Callee.getNode());
3348 dyn_cast_or_null<const ExternalSymbolSDNode>(CLI.Callee.getNode());
lib/Target/NVPTX/NVPTXAsmPrinter.cpp 1818 if (const auto *constInt = dyn_cast_or_null<ConstantInt>(
1840 if (const auto *constInt = dyn_cast_or_null<ConstantInt>(
lib/Target/RISCV/MCTargetDesc/RISCVMCExpr.cpp 60 const auto *DF = dyn_cast_or_null<MCDataFragment>(AUIPCSymbol->getFragment());
67 DF = dyn_cast_or_null<MCDataFragment>(DF->getNextNode());
lib/Target/SystemZ/SystemZTargetTransformInfo.cpp 385 ? dyn_cast_or_null<const ConstantInt>(C->getSplatValue())
lib/Target/TargetMachine.cpp 184 const Function *F = dyn_cast_or_null<Function>(GV);
lib/Target/X86/X86FrameLowering.cpp 2544 ConstantInt *ValConst = dyn_cast_or_null<ConstantInt>(NodeVal->getValue());
lib/Target/X86/X86ISelDAGToDAG.cpp 97 dyn_cast_or_null<RegisterSDNode>(Base_Reg.getNode()))
392 (RegNode = dyn_cast_or_null<RegisterSDNode>(
lib/Target/X86/X86ISelLowering.cpp 3622 const auto *CI = dyn_cast_or_null<CallInst>(CLI.CS.getInstruction());
3626 const auto *II = dyn_cast_or_null<InvokeInst>(CLI.CS.getInstruction());
23567 auto *Fn = dyn_cast_or_null<Function>(GSD ? GSD->getGlobal() : nullptr);
lib/Target/X86/X86Subtarget.cpp 191 const Function *F = dyn_cast_or_null<Function>(GV);
lib/Transforms/Coroutines/CoroFrame.cpp 891 if ((LandingPad = dyn_cast_or_null<LandingPadInst>(BB.getFirstNonPHI()))) {
lib/Transforms/IPO/CrossDSOCFI.cpp 70 auto C = dyn_cast_or_null<ConstantInt>(TM->getValue());
lib/Transforms/IPO/FunctionImport.cpp 994 auto *GO = dyn_cast_or_null<GlobalObject>(&GV);
lib/Transforms/IPO/GlobalOpt.cpp 325 ConstantExpr *CE = dyn_cast_or_null<ConstantExpr>(
lib/Transforms/IPO/GlobalSplit.cpp 47 auto *Init = dyn_cast_or_null<ConstantStruct>(GV.getInitializer());
lib/Transforms/IPO/HotColdSplitting.cpp 119 dyn_cast_or_null<CallInst>(BB.getTerminator()->getPrevNode()))
lib/Transforms/IPO/IPConstantPropagation.cpp 86 Constant *C = dyn_cast_or_null<Constant>(V);
lib/Transforms/IPO/MergeFunctions.cpp 580 AllocaInst *AI = dyn_cast_or_null<AllocaInst>(DDI->getAddress());
lib/Transforms/IPO/ThinLTOBitcodeWriter.cpp 281 if (auto *GVar = dyn_cast_or_null<GlobalVariable>(GV->getBaseObject()))
305 if (auto *GVar = dyn_cast_or_null<GlobalVariable>(GV->getBaseObject()))
lib/Transforms/InstCombine/InstCombineCalls.cpp 488 auto *COp = dyn_cast_or_null<ConstantInt>(CElt);
739 C0 ? dyn_cast_or_null<ConstantInt>(C0->getAggregateElement((unsigned)0))
878 C0 ? dyn_cast_or_null<ConstantInt>(C0->getAggregateElement((unsigned)0))
881 C1 ? dyn_cast_or_null<ConstantInt>(C1->getAggregateElement((unsigned)0))
2915 C1 ? dyn_cast_or_null<ConstantInt>(C1->getAggregateElement((unsigned)0))
2918 C1 ? dyn_cast_or_null<ConstantInt>(C1->getAggregateElement((unsigned)1))
2978 C1 ? dyn_cast_or_null<ConstantInt>(C1->getAggregateElement((unsigned)1))
3287 dyn_cast_or_null<ConstantInt>(CV1->getSplatValue()))
lib/Transforms/InstCombine/InstCombineCasts.cpp 1485 auto *CFP = dyn_cast_or_null<ConstantFP>(CV->getAggregateElement(i));
lib/Transforms/InstCombine/InstCombineCompares.cpp 2799 if (auto *Elem = dyn_cast_or_null<ConstantInt>(Mask->getSplatValue())) {
3520 auto *NewShAmt = dyn_cast_or_null<Constant>(
4848 auto *BI = dyn_cast_or_null<BranchInst>(BB->getTerminator());
lib/Transforms/InstCombine/InstCombineShifts.cpp 83 auto *NewShAmt = dyn_cast_or_null<Constant>(
208 auto *SumOfShAmts = dyn_cast_or_null<Constant>(SimplifyAddInst(
232 auto *ShAmtsDiff = dyn_cast_or_null<Constant>(SimplifySubInst(
lib/Transforms/Instrumentation/AddressSanitizer.cpp 1431 if (auto AI = dyn_cast_or_null<AllocaInst>(PtrOperand))
lib/Transforms/Instrumentation/BoundsChecking.cpp 116 ConstantInt *C = dyn_cast_or_null<ConstantInt>(Or);
lib/Transforms/Instrumentation/HWAddressSanitizer.cpp 1131 if (auto *Alloca = dyn_cast_or_null<AllocaInst>(DDI->getAddress()))
1215 dyn_cast_or_null<AllocaInst>(DVI->getVariableLocation()))
lib/Transforms/Instrumentation/MemorySanitizer.cpp 1129 Constant *ConstantShadow = dyn_cast_or_null<Constant>(ConvertedShadow);
1210 Constant *ConstantShadow = dyn_cast_or_null<Constant>(ConvertedShadow);
1727 Shadow = dyn_cast_or_null<Instruction>(getShadow(Val));
1729 Origin = dyn_cast_or_null<Instruction>(getOrigin(Val));
lib/Transforms/ObjCARC/ObjCARCContract.cpp 178 Retain = dyn_cast_or_null<CallInst>(*DependingInstructions.begin());
779 RVInstMarker = dyn_cast_or_null<MDString>(M.getModuleFlag(MarkerKey));
lib/Transforms/ObjCARC/ObjCARCOpts.cpp 2079 auto *Call = dyn_cast_or_null<CallInst>(*DepInsts.begin());
2104 auto *Retain = dyn_cast_or_null<CallInst>(*DepInsts.begin());
2129 auto *Autorelease = dyn_cast_or_null<CallInst>(*DepInsts.begin());
lib/Transforms/Scalar/IndVarSimplify.cpp 513 if (PHINode *PN = dyn_cast_or_null<PHINode>(&*PHIs[i]))
lib/Transforms/Scalar/LoopInstSimplify.cpp 137 if (Instruction *SimpleI = dyn_cast_or_null<Instruction>(V))
lib/Transforms/Scalar/LoopInterchange.cpp 137 dyn_cast_or_null<SCEVConstant>(Distance);
lib/Transforms/Scalar/LoopStrengthReduce.cpp 972 Instruction *I = dyn_cast_or_null<Instruction>(V);
2440 dyn_cast_or_null<SCEVConstant>(getExactSDiv(B, A, SE))) {
2693 dyn_cast_or_null<SCEVConstant>(getExactSDiv(NewStride, OldStride,
2698 dyn_cast_or_null<SCEVConstant>(getExactSDiv(OldStride,
lib/Transforms/Scalar/NewGVN.cpp 1853 if (dyn_cast_or_null<PredicateAssume>(CmpPI))
1891 if (const auto *PBranch = dyn_cast_or_null<PredicateBranch>(PI)) {
2152 if (auto *NL = dyn_cast_or_null<StoreInst>(CC->getNextLeader().first))
2283 auto *InstMA = dyn_cast_or_null<MemoryDef>(getMemoryAccess(I));
3595 dyn_cast_or_null<PHIExpression>(ValueToExpression.lookup(Def));
3861 PHI = PHI ? PHI : dyn_cast_or_null<PHINode>(RealToTemp.lookup(Inst));
3944 auto *DefInst = dyn_cast_or_null<Instruction>(Def);
lib/Transforms/Scalar/SROA.cpp 1150 if (IntegerType *UserITy = dyn_cast_or_null<IntegerType>(UserTy)) {
lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp 872 GetElementPtrInst *FirstGEP = dyn_cast_or_null<GetElementPtrInst>(FirstResult);
873 GetElementPtrInst *SecondGEP = dyn_cast_or_null<GetElementPtrInst>(ResultPtr);
lib/Transforms/Utils/BasicBlockUtils.cpp 165 if (PHINode *PN = dyn_cast_or_null<PHINode>(PHIs[i].operator Value*()))
lib/Transforms/Utils/CloneFunction.cpp 392 Cond = dyn_cast_or_null<ConstantInt>(V);
408 Cond = dyn_cast_or_null<ConstantInt>(V);
lib/Transforms/Utils/EntryExitInstrumenter.cpp 99 if (BitCastInst *BCI = dyn_cast_or_null<BitCastInst>(Prev))
101 if (CallInst *CI = dyn_cast_or_null<CallInst>(Prev)) {
lib/Transforms/Utils/FlattenCFG.cpp 401 Instruction *CInst2 = dyn_cast_or_null<Instruction>(IfCond2);
411 Instruction *CInst1 = dyn_cast_or_null<Instruction>(IfCond1);
lib/Transforms/Utils/InlineFunction.cpp 2193 auto *OldCast = dyn_cast_or_null<BitCastInst>(RI->getReturnValue());
lib/Transforms/Utils/Local.cpp 1265 if (auto *AI = dyn_cast_or_null<AllocaInst>(DII->getVariableLocation()))
1404 AllocaInst *AI = dyn_cast_or_null<AllocaInst>(DDI->getAddress());
1458 if (auto *Loc = dyn_cast_or_null<PHINode>(DbgII->getVariableLocation()))
lib/Transforms/Utils/LoopUnroll.cpp 211 dyn_cast_or_null<Instruction>(&*DeadInsts.pop_back_val()))
lib/Transforms/Utils/PredicateInfo.cpp 113 auto *ArgA = dyn_cast_or_null<Argument>(A);
114 auto *ArgB = dyn_cast_or_null<Argument>(B);
241 auto *ArgA = dyn_cast_or_null<Argument>(ADef);
242 auto *ArgB = dyn_cast_or_null<Argument>(BDef);
lib/Transforms/Utils/SimplifyCFG.cpp 2270 if (auto *II = dyn_cast_or_null<IntrinsicInst>(N))
2479 if (PHINode *TVPN = dyn_cast_or_null<PHINode>(TrueValue))
2482 if (PHINode *FVPN = dyn_cast_or_null<PHINode>(FalseValue))
2491 if (ConstantExpr *TCV = dyn_cast_or_null<ConstantExpr>(TrueValue))
2494 if (ConstantExpr *FCV = dyn_cast_or_null<ConstantExpr>(FalseValue))
lib/Transforms/Vectorize/LoopVectorizationLegality.cpp 853 PHINode *PN = dyn_cast_or_null<PHINode>(In0);
lib/Transforms/Vectorize/LoopVectorize.cpp 812 if (const Instruction *Inst = dyn_cast_or_null<Instruction>(Ptr)) {
4709 auto *Ptr = dyn_cast_or_null<Instruction>(getLoadStorePointerOperand(&I));
6045 dyn_cast_or_null<Instruction>(getLoadStorePointerOperand(&I));
lib/Transforms/Vectorize/VPlanHCFGTransforms.cpp 71 dyn_cast_or_null<VPWidenRecipe>(LastRecipe)) {
tools/bugpoint/CrashDebugger.cpp 268 Function *F = dyn_cast_or_null<Function>(Root);
tools/clang/include/clang/AST/ASTContext.h 2451 return dyn_cast_or_null<ConstantArrayType>(getAsArrayType(T));
2454 return dyn_cast_or_null<VariableArrayType>(getAsArrayType(T));
2457 return dyn_cast_or_null<IncompleteArrayType>(getAsArrayType(T));
2461 return dyn_cast_or_null<DependentSizedArrayType>(getAsArrayType(T));
tools/clang/include/clang/AST/ASTLambda.h 57 dyn_cast_or_null<CXXConversionDecl>(F->getTemplatedDecl()))
tools/clang/include/clang/AST/DeclCXX.h 3150 return dyn_cast_or_null<UsingShadowDecl>(UsingOrNextShadow);
tools/clang/include/clang/AST/Expr.h 2657 return dyn_cast_or_null<FunctionDecl>(getCalleeDecl());
2660 return dyn_cast_or_null<FunctionDecl>(getCalleeDecl());
tools/clang/include/clang/AST/ExprCXX.h 2288 return dyn_cast_or_null<CXXConstructExpr>(getInitializer());
tools/clang/include/clang/AST/LambdaCapture.h 89 return dyn_cast_or_null<VarDecl>(DeclAndBits.getPointer());
tools/clang/include/clang/AST/Type.h 2223 return dyn_cast_or_null<AutoType>(getContainedDeducedType());
tools/clang/include/clang/AST/TypeLoc.h 881 return dyn_cast_or_null<T>(getAttr());
tools/clang/include/clang/Analysis/Analyses/ThreadSafetyCommon.h 80 const auto *PE1 = dyn_cast_or_null<til::Project>(E1);
83 const auto *PE2 = dyn_cast_or_null<til::Project>(E2);
158 if (!dyn_cast_or_null<NamedDecl>(AC.getDecl()))
tools/clang/include/clang/Analysis/AnyCall.h 182 if (const auto *ND = dyn_cast_or_null<NamedDecl>(D))
tools/clang/include/clang/Lex/Preprocessor.h 1043 return MacroDefinition(dyn_cast_or_null<DefMacroDirective>(MD),
tools/clang/include/clang/Sema/Initialization.h 465 return getKind() == EK_New && dyn_cast_or_null<IncompleteArrayType>(
tools/clang/include/clang/Sema/TypoCorrection.h 157 return dyn_cast_or_null<DeclClass>(getCorrectionDecl());
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h 333 const auto *ND = dyn_cast_or_null<NamedDecl>(getDecl());
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/SVals.h 541 return dyn_cast_or_null<AdjustedDecl>(getDecl());
tools/clang/lib/ARCMigrate/TransAutoreleasePool.cpp 361 if (ObjCMessageExpr *recME = dyn_cast_or_null<ObjCMessageExpr>(rec)) {
tools/clang/lib/ARCMigrate/TransGCCalls.cpp 47 if (FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(DRE->getDecl())) {
tools/clang/lib/ARCMigrate/TransRetainReleaseDealloc.cpp 272 if (auto *E = dyn_cast_or_null<Expr>(prevStmt))
283 if (auto *E = dyn_cast_or_null<Expr>(nextStmt))
358 auto *CompS = dyn_cast_or_null<CompoundStmt>(*StmtExprChild.begin());
365 auto *DeclS = dyn_cast_or_null<DeclStmt>(*CompStmtChild.begin());
370 VarDecl *VD = dyn_cast_or_null<VarDecl>(DeclS->getSingleDecl());
434 if (ImplicitCastExpr *castE = dyn_cast_or_null<ImplicitCastExpr>(parent))
437 if (ParenExpr *parenE = dyn_cast_or_null<ParenExpr>(parent))
441 bopE = dyn_cast_or_null<BinaryOperator>(parent)) {
tools/clang/lib/ARCMigrate/TransUnbridgedCasts.cpp 186 if (ObjCMethodDecl *method = dyn_cast_or_null<ObjCMethodDecl>(ParentD)) {
376 if (ReturnStmt *retS = dyn_cast_or_null<ReturnStmt>(parent)) {
415 if ((callE = dyn_cast_or_null<CallExpr>(
418 FD = dyn_cast_or_null<FunctionDecl>(callE->getCalleeDecl()))
428 if (CallExpr *callE = dyn_cast_or_null<CallExpr>(
431 FD = dyn_cast_or_null<FunctionDecl>(callE->getCalleeDecl())) {
tools/clang/lib/AST/ASTContext.cpp 5678 CA = dyn_cast_or_null<ConstantArrayType>(
tools/clang/lib/AST/CXXInheritance.cpp 291 dyn_cast_or_null<ClassTemplateDecl>(TN.getAsTemplateDecl()))
465 const auto *TD = dyn_cast_or_null<ClassTemplateDecl>(TN.getAsTemplateDecl());
tools/clang/lib/AST/CommentSema.cpp 849 if (const VarDecl *VD = dyn_cast_or_null<VarDecl>(ThisDeclInfo->CurrentDecl)) {
918 dyn_cast_or_null<RecordDecl>(ThisDeclInfo->CurrentDecl))
tools/clang/lib/AST/Decl.cpp 88 if (auto *ND = dyn_cast_or_null<NamedDecl>(TheDecl)) {
1323 Record = dyn_cast_or_null<CXXRecordDecl>(
1795 if (const auto *MD = dyn_cast_or_null<CXXMethodDecl>(D->getAsFunction()))
2701 if (auto *E = dyn_cast_or_null<FullExpr>(Arg))
tools/clang/lib/AST/DeclBase.cpp 280 if (const auto *DN = dyn_cast_or_null<NamedDecl>(TheDecl)) {
tools/clang/lib/AST/DeclCXX.cpp 1417 return dyn_cast_or_null<FunctionTemplateDecl>(CallOp);
2690 if (auto *NS = dyn_cast_or_null<NamespaceDecl>(Used))
2705 if (auto *NA = dyn_cast_or_null<NamespaceAliasDecl>(NominatedNamespace))
2785 if (auto *NS = dyn_cast_or_null<NamespaceDecl>(Namespace))
tools/clang/lib/AST/DeclObjC.cpp 1279 dyn_cast_or_null<ObjCContainerDecl>(Method->getDeclContext()),
2081 if (auto *ImplD = dyn_cast_or_null<ObjCImplementationDecl>(this)) {
2085 } else if (auto *ImplD = dyn_cast_or_null<ObjCCategoryImplDecl>(this)) {
tools/clang/lib/AST/Expr.cpp 2180 if (auto *DIE = dyn_cast_or_null<CXXDefaultInitExpr>(DefaultExpr))
2182 if (auto *DAE = dyn_cast_or_null<CXXDefaultArgExpr>(DefaultExpr))
2202 const Decl *CurDecl = dyn_cast_or_null<Decl>(Context);
3640 = dyn_cast_or_null<const CXXMethodDecl>(E->getCalleeDecl())) {
tools/clang/lib/AST/ExprClassification.cpp 399 if (const auto *LastExpr = dyn_cast_or_null<Expr>(S->body_back()))
tools/clang/lib/AST/ExprConstant.cpp 125 return dyn_cast_or_null<FieldDecl>(E.getAsBaseOrMember().getPointer());
130 return dyn_cast_or_null<CXXRecordDecl>(E.getAsBaseOrMember().getPointer());
1007 const auto *MD = dyn_cast_or_null<CXXMethodDecl>(Call->Callee);
2064 } else if (const auto *MTE = dyn_cast_or_null<MaterializeTemporaryExpr>(
2115 const auto *FD = dyn_cast_or_null<CXXMethodDecl>(Member);
3646 dyn_cast_or_null<MaterializeTemporaryExpr>(Base)) {
4257 dyn_cast_or_null<ConstantArrayType>(T->getAsArrayTypeUnsafe())) {
6276 dyn_cast_or_null<ConstantArrayType>(Ty->getAsArrayTypeUnsafe());
6890 FD = dyn_cast_or_null<FunctionDecl>(
7772 dyn_cast_or_null<VarDecl>(Base.dyn_cast<const ValueDecl *>());
10247 if (auto *ME = dyn_cast_or_null<MemberExpr>(Base.dyn_cast<const Expr *>())) {
10714 if (const StringLiteral *S = dyn_cast_or_null<StringLiteral>(
tools/clang/lib/AST/Interp/ByteCodeExprGen.cpp 429 if (auto *VD = dyn_cast_or_null<ValueDecl>(Src.dyn_cast<const Decl *>()))
442 if (auto *VD = dyn_cast_or_null<ValueDecl>(Src.dyn_cast<const Decl *>())) {
tools/clang/lib/AST/Interp/Descriptor.h 116 return dyn_cast_or_null<ValueDecl>(asDecl());
120 return dyn_cast_or_null<FieldDecl>(asDecl());
124 return dyn_cast_or_null<RecordDecl>(asDecl());
tools/clang/lib/AST/Interp/Interp.cpp 382 if (auto *E = dyn_cast_or_null<CXXThisExpr>(Loc.asExpr()))
tools/clang/lib/AST/Interp/State.cpp 145 if (auto *CD = dyn_cast_or_null<CXXConstructorDecl>(F->getCallee())) {
tools/clang/lib/AST/ItaniumMangle.cpp 51 = dyn_cast_or_null<ParmVarDecl>(RD->getLambdaContextDecl()))
58 = dyn_cast_or_null<ParmVarDecl>(BD->getBlockManglingContextDecl()))
106 const FunctionDecl *fn = dyn_cast_or_null<FunctionDecl>(decl);
1588 = dyn_cast_or_null<ParmVarDecl>(CXXRD->getLambdaContextDecl())) {
1617 = dyn_cast_or_null<ParmVarDecl>(BD->getBlockManglingContextDecl())) {
tools/clang/lib/AST/Mangle.cpp 393 if (const auto *CD = dyn_cast_or_null<CXXConstructorDecl>(ND)) {
404 } else if (const auto *DD = dyn_cast_or_null<CXXDestructorDecl>(ND)) {
411 } else if (const auto *MD = dyn_cast_or_null<CXXMethodDecl>(ND)) {
450 if (const auto *CD = dyn_cast_or_null<CXXConstructorDecl>(ND))
452 else if (const auto *DD = dyn_cast_or_null<CXXDestructorDecl>(ND))
tools/clang/lib/AST/MicrosoftMangle.cpp 75 dyn_cast_or_null<ParmVarDecl>(RD->getLambdaContextDecl()))
95 dyn_cast_or_null<ParmVarDecl>(BD->getBlockManglingContextDecl()))
917 dyn_cast_or_null<ParmVarDecl>(LambdaContextDecl);
2183 if (const CXXMethodDecl *MD = dyn_cast_or_null<CXXMethodDecl>(D)) {
2255 dyn_cast_or_null<AutoType>(ResultType->getContainedAutoType())) {
tools/clang/lib/AST/NSAPI.cpp 587 EnumD = dyn_cast_or_null<EnumConstantDecl>(DRE->getDecl()))
tools/clang/lib/AST/NestedNameSpecifier.cpp 308 dyn_cast_or_null<ClassTemplateSpecializationDecl>(getAsRecordDecl());
tools/clang/lib/AST/QualTypeNames.cpp 270 const auto *Outer = dyn_cast_or_null<NamedDecl>(DC);
271 const auto *OuterNS = dyn_cast_or_null<NamespaceDecl>(DC);
tools/clang/lib/AST/Stmt.cpp 136 if (auto CapS = dyn_cast_or_null<CapturedStmt>(S))
139 if (auto AS = dyn_cast_or_null<AttributedStmt>(S))
141 else if (auto CS = dyn_cast_or_null<CompoundStmt>(S)) {
tools/clang/lib/AST/StmtCXX.cpp 67 VarDecl *RangeDecl = dyn_cast_or_null<VarDecl>(RangeStmt->getSingleDecl());
tools/clang/lib/AST/TemplateBase.cpp 308 = dyn_cast_or_null<TemplateTemplateParmDecl>(
tools/clang/lib/AST/Type.cpp 1689 return dyn_cast_or_null<CXXRecordDecl>(getAsTagDecl());
1693 return dyn_cast_or_null<RecordDecl>(getAsTagDecl());
1812 return dyn_cast_or_null<FunctionType>(
tools/clang/lib/AST/TypePrinter.cpp 1242 if (auto M = dyn_cast_or_null<CXXMethodDecl>(D->getDeclContext()))
tools/clang/lib/ASTMatchers/ASTMatchFinder.cpp 148 if (Expr *ExprNode = dyn_cast_or_null<Expr>(StmtNode))
842 if (auto *ClassTemplate = dyn_cast_or_null<ClassTemplateDecl>(
tools/clang/lib/Analysis/AnalysisDeclContext.cpp 97 if (auto *CoroBody = dyn_cast_or_null<CoroutineBodyStmt>(Body))
120 else if (const auto *FunTmpl = dyn_cast_or_null<FunctionTemplateDecl>(D))
tools/clang/lib/Analysis/CFG.cpp 1495 if (const CXXDestructorDecl *DD = dyn_cast_or_null<CXXDestructorDecl>(D))
1516 if (const auto *CD = dyn_cast_or_null<CXXConstructorDecl>(D)) {
3386 dyn_cast_or_null<BinaryOperator>(C ? C->IgnoreParens() : nullptr))
5044 dyn_cast_or_null<SwitchStmt>(From->getTerminatorStmt())) {
tools/clang/lib/Analysis/CallGraph.cpp 251 if (const NamedDecl *ND = dyn_cast_or_null<NamedDecl>(FD))
271 if (const NamedDecl *ND = dyn_cast_or_null<NamedDecl>(Node->getDecl()))
tools/clang/lib/Analysis/Consumed.cpp 814 const auto *FunDecl = dyn_cast_or_null<FunctionDecl>(Call->getDirectCallee());
833 if (const auto *Var = dyn_cast_or_null<VarDecl>(DeclRef->getDecl()))
844 if (const auto *Var = dyn_cast_or_null<VarDecl>(DeclS->getSingleDecl()))
1235 dyn_cast_or_null<IfStmt>(CurrBlock->getTerminator().getStmt())) {
1255 dyn_cast_or_null<BinaryOperator>(CurrBlock->getTerminator().getStmt())) {
1258 if ((BinOp = dyn_cast_or_null<BinaryOperator>(BinOp->getLHS()))) {
1305 const auto *D = dyn_cast_or_null<FunctionDecl>(AC.getDecl());
tools/clang/lib/Analysis/ExprMutationAnalyzer.cpp 31 dyn_cast_or_null<BinaryOperator>(Result->IgnoreParens())) {
tools/clang/lib/Analysis/PathDiagnostic.cpp 632 if (const auto *CS = dyn_cast_or_null<CompoundStmt>(LC->getDecl()->getBody()))
1147 else if (const auto *ND = dyn_cast_or_null<NamedDecl>(getCallee()))
1208 if (const auto *ND = dyn_cast_or_null<NamedDecl>(D))
tools/clang/lib/Analysis/ReachableCode.cpp 215 dyn_cast_or_null<FunctionDecl>(cast<CallExpr>(S)->getCalleeDecl());
tools/clang/lib/Analysis/ThreadSafety.cpp 611 if (const auto *VD = dyn_cast_or_null<VarDecl>(D)) {
1274 if (const auto *P = dyn_cast_or_null<til::Project>(CapE.sexpr())) {
1388 if (const auto *BLE = dyn_cast_or_null<CXXBoolLiteralExpr>(BrE))
1390 else if (const auto *ILE = dyn_cast_or_null<IntegerLiteral>(BrE))
1514 auto *FunDecl = dyn_cast_or_null<NamedDecl>(Exp->getCalleeDecl());
2088 auto *D = dyn_cast_or_null<NamedDecl>(Exp->getCalleeDecl());
2136 if (auto *VD = dyn_cast_or_null<VarDecl>(D)) {
2149 const auto *CtorD = dyn_cast_or_null<NamedDecl>(CE->getConstructor());
tools/clang/lib/Analysis/ThreadSafetyCommon.cpp 188 if (const auto *CE = dyn_cast_or_null<til::Cast>(E)) {
278 if (const auto *PV = dyn_cast_or_null<ParmVarDecl>(VD)) {
616 if (auto *VD = dyn_cast_or_null<VarDecl>(I)) {
800 auto *Ph = dyn_cast_or_null<til::Phi>(PE);
tools/clang/lib/CodeGen/CGCall.cpp 2233 if (const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(CurCodeDecl)) {
2678 dyn_cast_or_null<ObjCMethodDecl>(CGF.CurCodeDecl);
3797 if (const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(TargetDecl))
tools/clang/lib/CodeGen/CGCleanup.cpp 445 auto *Inst = dyn_cast_or_null<llvm::Instruction>(*ReloadedValue);
tools/clang/lib/CodeGen/CGDebugInfo.cpp 213 return dyn_cast_or_null<llvm::DIScope>(V);
3253 dyn_cast_or_null<NamespaceDecl>(FD->getDeclContext()))
3256 dyn_cast_or_null<RecordDecl>(FD->getDeclContext())) {
3634 if (const auto *OMD = dyn_cast_or_null<ObjCMethodDecl>(D)) {
4724 if (auto *GVE = dyn_cast_or_null<llvm::DIGlobalVariableExpression>(Repl))
tools/clang/lib/CodeGen/CGException.cpp 235 return get(CGF.CGM, dyn_cast_or_null<FunctionDecl>(FD));
448 const FunctionDecl* FD = dyn_cast_or_null<FunctionDecl>(D);
451 if (const CapturedDecl* CD = dyn_cast_or_null<CapturedDecl>(D)) {
525 const FunctionDecl* FD = dyn_cast_or_null<FunctionDecl>(D);
528 if (const CapturedDecl* CD = dyn_cast_or_null<CapturedDecl>(D)) {
tools/clang/lib/CodeGen/CGExpr.cpp 340 dyn_cast_or_null<VarDecl>(M->getExtendingDecl()));
2481 dyn_cast_or_null<DeclContext>(CGF.CurCodeDecl);
2764 if (auto *BD = dyn_cast_or_null<BlockDecl>(CurCodeDecl)) {
4522 dyn_cast_or_null<CXXMethodDecl>(CE->getCalleeDecl()))
4599 dyn_cast_or_null<VarDecl>(E->getReferencedDeclOfCallee()))
4949 if (auto *CalleeDecl = dyn_cast_or_null<FunctionDecl>(TargetDecl))
tools/clang/lib/CodeGen/CGExprAgg.cpp 460 if (auto *Cons = dyn_cast_or_null<CXXConstructExpr>(E))
1961 if (auto *VAT = dyn_cast_or_null<VariableArrayType>(
tools/clang/lib/CodeGen/CGExprCXX.cpp 1056 if (const ConstantArrayType *CAT = dyn_cast_or_null<ConstantArrayType>(
1885 dyn_cast_or_null<const CXXDestructorDecl>(
tools/clang/lib/CodeGen/CGExprConstant.cpp 1604 dyn_cast_or_null<CXXConstructExpr>(D.getInit())) {
tools/clang/lib/CodeGen/CGObjC.cpp 460 if (const auto *CurMD = dyn_cast_or_null<ObjCMethodDecl>(CGF.CurFuncDecl))
528 if (auto *OMD = dyn_cast_or_null<ObjCMethodDecl>(CurFuncDecl))
1294 = dyn_cast_or_null<FunctionDecl>(call->getCalleeDecl()))
tools/clang/lib/CodeGen/CGObjCMac.cpp 1577 dyn_cast_or_null<ObjCMethodDecl>(CGF.CurFuncDecl))
2178 dyn_cast_or_null<ObjCMethodDecl>(CGF.CurCodeDecl)) {
tools/clang/lib/CodeGen/CGObjCRuntime.cpp 233 if ((CPI = dyn_cast_or_null<llvm::CatchPadInst>(Handler.Block->getFirstNonPHI()))) {
tools/clang/lib/CodeGen/CGOpenMPRuntime.cpp 228 OuterRegionInfo(dyn_cast_or_null<CGOpenMPRegionInfo>(OldCSI)) {}
1672 if (const auto *FD = dyn_cast_or_null<FunctionDecl>(CGF.CurFuncDecl))
1701 dyn_cast_or_null<CGOpenMPRegionInfo>(CGF.CapturedStmtInfo)) {
3119 dyn_cast_or_null<CGOpenMPRegionInfo>(CGF.CapturedStmtInfo))
3252 if (auto *Region = dyn_cast_or_null<CGOpenMPRegionInfo>(CGF.CapturedStmtInfo))
3489 dyn_cast_or_null<CGOpenMPRegionInfo>(CGF.CapturedStmtInfo)) {
5322 dyn_cast_or_null<CGOpenMPRegionInfo>(CGF.CapturedStmtInfo))
6345 if (auto *Region = dyn_cast_or_null<CGOpenMPRegionInfo>(CGF.CapturedStmtInfo))
6392 dyn_cast_or_null<CGOpenMPRegionInfo>(CGF.CapturedStmtInfo)) {
6427 dyn_cast_or_null<CGOpenMPRegionInfo>(CGF.CapturedStmtInfo)) {
6551 while (const auto *C = dyn_cast_or_null<CompoundStmt>(Child)) {
6619 dyn_cast_or_null<OMPExecutableDirective>(ChildStmt)) {
6722 if (const auto *Dir = dyn_cast_or_null<OMPExecutableDirective>(Child)) {
6837 if (const auto *Dir = dyn_cast_or_null<OMPExecutableDirective>(Child)) {
6867 Dir = dyn_cast_or_null<OMPExecutableDirective>(Child);
6894 if (const auto *Dir = dyn_cast_or_null<OMPExecutableDirective>(Child)) {
7518 dyn_cast_or_null<VarDecl>(I->getAssociatedDeclaration())) {
8713 dyn_cast_or_null<OMPExecutableDirective>(ChildStmt)) {
8726 dyn_cast_or_null<OMPExecutableDirective>(ChildStmt)) {
9844 if (auto *F = dyn_cast_or_null<llvm::Function>(CGM.GetGlobalValue(Name)))
tools/clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp 449 if (const auto *VD = dyn_cast_or_null<ValueDecl>(D))
458 dyn_cast_or_null<CapturedStmt>(D->getAssociatedStmt())) {
731 dyn_cast_or_null<OMPExecutableDirective>(ChildStmt)) {
744 dyn_cast_or_null<OMPExecutableDirective>(ChildStmt)) {
915 dyn_cast_or_null<OMPExecutableDirective>(ChildStmt)) {
932 dyn_cast_or_null<OMPExecutableDirective>(ChildStmt)) {
945 dyn_cast_or_null<OMPExecutableDirective>(ChildStmt)) {
958 dyn_cast_or_null<OMPExecutableDirective>(ChildStmt)) {
982 dyn_cast_or_null<OMPExecutableDirective>(ChildStmt)) {
2008 Dir = dyn_cast_or_null<OMPExecutableDirective>(S);
tools/clang/lib/CodeGen/CGStmt.cpp 1080 if (const FullExpr *fe = dyn_cast_or_null<FullExpr>(RV)) {
1711 auto *FD = dyn_cast_or_null<FunctionDecl>(Call->getCalleeDecl());
tools/clang/lib/CodeGen/CodeGenFunction.cpp 589 if (auto *FD = dyn_cast_or_null<FunctionDecl>(F))
591 else if (auto *OMD = dyn_cast_or_null<ObjCMethodDecl>(F))
594 if (auto *CS = dyn_cast_or_null<CompoundStmt>(Body)) {
610 auto *MD = dyn_cast_or_null<CXXMethodDecl>(D);
652 if (const auto *FD = dyn_cast_or_null<FunctionDecl>(D))
714 if (const auto *OMD = dyn_cast_or_null<ObjCMethodDecl>(D)) {
776 if (const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(D))
783 if (const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(D)) {
819 if (const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(D))
825 if (const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(D))
855 if (auto *FD = dyn_cast_or_null<FunctionDecl>(D))
1539 auto *FD = dyn_cast_or_null<FunctionDecl>(Call->getCalleeDecl());
1642 dyn_cast_or_null<VariableArrayType>(
2191 const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(CurCodeDecl);
tools/clang/lib/CodeGen/CodeGenFunction.h 437 return dyn_cast_or_null<FunctionDecl>(CalleeDecl);
tools/clang/lib/CodeGen/CodeGenModule.cpp 862 if (const auto *Dtor = dyn_cast_or_null<CXXDestructorDecl>(D)) {
1114 dyn_cast_or_null<VarDecl>(initializedGlobalDecl.getDecl()), Out);
1640 if (dyn_cast_or_null<NamedDecl>(D))
1663 const auto *FD = dyn_cast_or_null<FunctionDecl>(GD.getDecl());
tools/clang/lib/CodeGen/CodeGenPGO.cpp 805 if (const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(D))
807 else if (const ObjCMethodDecl *MD = dyn_cast_or_null<ObjCMethodDecl>(D))
809 else if (const BlockDecl *BD = dyn_cast_or_null<BlockDecl>(D))
811 else if (const CapturedDecl *CD = dyn_cast_or_null<CapturedDecl>(D))
872 if (const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(D))
874 else if (const ObjCMethodDecl *MD = dyn_cast_or_null<ObjCMethodDecl>(D))
876 else if (const BlockDecl *BD = dyn_cast_or_null<BlockDecl>(D))
878 else if (const CapturedDecl *CD = dyn_cast_or_null<CapturedDecl>(D))
tools/clang/lib/CodeGen/SwiftCallingConv.cpp 321 if (auto vecTy = dyn_cast_or_null<llvm::VectorType>(type)) {
tools/clang/lib/CodeGen/TargetInfo.cpp 768 if (const auto *FD = dyn_cast_or_null<FunctionDecl>(D)) {
783 if (auto *FD = dyn_cast_or_null<FunctionDecl>(D)) {
1984 if (const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(D)) {
2212 if (llvm::VectorType *vectorTy = dyn_cast_or_null<llvm::VectorType>(ty))
2356 if (const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(D)) {
2408 if (llvm::Function *Fn = dyn_cast_or_null<llvm::Function>(GV)) {
2467 if (const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(D)) {
5055 const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(D);
5711 const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(D);
6466 const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(D);
6910 if (const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(D)) {
6967 const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(D);
7350 const auto *FD = dyn_cast_or_null<FunctionDecl>(D);
7384 const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(D);
7951 const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(D);
9672 const auto *FD = dyn_cast_or_null<FunctionDecl>(D);
tools/clang/lib/Edit/RewriteObjCFoundationAPI.cpp 382 dyn_cast_or_null<ObjCMessageExpr>(PMap->getParentIgnoreParenCasts(Msg));
tools/clang/lib/Frontend/FrontendActions.cpp 451 if (auto *NamedTemplate = dyn_cast_or_null<NamedDecl>(Inst.Entity)) {
tools/clang/lib/Frontend/InterfaceStubFunctionsConsumer.cpp 81 dyn_cast_or_null<FunctionDecl>(VD->getParentFunctionOrMethod()))
tools/clang/lib/Frontend/Rewrite/RewriteModernObjC.cpp 5694 if (CompoundStmt *Body = dyn_cast_or_null<CompoundStmt>(FD->getBody())) {
tools/clang/lib/Frontend/Rewrite/RewriteObjC.cpp 2289 const FunctionProtoType *proto = dyn_cast_or_null<FunctionProtoType>(funcType);
4792 if (CompoundStmt *Body = dyn_cast_or_null<CompoundStmt>(FD->getBody())) {
tools/clang/lib/Index/IndexBody.cpp 97 if (auto *CXXMD = dyn_cast_or_null<CXXMethodDecl>(ME->getMemberDecl()))
164 dyn_cast_or_null<ClassTemplateDecl>(TN.getAsTemplateDecl());
tools/clang/lib/Index/IndexSymbol.cpp 290 if (const CXXMethodDecl *MD = dyn_cast_or_null<CXXMethodDecl>(
tools/clang/lib/Index/IndexTypeSourceInfo.cpp 185 dyn_cast_or_null<ClassTemplateDecl>(TN.getAsTemplateDecl());
tools/clang/lib/Lex/PPMacroExpansion.cpp 230 if (auto *DMD = dyn_cast_or_null<DefMacroDirective>(MD)) {
tools/clang/lib/Parse/ParseCXXInlineMethods.cpp 562 if (auto *FD = dyn_cast_or_null<FunctionDecl>(LM.D))
tools/clang/lib/Parse/ParseDecl.cpp 1500 RecordDecl *RD = dyn_cast_or_null<RecordDecl>(D->getDeclContext());
2116 if (auto *VD = dyn_cast_or_null<VarDecl>(ThisDecl))
2289 if (VarTemplateDecl *VT = dyn_cast_or_null<VarTemplateDecl>(ThisDecl))
2403 auto ThisVarDecl = dyn_cast_or_null<VarDecl>(ThisDecl);
tools/clang/lib/Parse/ParseDeclCXX.cpp 2989 if (const auto *PD = dyn_cast_or_null<MSPropertyDecl>(D)) {
3170 if (auto *TD = dyn_cast_or_null<NamedDecl>(TagDecl))
tools/clang/lib/Parse/ParseOpenMP.cpp 640 RecordDecl *RD = dyn_cast_or_null<RecordDecl>(D->getDeclContext());
tools/clang/lib/Sema/AnalysisBasedWarnings.cpp 137 if (const Expr *SubExpr = dyn_cast_or_null<Expr>(SubStmt))
301 dyn_cast_or_null<CXXCatchStmt>(Succ->getLabel())) {
1099 const SwitchCase *SW = dyn_cast_or_null<SwitchCase>(P->getLabel());
1103 const LabelStmt *L = dyn_cast_or_null<LabelStmt>(P->getLabel());
1185 if (const AttributedStmt *AS = dyn_cast_or_null<AttributedStmt>(S)) {
1204 if (const SwitchCase *SW = dyn_cast_or_null<SwitchCase>(B.getLabel()))
tools/clang/lib/Sema/Sema.cpp 204 = dyn_cast_or_null<ExternalSemaSource>(Context.getExternalSource()))
372 = dyn_cast_or_null<ExternalSemaSource>(Context.getExternalSource()))
2017 dyn_cast_or_null<FunctionProtoType>(FunTy)) {
tools/clang/lib/Sema/SemaAttr.cpp 146 RD = dyn_cast_or_null<CXXRecordDecl>(
tools/clang/lib/Sema/SemaCXXScopeSpec.cpp 100 = dyn_cast_or_null<ClassTemplateDecl>(
702 if (auto *TD = dyn_cast_or_null<TypedefNameDecl>(SD))
tools/clang/lib/Sema/SemaChecking.cpp 272 if (const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(TargetDecl))
4326 auto *FD = dyn_cast_or_null<FunctionDecl>(FDecl);
6959 if (const NamedDecl *ND = dyn_cast_or_null<NamedDecl>(CE->getCalleeDecl())) {
9874 if (const DeclRefExpr *D1 = dyn_cast_or_null<DeclRefExpr>(E1))
9875 if (const DeclRefExpr *D2 = dyn_cast_or_null<DeclRefExpr>(E2))
12120 Expr *ChildExpr = dyn_cast_or_null<Expr>(SubStmt);
13582 if (const DeclRefExpr *DRE = dyn_cast_or_null<DeclRefExpr>(LHS)) {
13615 FunctionDecl *Fn = dyn_cast_or_null<FunctionDecl>(CE->getCalleeDecl());
tools/clang/lib/Sema/SemaCodeComplete.cpp 389 auto *VD = llvm::dyn_cast_or_null<ValueDecl>(D);
1632 if (auto *Cls = llvm::dyn_cast_or_null<CXXRecordDecl>(Ctx)) {
3550 const auto *M = dyn_cast_or_null<ObjCMethodDecl>(ND);
4763 dyn_cast_or_null<ClassTemplateDecl>(TN.getAsTemplateDecl())) {
5259 ValueDecl *VD = dyn_cast_or_null<ValueDecl>(D);
6280 ObjCInterfaceDecl *Class = dyn_cast_or_null<ObjCInterfaceDecl>(CurContext);
6283 dyn_cast_or_null<ObjCCategoryDecl>(CurContext))
6306 ObjCInterfaceDecl *Class = dyn_cast_or_null<ObjCInterfaceDecl>(CurContext);
6309 dyn_cast_or_null<ObjCCategoryDecl>(CurContext))
6413 auto *Msg = dyn_cast_or_null<ObjCMessageExpr>(E);
6662 if ((CDecl = dyn_cast_or_null<ObjCInterfaceDecl>(ND))) {
6664 } else if (TypeDecl *TD = dyn_cast_or_null<TypeDecl>(ND)) {
7227 dyn_cast_or_null<ObjCInterfaceDecl>(CurClass)) {
7257 ObjCInterfaceDecl *Class = dyn_cast_or_null<ObjCInterfaceDecl>(CurClass);
7295 dyn_cast_or_null<ObjCContainerDecl>(CurContext);
7334 dyn_cast_or_null<ObjCContainerDecl>(CurContext);
tools/clang/lib/Sema/SemaCoroutine.cpp 484 if (auto *MD = dyn_cast_or_null<CXXMethodDecl>(FD))
1054 if (auto *DeclRef = dyn_cast_or_null<DeclRefExpr>(E)) {
1056 if (CXXMethodDecl *Method = dyn_cast_or_null<CXXMethodDecl>(Decl)) {
tools/clang/lib/Sema/SemaDecl.cpp 199 dyn_cast_or_null<CXXRecordDecl>(TD->getTemplatedDecl())) {
472 auto *LookupRD = dyn_cast_or_null<CXXRecordDecl>(LookupCtx);
1954 ObjCInterfaceDecl *Def = dyn_cast_or_null<ObjCInterfaceDecl>(IDecl);
4487 if (RecordDecl *Record = dyn_cast_or_null<RecordDecl>(Tag)) {
4552 if (EnumDecl *Enum = dyn_cast_or_null<EnumDecl>(Tag))
5506 if (dyn_cast_or_null<DecltypeType>(
10324 OldMD = dyn_cast_or_null<CXXMethodDecl>(OldDecl->getAsFunction());
11143 if (auto *PL = dyn_cast_or_null<ParenListExpr>(Init))
11552 CorrectDelayedTyposInExpr(Init, dyn_cast_or_null<VarDecl>(RealDecl));
12576 auto *FD = dyn_cast_or_null<FunctionDecl>(VD->getParentFunctionOrMethod());
12582 FD = dyn_cast_or_null<FunctionDecl>(FD->getParentFunctionOrMethod());
12616 VarDecl *VD = dyn_cast_or_null<VarDecl>(ThisDecl);
12673 if (dyn_cast_or_null<FunctionDecl>(VD->getParentFunctionOrMethod())) {
12708 if (const auto *IA = dyn_cast_or_null<DLLImportAttr>(DLLAttr)) {
12732 auto *F = dyn_cast_or_null<FunctionDecl>(VD->getParentFunctionOrMethod());
12857 if (TagDecl *Tag = dyn_cast_or_null<TagDecl>(DS.getRepAsDecl())) {
13925 } else if (ObjCMethodDecl *MD = dyn_cast_or_null<ObjCMethodDecl>(dcl)) {
14086 if (CXXMethodDecl *Method = dyn_cast_or_null<CXXMethodDecl>(D))
17081 auto *PrevECD = dyn_cast_or_null<EnumConstantDecl>(PrevDecl);
17656 return (dyn_cast_or_null<ObjCContainerDecl>(CurContext));
tools/clang/lib/Sema/SemaDeclAttr.cpp 2370 if (const auto *SE = dyn_cast_or_null<StringLiteral>(AL.getMessageExpr()))
2373 if (const auto *SE = dyn_cast_or_null<StringLiteral>(AL.getReplacementExpr()))
2465 if (const auto *SE = dyn_cast_or_null<StringLiteral>(AL.getArgAsExpr(0)))
2468 if (const auto *SE = dyn_cast_or_null<StringLiteral>(AL.getArgAsExpr(1)))
5126 if (const auto *PDecl = dyn_cast_or_null<ObjCProtocolDecl>(DC)) {
tools/clang/lib/Sema/SemaDeclCXX.cpp 2328 return dyn_cast_or_null<CXXRecordDecl>(DC);
2331 return dyn_cast_or_null<CXXRecordDecl>(CurContext);
2356 CurDecl = dyn_cast_or_null<CXXRecordDecl>(DC);
2358 CurDecl = dyn_cast_or_null<CXXRecordDecl>(CurContext);
2471 if (auto *BaseTemplate = dyn_cast_or_null<ClassTemplateSpecializationDecl>(
3425 if (CXXMethodDecl *MD = dyn_cast_or_null<CXXMethodDecl>(Member))
4125 if (CXXRecordDecl *Record = dyn_cast_or_null<CXXRecordDecl>(DC))
6480 auto *FD = dyn_cast_or_null<FunctionDecl>(D->getFriendDecl());
9336 PrevNS = dyn_cast_or_null<NamespaceDecl>(PrevDecl);
9451 if (NamespaceAliasDecl *AD = dyn_cast_or_null<NamespaceAliasDecl>(D))
9453 return dyn_cast_or_null<NamespaceDecl>(D);
9459 NamespaceDecl *Namespc = dyn_cast_or_null<NamespaceDecl>(Dcl);
9669 Template = dyn_cast_or_null<ClassTemplateDecl>(
11103 if (auto *TD = dyn_cast_or_null<TagDecl>(DeclFromDeclSpec)) {
15138 FunctionDecl *Fn = dyn_cast_or_null<FunctionDecl>(Dcl);
15494 if (const VarDecl *Var = dyn_cast_or_null<VarDecl>(D))
tools/clang/lib/Sema/SemaDeclObjC.cpp 329 ObjCMethodDecl *MDecl = dyn_cast_or_null<ObjCMethodDecl>(D);
364 ObjCMethodDecl *MDecl = dyn_cast_or_null<ObjCMethodDecl>(D);
573 dyn_cast_or_null<ObjCInterfaceDecl>(PrevDecl);
586 dyn_cast_or_null<TypedefNameDecl>(PrevDecl)) {
613 if (!dyn_cast_or_null<TypedefNameDecl>(PrevDecl)) {
996 ObjCInterfaceDecl* PrevIDecl = dyn_cast_or_null<ObjCInterfaceDecl>(PrevDecl);
1116 if (const TypedefNameDecl *TDecl = dyn_cast_or_null<TypedefNameDecl>(IDecl)) {
1151 dyn_cast_or_null<TypedefNameDecl>(CDeclU)) {
1162 ObjCInterfaceDecl *CDecl = dyn_cast_or_null<ObjCInterfaceDecl>(CDeclU);
1973 } else if ((IDecl = dyn_cast_or_null<ObjCInterfaceDecl>(PrevDecl))) {
2008 SDecl = dyn_cast_or_null<ObjCInterfaceDecl>(PrevDecl);
3069 = dyn_cast_or_null<ObjCInterfaceDecl>(PrevDecl);
4037 ObjCInterfaceDecl *NSObjectDecl = dyn_cast_or_null<ObjCInterfaceDecl>(IF);
tools/clang/lib/Sema/SemaExceptionSpec.cpp 1009 } else if (const ValueDecl *VD = dyn_cast_or_null<ValueDecl>(D))
tools/clang/lib/Sema/SemaExpr.cpp 3100 auto *DD = dyn_cast_or_null<VarDecl>(BD->getDecomposedDecl());
4009 if (FieldDecl *FD = dyn_cast_or_null<FieldDecl>(D)) {
4940 if (dyn_cast_or_null<CXXConstructorDecl>(FDecl))
4945 if (CXXMethodDecl *Method = dyn_cast_or_null<CXXMethodDecl>(FDecl))
5732 if (FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(NDecl)) {
5791 FunctionDecl *FDecl = dyn_cast_or_null<FunctionDecl>(NDecl);
5867 const auto *Proto = dyn_cast_or_null<FunctionProtoType>(FuncT);
6004 if (CXXMethodDecl *Method = dyn_cast_or_null<CXXMethodDecl>(FDecl))
12354 if (auto *FD = dyn_cast_or_null<FunctionDecl>(dcl))
16122 if (ParmVarDecl *PVD = dyn_cast_or_null<ParmVarDecl>(Var))
16140 if (ParmVarDecl *PVD = dyn_cast_or_null<ParmVarDecl>(Var))
16797 if (DeclRefExpr *DRE = dyn_cast_or_null<DeclRefExpr>(E))
16800 if (MemberExpr *ME = dyn_cast_or_null<MemberExpr>(E))
17118 if (auto *VD = dyn_cast_or_null<VarDecl>(
17702 const FunctionProtoType *Proto = dyn_cast_or_null<FunctionProtoType>(FnType);
tools/clang/lib/Sema/SemaExprCXX.cpp 370 if (const CXXRecordDecl *Class = dyn_cast_or_null<CXXRecordDecl>(Ctx))
1410 if (CXXBindTemporaryExpr *BTE = dyn_cast_or_null<CXXBindTemporaryExpr>(Inner))
1711 if (ParenListExpr *List = dyn_cast_or_null<ParenListExpr>(Initializer))
1798 if (ParenListExpr *List = dyn_cast_or_null<ParenListExpr>(Initializer)) {
1843 if (auto p = dyn_cast_or_null<InitListExpr>(Inits[0])) {
2142 dyn_cast_or_null<CXXBindTemporaryExpr>(FullInit.get()))
3072 return dyn_cast_or_null<const CXXNewExpr>(E);
7675 if (auto *OE = dyn_cast_or_null<OverloadExpr>(E))
tools/clang/lib/Sema/SemaExprMember.cpp 621 dyn_cast_or_null<RecordType>(BS.getType().getTypePtrOrNull())) {
tools/clang/lib/Sema/SemaExprObjC.cpp 103 if (ObjCInterfaceDecl *StrIF = dyn_cast_or_null<ObjCInterfaceDecl>(IF)) {
118 if (ObjCInterfaceDecl *StrIF = dyn_cast_or_null<ObjCInterfaceDecl>(IF)) {
224 ObjCInterfaceDecl *ID = dyn_cast_or_null<ObjCInterfaceDecl>(IF);
1762 dyn_cast_or_null<ObjCMethodDecl>(CurContext->getNonClosureAncestor());
2631 if (const auto *RootClass = dyn_cast_or_null<ObjCInterfaceDecl>(
tools/clang/lib/Sema/SemaInit.cpp 917 = dyn_cast_or_null<InitListExpr>(InitExpr)) {
921 dyn_cast_or_null<DesignatedInitUpdateExpr>(InitExpr)) {
2984 if (InitListExpr *Result = dyn_cast_or_null<InitListExpr>(ExistingInit))
3021 if (auto *Init = dyn_cast_or_null<InitListExpr>(IList->getInit(Index)))
5645 if (InitListExpr *InitList = dyn_cast_or_null<InitListExpr>(Initializer)) {
6728 if (auto *Conv = dyn_cast_or_null<CXXConversionDecl>(Callee))
7789 if (auto *DD = dyn_cast_or_null<DeclaratorDecl>(Entity.getDecl())) {
9681 dyn_cast_or_null<ClassTemplateDecl>(TemplateName.getAsTemplateDecl());
9754 auto *GD = dyn_cast_or_null<CXXDeductionGuideDecl>(
tools/clang/lib/Sema/SemaLambda.cpp 598 if (Expr *last = dyn_cast_or_null<Expr>(SE->getSubStmt()->body_back()))
tools/clang/lib/Sema/SemaLookup.cpp 1297 if (CXXRecordDecl *Record = dyn_cast_or_null<CXXRecordDecl>(Ctx))
3849 dyn_cast_or_null<ClassTemplateDecl>(TN.getAsTemplateDecl());
4487 if (auto *ND = dyn_cast_or_null<NamespaceDecl>(C))
4503 NamespaceDecl *ND = dyn_cast_or_null<NamespaceDecl>(DC);
4516 if (auto *ND = dyn_cast_or_null<NamespaceDecl>(C)) {
4519 } else if (auto *RD = dyn_cast_or_null<RecordDecl>(C)) {
4552 dyn_cast_or_null<NamedDecl>(NamespaceDeclChain.back())) {
5255 ? dyn_cast_or_null<CXXMethodDecl>(MemberFn->getMemberDecl())
5256 : dyn_cast_or_null<CXXMethodDecl>(CurContext);
tools/clang/lib/Sema/SemaObjCProperty.cpp 1492 dyn_cast_or_null<CXXOperatorCallExpr>(callExpr))
1913 ObjCPropertyImplDecl *PIDecl = dyn_cast_or_null<ObjCPropertyImplDecl>(
1930 ObjCImplementationDecl *IC=dyn_cast_or_null<ObjCImplementationDecl>(D);
tools/clang/lib/Sema/SemaOpenMP.cpp 1252 if (const auto *CTSD = dyn_cast_or_null<ClassTemplateSpecializationDecl>(RD))
2155 if (const auto *D = dyn_cast_or_null<OMPExecutableDirective>(CurDirective)) {
2218 if (const auto *VD = dyn_cast_or_null<VarDecl>(ND)) {
3998 if (const auto *IC = dyn_cast_or_null<OMPIfClause>(C)) {
4090 if (auto *ASE = dyn_cast_or_null<ArraySubscriptExpr>(RefExpr)) {
4096 } else if (auto *OASE = dyn_cast_or_null<OMPArraySectionExpr>(RefExpr)) {
4109 auto *DE = dyn_cast_or_null<DeclRefExpr>(RefExpr);
4110 auto *ME = dyn_cast_or_null<MemberExpr>(RefExpr);
5088 auto *NewFD = dyn_cast_or_null<FunctionDecl>(DRE->getDecl());
5443 if (auto *CE = dyn_cast_or_null<CXXConstructExpr>(NewLB))
5681 if (auto *Var = dyn_cast_or_null<VarDecl>(DS->getSingleDecl())) {
5731 if (const auto *CE = dyn_cast_or_null<CXXConstructExpr>(E))
5737 if (const auto *DRE = dyn_cast_or_null<DeclRefExpr>(E)) {
5741 if (const auto *ME = dyn_cast_or_null<MemberExpr>(E))
6490 if (auto *Var = dyn_cast_or_null<VarDecl>(LD))
6560 auto *For = dyn_cast_or_null<ForStmt>(S);
6561 auto *CXXFor = dyn_cast_or_null<CXXForRangeStmt>(S);
7767 while (auto *CS = dyn_cast_or_null<CapturedStmt>(BaseStmt))
7769 if (auto *C = dyn_cast_or_null<CompoundStmt>(BaseStmt)) {
8010 while (auto *CS = dyn_cast_or_null<CapturedStmt>(BaseStmt))
8012 if (auto *C = dyn_cast_or_null<CompoundStmt>(BaseStmt)) {
11218 auto *VD = dyn_cast_or_null<ValueDecl>(
13756 const auto *VD = dyn_cast_or_null<VarDecl>(D);
tools/clang/lib/Sema/SemaOverload.cpp 3585 CXXConversionDecl *Conv1 = dyn_cast_or_null<CXXConversionDecl>(Function1);
9451 dyn_cast_or_null<ConstructorUsingShadowDecl>(Cand1.FoundDecl.getDecl());
9453 dyn_cast_or_null<ConstructorUsingShadowDecl>(Cand2.FoundDecl.getDecl());
9479 auto *Guide1 = dyn_cast_or_null<CXXDeductionGuideDecl>(Cand1.Function);
9480 auto *Guide2 = dyn_cast_or_null<CXXDeductionGuideDecl>(Cand2.Function);
9524 auto *VA = dyn_cast_or_null<ValueDecl>(A);
9525 auto *VB = dyn_cast_or_null<ValueDecl>(B);
tools/clang/lib/Sema/SemaStmt.cpp 219 if (const LabelStmt *Label = dyn_cast_or_null<LabelStmt>(S))
222 const Expr *E = dyn_cast_or_null<Expr>(S);
1771 if (DeclStmt *DS = dyn_cast_or_null<DeclStmt>(First)) {
4174 FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(DC);
tools/clang/lib/Sema/SemaStmtAsm.cpp 151 if (Expr *E = dyn_cast_or_null<Expr>(Child))
tools/clang/lib/Sema/SemaTemplate.cpp 695 IsEnum = dyn_cast_or_null<EnumType>(NNS->getAsType());
742 if (const TagDecl *TD = dyn_cast_or_null<TagDecl>(PatternDef))
848 if (TemplateDecl *Temp = dyn_cast_or_null<TemplateDecl>(D)) {
1443 dyn_cast_or_null<ClassTemplateDecl>(PrevDecl);
1502 if (auto *Shadow = dyn_cast_or_null<UsingShadowDecl>(
2086 dyn_cast_or_null<CXXConstructorDecl>(FTD ? FTD->getTemplatedDecl() : D);
2495 if (auto *E = dyn_cast_or_null<Expr>(S))
2519 dyn_cast_or_null<TemplateTemplateParmDecl>(N.getAsTemplateDecl()))
2624 = dyn_cast_or_null<CXXRecordDecl>(computeDeclContext(SS, true)))
3477 auto *LookupRD = dyn_cast_or_null<CXXRecordDecl>(LookupCtx);
3590 dyn_cast_or_null<TypeAliasTemplateDecl>(Template.getAsTemplateDecl())) {
3677 dyn_cast_or_null<TemplateTemplateParmDecl>(
3851 dyn_cast_or_null<VarTemplateDecl>(Name.getAsTemplateDecl());
3857 FnTemplate = dyn_cast_or_null<FunctionTemplateDecl>(Name.getAsTemplateDecl());
7693 = dyn_cast_or_null<ClassTemplateDecl>(Name.getAsTemplateDecl());
8939 if (auto *BT = dyn_cast_or_null<ClassTemplateSpecializationDecl>(
9853 dyn_cast_or_null<CXXRecordDecl>(computeDeclContext(SS, false));
10070 auto *LookupRD = dyn_cast_or_null<CXXRecordDecl>(Ctx);
tools/clang/lib/Sema/SemaTemplateDeduction.cpp 3730 if (auto *DependentArrTy = dyn_cast_or_null<DependentSizedArrayType>(ArrTy)) {
tools/clang/lib/Sema/SemaTemplateInstantiate.cpp 1094 if (TemplateTypeParmDecl *TTPD = dyn_cast_or_null<TemplateTypeParmDecl>(D)) {
1188 = dyn_cast_or_null<TemplateTemplateParmDecl>(Name.getAsTemplateDecl())) {
2238 dyn_cast_or_null<CXXRecordDecl>(ND->getDeclContext());
tools/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp 276 auto *ThisContext = dyn_cast_or_null<CXXRecordDecl>(FD->getDeclContext());
359 auto *ThisContext = dyn_cast_or_null<CXXRecordDecl>(FD->getDeclContext());
487 *this, dyn_cast_or_null<CXXRecordDecl>(ND->getDeclContext()),
630 dyn_cast_or_null<CXXRecordDecl>(ND->getDeclContext());
3087 auto *ThisContext = dyn_cast_or_null<CXXRecordDecl>(Owner);
3177 auto *ThisContext = dyn_cast_or_null<CXXRecordDecl>(Owner);
tools/clang/lib/Sema/SemaTemplateVariadic.cpp 102 if (auto *TTP = dyn_cast_or_null<TemplateTemplateParmDecl>(
134 Expr *E = dyn_cast_or_null<Expr>(S);
tools/clang/lib/Sema/SemaType.cpp 1517 TagDecl *D = dyn_cast_or_null<TagDecl>(DS.getRepAsDecl());
4970 dyn_cast_or_null<CXXRecordDecl>(S.computeDeclContext(SS))) {
8040 TagDecl *Tag = dyn_cast_or_null<TagDecl>(Def);
8041 ObjCInterfaceDecl *IFace = dyn_cast_or_null<ObjCInterfaceDecl>(Def);
8068 if (auto *RD = dyn_cast_or_null<CXXRecordDecl>(Tag)) {
tools/clang/lib/Sema/TreeTransform.h 1061 if (auto *Deduced = dyn_cast_or_null<DeducedTemplateSpecializationType>(
6182 if (TypeAliasTemplateDecl *TAT = dyn_cast_or_null<TypeAliasTemplateDecl>(
7238 auto *MD = dyn_cast_or_null<CXXMethodDecl>(FD);
tools/clang/lib/Serialization/ASTCommon.h 104 auto *ND = dyn_cast_or_null<NamedDecl>(LexicalD);
tools/clang/lib/Serialization/ASTReader.cpp 8641 = dyn_cast_or_null<NamespaceDecl>(GetDecl(KnownNamespaces[I])))
8674 VarDecl *Var = dyn_cast_or_null<VarDecl>(GetDecl(TentativeDefinitions[I]));
8685 = dyn_cast_or_null<DeclaratorDecl>(GetDecl(UnusedFileScopedDecls[I]));
8696 = dyn_cast_or_null<CXXConstructorDecl>(GetDecl(DelegatingCtorDecls[I]));
8706 = dyn_cast_or_null<TypedefNameDecl>(GetDecl(ExtVectorDecls[I]));
8717 TypedefNameDecl *D = dyn_cast_or_null<TypedefNameDecl>(
8766 VT.Record = dyn_cast_or_null<CXXRecordDecl>(GetDecl(VTableUses[Idx++]));
tools/clang/lib/Serialization/ASTReaderDecl.cpp 249 operator T*() const { return dyn_cast_or_null<T>(Existing); }
tools/clang/lib/StaticAnalyzer/Checkers/AnalysisOrderChecker.cpp 110 if (const NamedDecl *ND = dyn_cast_or_null<NamedDecl>(Call.getDecl()))
119 if (const NamedDecl *ND = dyn_cast_or_null<NamedDecl>(Call.getDecl()))
tools/clang/lib/StaticAnalyzer/Checkers/BasicObjCFoundationChecks.cpp 1054 const ObjCMethodCall *Message = dyn_cast_or_null<ObjCMethodCall>(Call);
tools/clang/lib/StaticAnalyzer/Checkers/BoolAssignmentChecker.cpp 60 dyn_cast_or_null<TypedValueRegion>(loc.getAsRegion());
tools/clang/lib/StaticAnalyzer/Checkers/BuiltinFunctionChecker.cpp 35 const auto *FD = dyn_cast_or_null<FunctionDecl>(Call.getDecl());
tools/clang/lib/StaticAnalyzer/Checkers/CStringChecker.cpp 2224 const auto *CE = dyn_cast_or_null<CallExpr>(Call.getOriginExpr());
2228 const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(Call.getDecl());
tools/clang/lib/StaticAnalyzer/Checkers/CallAndMessageChecker.cpp 441 const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(D);
tools/clang/lib/StaticAnalyzer/Checkers/CheckObjCDealloc.cpp 311 return dyn_cast_or_null<ObjCIvarRegion>(IvarSym->getOriginRegion());
409 auto *CondBSE = dyn_cast_or_null<BinarySymExpr>(Cond.getAsSymExpr());
458 auto *OMC = dyn_cast_or_null<ObjCMethodCall>(Call);
tools/clang/lib/StaticAnalyzer/Checkers/DereferenceChecker.cpp 253 const TypedValueRegion *TVR = dyn_cast_or_null<TypedValueRegion>(MR);
tools/clang/lib/StaticAnalyzer/Checkers/DynamicTypePropagation.cpp 260 if (dyn_cast_or_null<InitListExpr>(
tools/clang/lib/StaticAnalyzer/Checkers/ExprInspectionChecker.cpp 69 const auto *CE = dyn_cast_or_null<CallExpr>(Call.getOriginExpr());
230 auto MR = dyn_cast_or_null<SubRegion>(C.getSVal(CE->getArg(0)).getAsRegion());
tools/clang/lib/StaticAnalyzer/Checkers/GenericTaintChecker.cpp 670 const SymbolicRegion *SymReg = dyn_cast_or_null<SymbolicRegion>(MemReg);
679 const DeclRegion *DeclReg = dyn_cast_or_null<DeclRegion>(Sm->getRegion());
685 if (const auto *D = dyn_cast_or_null<VarDecl>(DeclReg->getDecl())) {
tools/clang/lib/StaticAnalyzer/Checkers/IdenticalExprChecker.cpp 138 while (const IfStmt *I2 = dyn_cast_or_null<IfStmt>(Else)) {
tools/clang/lib/StaticAnalyzer/Checkers/InnerPointerChecker.cpp 171 dyn_cast_or_null<TypedValueRegion>(Arg.getAsRegion());
200 const auto *ObjRegion = dyn_cast_or_null<TypedValueRegion>(
tools/clang/lib/StaticAnalyzer/Checkers/IteratorChecker.cpp 371 const auto *Func = dyn_cast_or_null<FunctionDecl>(Call.getDecl());
561 const auto *Func = dyn_cast_or_null<FunctionDecl>(Call.getDecl());
tools/clang/lib/StaticAnalyzer/Checkers/LocalizationChecker.cpp 848 if (const ObjCMethodDecl *OMD = dyn_cast_or_null<ObjCMethodDecl>(D)) {
866 dyn_cast_or_null<ObjCStringRegion>(svTitle.getAsRegion())) {
885 const auto *FD = dyn_cast_or_null<FunctionDecl>(Call.getDecl());
960 dyn_cast_or_null<SymbolicRegion>(sv.getAsRegion());
1266 if (IntegerLiteral *IL = dyn_cast_or_null<IntegerLiteral>(
tools/clang/lib/StaticAnalyzer/Checkers/MacOSKeychainAPIChecker.cpp 512 auto *CondBSE = dyn_cast_or_null<BinarySymExpr>(Cond.getAsSymExpr());
tools/clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp 1537 dyn_cast_or_null<SymbolicRegion>(RetVal.getAsRegion());
2067 while (const ElementRegion *ER = dyn_cast_or_null<ElementRegion>(MR))
2375 while (const ElementRegion *ER = dyn_cast_or_null<ElementRegion>(MR))
3254 const auto *D = dyn_cast_or_null<NamedDecl>(Call->getDecl());
tools/clang/lib/StaticAnalyzer/Checkers/MoveChecker.cpp 264 if (const auto *SR = dyn_cast_or_null<SymbolicRegion>(MR)) {
449 const auto MethodDecl = dyn_cast_or_null<CXXMethodDecl>(AFC->getDecl());
468 const auto *CC = dyn_cast_or_null<CXXConstructorCall>(&Call);
500 dyn_cast_or_null<CXXConversionDecl>(MethodDec)) {
535 auto *CtorDec = dyn_cast_or_null<CXXConstructorDecl>(CtxDec);
536 auto *DtorDec = dyn_cast_or_null<CXXDestructorDecl>(CtxDec);
537 auto *MethodDec = dyn_cast_or_null<CXXMethodDecl>(CtxDec);
580 dyn_cast_or_null<DeclRegion>(unwrapRValueReferenceIndirection(MR))) {
635 const auto MethodDecl = dyn_cast_or_null<CXXMethodDecl>(IC->getDecl());
tools/clang/lib/StaticAnalyzer/Checkers/NoReturnFunctionChecker.cpp 44 if (const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(CE.getDecl()))
tools/clang/lib/StaticAnalyzer/Checkers/NullabilityChecker.cpp 1056 dyn_cast_or_null<TypedValueRegion>(L.getAsRegion());
tools/clang/lib/StaticAnalyzer/Checkers/ObjCSuperDeallocChecker.cpp 158 auto *IvarRegion = dyn_cast_or_null<ObjCIvarRegion>(PriorSubRegion);
tools/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountChecker.cpp 293 if (!Sym || !dyn_cast_or_null<ObjCIvarRegion>(Sym->getOriginRegion()))
555 auto *ArgRegion = dyn_cast_or_null<TypedValueRegion>(ArgVal.getAsRegion());
892 const auto *FD = dyn_cast_or_null<FunctionDecl>(Call.getDecl());
896 const auto *CE = dyn_cast_or_null<CallExpr>(Call.getOriginExpr());
tools/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountChecker.h 387 auto Method = dyn_cast_or_null<ObjCMethodDecl>(SFC->getDecl());
tools/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountDiagnostics.cpp 597 if (const Expr *Exp = dyn_cast_or_null<Expr>(Child))
607 if (const auto *VR = dyn_cast_or_null<VarRegion>(MR))
679 if (const auto *ME = dyn_cast_or_null<ObjCMessageExpr>(CE)) {
tools/clang/lib/StaticAnalyzer/Checkers/ReturnPointerRangeChecker.cpp 45 const ElementRegion *ER = dyn_cast_or_null<ElementRegion>(R);
tools/clang/lib/StaticAnalyzer/Checkers/SmartPtrModeling.cpp 41 const auto *CD = dyn_cast_or_null<CXXConversionDecl>(Call.getDecl());
tools/clang/lib/StaticAnalyzer/Checkers/StackAddrEscapeChecker.cpp 242 if (const BlockDataRegion *B = dyn_cast_or_null<BlockDataRegion>(
tools/clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp 341 const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(Call.getDecl());
345 const CallExpr *CE = dyn_cast_or_null<CallExpr>(Call.getOriginExpr());
372 const auto *FD = dyn_cast_or_null<FunctionDecl>(Call.getDecl());
376 const auto *CE = dyn_cast_or_null<CallExpr>(Call.getOriginExpr());
tools/clang/lib/StaticAnalyzer/Checkers/StreamChecker.cpp 108 const auto *FD = dyn_cast_or_null<FunctionDecl>(Call.getDecl());
112 const auto *CE = dyn_cast_or_null<CallExpr>(Call.getOriginExpr());
tools/clang/lib/StaticAnalyzer/Checkers/Taint.cpp 80 if (const SymbolicRegion *SR = dyn_cast_or_null<SymbolicRegion>(R))
tools/clang/lib/StaticAnalyzer/Checkers/UndefBranchChecker.cpp 41 if (const Expr *ExI = dyn_cast_or_null<Expr>(SubStmt))
tools/clang/lib/StaticAnalyzer/Checkers/UninitializedObject/UninitializedObjectChecker.cpp 141 const auto *CtorDecl = dyn_cast_or_null<CXXConstructorDecl>(
tools/clang/lib/StaticAnalyzer/Checkers/ValistChecker.cpp 182 const auto *EReg = dyn_cast_or_null<ElementRegion>(Reg);
tools/clang/lib/StaticAnalyzer/Checkers/VforkChecker.cpp 83 auto FD = dyn_cast_or_null<FunctionDecl>(D);
tools/clang/lib/StaticAnalyzer/Checkers/VirtualCallChecker.cpp 79 dyn_cast_or_null<CXXMethodDecl>(CE->getDirectCallee());
103 const CXXMethodDecl *MD = dyn_cast_or_null<CXXMethodDecl>(Call.getDecl());
167 const auto *MD = dyn_cast_or_null<CXXMethodDecl>(LCtx->getDecl());
tools/clang/lib/StaticAnalyzer/Core/BugReporter.cpp 289 const auto *CE = dyn_cast_or_null<CallExpr>(CallSite);
1104 if (const auto *FS = dyn_cast_or_null<ObjCForCollectionStmt>(S))
1261 if (const auto *CS = dyn_cast_or_null<CompoundStmt>(Body)) {
1897 const auto *FS = dyn_cast_or_null<ObjCForCollectionStmt>(level3);
3104 if (const auto *RS = dyn_cast_or_null<ReturnStmt>(P)) {
tools/clang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp 472 if (const auto *FD = dyn_cast_or_null<FunctionDecl>(RD.getDecl()))
474 if (const auto *MD = dyn_cast_or_null<ObjCMethodDecl>(RD.getDecl()))
1484 dyn_cast_or_null<BlockDataRegion>(V.getAsRegion())) {
2895 const NoteTag *T = dyn_cast_or_null<NoteTag>(PP.getTag());
tools/clang/lib/StaticAnalyzer/Core/CallEvent.cpp 162 const auto *FD = dyn_cast_or_null<FunctionDecl>(getDecl());
365 const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(getDecl());
851 return dyn_cast_or_null<BlockDataRegion>(DataReg);
1044 if (const auto *POE = dyn_cast_or_null<PseudoObjectExpr>(S)) {
1231 if (auto *PT = dyn_cast_or_null<ObjCObjectPointerType>(ReceiverT)) {
tools/clang/lib/StaticAnalyzer/Core/CheckerHelpers.cpp 84 if (auto Assign = dyn_cast_or_null<BinaryOperator>(S)) {
88 if (auto DE = dyn_cast_or_null<DeclRefExpr>(Assign->getLHS()))
89 VD = dyn_cast_or_null<VarDecl>(DE->getDecl());
91 } else if (auto PD = dyn_cast_or_null<DeclStmt>(S)) {
tools/clang/lib/StaticAnalyzer/Core/CoreEngine.cpp 474 if (const auto *CallerCtor = dyn_cast_or_null<CXXConstructExpr>(
tools/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp 1568 if (const auto *MD = dyn_cast_or_null<CXXMethodDecl>(Callee)) {
2433 const auto *MD = dyn_cast_or_null<CXXMethodDecl>(D);
tools/clang/lib/StaticAnalyzer/Core/ExprEngineC.cpp 212 dyn_cast_or_null<BlockDataRegion>(V.getAsRegion())) {
322 if (const ExplicitCastExpr *ExCast=dyn_cast_or_null<ExplicitCastExpr>(CastE))
577 const VarDecl *VD = dyn_cast_or_null<VarDecl>(*DS->decl_begin());
tools/clang/lib/StaticAnalyzer/Core/ExprEngineCXX.cpp 168 dyn_cast_or_null<SubRegion>(V.getAsRegion())) {
435 const auto *OuterCtor = dyn_cast_or_null<CXXConstructExpr>(
458 if (dyn_cast_or_null<InitListExpr>(LCtx->getParentMap().getParent(CE))) {
635 if (const Expr *E = dyn_cast_or_null<Expr>(S)) {
tools/clang/lib/StaticAnalyzer/Core/ExprEngineCallAndReturn.cpp 228 if (const ReturnStmt *RS = dyn_cast_or_null<ReturnStmt>(LastSt)) {
326 if (const CXXNewExpr *CNE = dyn_cast_or_null<CXXNewExpr>(CE)) {
993 const CXXMethodDecl *MD = dyn_cast_or_null<CXXMethodDecl>(ICall->getDecl());
tools/clang/lib/StaticAnalyzer/Core/IssueHash.cpp 58 llvm::dyn_cast_or_null<FunctionType>(Target->getType().getTypePtr());
71 dyn_cast_or_null<FunctionProtoType>(Target->getType().getTypePtr())) {
106 DeclName = GetSignature(dyn_cast_or_null<FunctionDecl>(ND));
tools/clang/lib/StaticAnalyzer/Core/RegionStore.cpp 1755 dyn_cast_or_null<TypedValueRegion>(O.getRegion())) {
tools/clang/lib/StaticAnalyzer/Core/SValBuilder.cpp 242 if (const auto *MD = dyn_cast_or_null<CXXMethodDecl>(DD)) {
tools/clang/lib/StaticAnalyzer/Core/SVals.cpp 72 if (const auto *MD = dyn_cast_or_null<CXXMethodDecl>(X->getDecl()))
tools/clang/lib/StaticAnalyzer/Core/SimpleConstraintManager.cpp 33 if (const TypedRegion *TR = dyn_cast_or_null<TypedRegion>(MR))
tools/clang/lib/StaticAnalyzer/Core/Store.cpp 424 if (const auto *SR = dyn_cast_or_null<SymbolicRegion>(V.getAsRegion()))
tools/clang/lib/Tooling/ASTDiff/ASTDiff.cpp 240 if (auto *E = dyn_cast_or_null<Expr>(S))
tools/clang/lib/Tooling/Refactoring/Rename/USRLocFinder.cpp 290 llvm::dyn_cast_or_null<EnumDecl>(getClosestAncestorDecl(*T))) {
457 llvm::dyn_cast_or_null<EnumDecl>(Loc.getType()->getAsTagDecl()))
tools/clang/tools/extra/clang-tidy/bugprone/ArgumentCommentCheck.cpp 202 dyn_cast_or_null<CXXMethodDecl>(Method->getNextDeclInContext())) {
tools/clang/tools/extra/clang-tidy/bugprone/BranchCloneCheck.cpp 161 const CompoundStmt *Body = dyn_cast_or_null<CompoundStmt>(SS->getBody());
tools/clang/tools/extra/clang-tidy/google/NonConstReferences.cpp 50 dyn_cast_or_null<FunctionDecl>(Parameter->getParentFunctionOrMethod());
tools/clang/tools/extra/clang-tidy/google/UsingNamespaceDirectiveCheck.cpp 52 const auto *Parent = dyn_cast_or_null<NamespaceDecl>(NS->getParent());
tools/clang/tools/extra/clang-tidy/misc/RedundantExpressionCheck.cpp 516 const auto *OverloadedFunctionDecl = dyn_cast_or_null<FunctionDecl>(OverloadedOperatorExpr->getCalleeDecl());
1011 const auto *OverloadedFunctionDecl = dyn_cast_or_null<FunctionDecl>(Call->getCalleeDecl());
tools/clang/tools/extra/clang-tidy/misc/UnusedParametersCheck.cpp 100 dyn_cast_or_null<FunctionDecl>(Call->getCalleeDecl())) {
tools/clang/tools/extra/clang-tidy/modernize/LoopConvertCheck.cpp 308 dyn_cast_or_null<CXXMemberCallExpr>(digThroughConstructors(Init));
tools/clang/tools/extra/clang-tidy/modernize/LoopConvertUtils.cpp 75 if (auto *V = dyn_cast_or_null<VarDecl>(DeclRef->getDecl()))
825 if (const auto *LE = dyn_cast_or_null<LambdaExpr>(NextStmtParent)) {
tools/clang/tools/extra/clang-tidy/readability/NonConstParameterCheck.cpp 142 dyn_cast_or_null<const FunctionDecl>(Par->getParentFunctionOrMethod());
tools/clang/tools/extra/clangd/CodeComplete.cpp 649 if (auto *R = dyn_cast_or_null<RecordDecl>(&D))
tools/clang/tools/extra/clangd/FindTarget.cpp 104 if (const DeclContext *Parent = dyn_cast_or_null<DeclContext>(
274 llvm::dyn_cast_or_null<TemplateTemplateParmDecl>(
tools/clang/tools/extra/clangd/Quality.cpp 264 if (auto *R = dyn_cast_or_null<RecordDecl>(D))
tools/clang/tools/extra/clangd/XRefs.cpp 1001 dyn_cast_or_null<NamedDecl>(ND->getDeclContext()))
tools/clang/tools/extra/clangd/refactor/tweaks/ExtractFunction.cpp 545 const ValueDecl *VD = dyn_cast_or_null<ValueDecl>(DeclInfo.TheDecl);
tools/clang/tools/extra/clangd/refactor/tweaks/ExtractVariable.cpp 212 llvm::dyn_cast_or_null<BinaryOperator>(N.ASTNode.get<Expr>())) {
219 llvm::dyn_cast_or_null<CXXOperatorCallExpr>(
329 llvm::dyn_cast_or_null<CallExpr>(MaybeCall->ASTNode.get<Expr>());
417 dyn_cast_or_null<BinaryOperator>(SelectedExpr)) {
tools/clang/tools/extra/clangd/refactor/tweaks/RawStringLiteral.cpp 84 Str = dyn_cast_or_null<StringLiteral>(N->ASTNode.get<Stmt>());
tools/clang/tools/extra/clangd/refactor/tweaks/SwapIfBranches.cpp 54 if (dyn_cast_or_null<CompoundStmt>(N->ASTNode.get<Stmt>()))
56 If = dyn_cast_or_null<IfStmt>(N->ASTNode.get<Stmt>());
60 return If && dyn_cast_or_null<CompoundStmt>(If->getThen()) &&
61 dyn_cast_or_null<CompoundStmt>(If->getElse());
tools/clang/tools/extra/clangd/unittests/TraceTests.cpp 44 auto *K = llvm::dyn_cast_or_null<llvm::yaml::ScalarNode>(Prop.getKey());
52 auto *V = llvm::dyn_cast_or_null<llvm::yaml::ScalarNode>(Prop.getValue());
89 auto *Root = llvm::dyn_cast_or_null<llvm::yaml::MappingNode>(Doc->getRoot());
108 llvm::dyn_cast_or_null<llvm::yaml::SequenceNode>(Prop->getValue());
tools/clang/tools/libclang/CIndex.cpp 2645 if (auto *FD = dyn_cast_or_null<FieldDecl>(SubME->getMemberDecl())) {
3694 const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(D);
4598 if (const LabelStmt *Label = dyn_cast_or_null<LabelStmt>(S))
4658 if (const LabelStmt *Label = dyn_cast_or_null<LabelStmt>(S)) {
4669 ME = dyn_cast_or_null<ObjCMessageExpr>(getCursorExpr(C))) {
4679 MD = dyn_cast_or_null<ObjCMethodDecl>(getCursorDecl(C))) {
4691 CD = dyn_cast_or_null<ObjCCategoryDecl>(getCursorDecl(C)))
4694 CID = dyn_cast_or_null<ObjCCategoryImplDecl>(getCursorDecl(C)))
4702 dyn_cast_or_null<ImportDecl>(getCursorDecl(C))) {
4717 dyn_cast_or_null<FunctionDecl>(getCursorDecl(C))) {
5574 = dyn_cast_or_null<ObjCMethodDecl>(getCursorDecl(cursor))) {
5579 = dyn_cast_or_null<ObjCInterfaceDecl>(getCursorDecl(cursor))) {
5589 = dyn_cast_or_null<ObjCInterfaceDecl>(getCursorDecl(*BestCursor))){
5597 = dyn_cast_or_null<DeclaratorDecl>(getCursorDecl(cursor))) {
5610 = dyn_cast_or_null<ObjCPropertyImplDecl>(getCursorDecl(cursor))) {
6152 if (const OverloadExpr *Ovl = dyn_cast_or_null<OverloadExpr>(E))
6160 if (const GotoStmt *Goto = dyn_cast_or_null<GotoStmt>(S))
7102 = dyn_cast_or_null<ObjCPropertyDecl>(getCursorDecl(cursor)))
7109 = dyn_cast_or_null<ObjCMethodDecl>(getCursorDecl(cursor))) {
7125 = dyn_cast_or_null<CXXMethodDecl>(getCursorDecl(cursor))) {
7602 = dyn_cast_or_null<ObjCPropertyDecl>(getCursorDecl(Cursors[I]))) {
7696 if (const NamedDecl *ND = dyn_cast_or_null<NamedDecl>(D))
7719 if (const NamedDecl *ND = dyn_cast_or_null<NamedDecl>(D))
8267 dyn_cast_or_null<ImportDecl>(getCursorDecl(C)))
8367 D ? dyn_cast_or_null<CXXConstructorDecl>(D->getAsFunction()) : nullptr;
8377 D ? dyn_cast_or_null<CXXConstructorDecl>(D->getAsFunction()) : nullptr;
8387 D ? dyn_cast_or_null<CXXConstructorDecl>(D->getAsFunction()) : nullptr;
8397 D ? dyn_cast_or_null<CXXConstructorDecl>(D->getAsFunction()) : nullptr;
8407 if (const auto FD = dyn_cast_or_null<FieldDecl>(D))
8418 D ? dyn_cast_or_null<CXXMethodDecl>(D->getAsFunction()) : nullptr;
8428 D ? dyn_cast_or_null<CXXMethodDecl>(D->getAsFunction()) : nullptr;
8438 D ? dyn_cast_or_null<CXXMethodDecl>(D->getAsFunction()) : nullptr;
8448 D ? dyn_cast_or_null<CXXMethodDecl>(D->getAsFunction()) : nullptr;
8458 D ? dyn_cast_or_null<CXXMethodDecl>(D->getAsFunction()) : nullptr;
8467 const auto *RD = dyn_cast_or_null<CXXRecordDecl>(D);
8478 auto *Enum = dyn_cast_or_null<EnumDecl>(D);
tools/clang/tools/libclang/CIndexCXX.cpp 57 = dyn_cast_or_null<TemplateDecl>(getCursorDecl(C)))
63 = dyn_cast_or_null<ClassTemplatePartialSpecializationDecl>(
tools/clang/tools/libclang/CXCursor.cpp 511 dyn_cast_or_null<ImplicitParamDecl>(cast<DeclRefExpr>(S)->getDecl())) {
1019 return dyn_cast_or_null<Expr>(getCursorStmt(Cursor));
1053 const NamedDecl *D = dyn_cast_or_null<NamedDecl>(getCursorDecl(cursor));
1176 if (const ObjCMethodDecl *MD = dyn_cast_or_null<ObjCMethodDecl>(D))
1178 if (const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(D))
1198 if (const ObjCMethodDecl *MD = dyn_cast_or_null<ObjCMethodDecl>(D)) {
1202 } else if (const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(D)) {
1235 const FunctionDecl *FD = llvm::dyn_cast_or_null<clang::FunctionDecl>(
1273 const FunctionDecl *FD = llvm::dyn_cast_or_null<clang::FunctionDecl>(
1431 if (const NamedDecl *namedDecl = dyn_cast_or_null<NamedDecl>(decl)) {
1586 ME = dyn_cast_or_null<MemberExpr>(CE->getCallee());
1590 MD = dyn_cast_or_null<CXXMethodDecl>(ME->getMemberDecl()))
1605 if (const ObjCMessageExpr *MsgE = dyn_cast_or_null<ObjCMessageExpr>(E))
1617 ME = dyn_cast_or_null<MemberExpr>(CE->getCallee());
1620 if (dyn_cast_or_null<CXXMethodDecl>(ME->getMemberDecl())) {
tools/clang/tools/libclang/CXIndexDataConsumer.cpp 167 if (auto *ObjCID = dyn_cast_or_null<ObjCInterfaceDecl>(ASTNode.OrigD)) {
175 if (auto *ObjCPD = dyn_cast_or_null<ObjCProtocolDecl>(ASTNode.OrigD)) {
206 dyn_cast_or_null<NamedDecl>(ASTNode.Parent),
tools/clang/tools/libclang/CXType.cpp 312 if (const TypedefNameDecl *TD = dyn_cast_or_null<TypedefNameDecl>(D)) {
330 if (const EnumDecl *TD = dyn_cast_or_null<EnumDecl>(D)) {
347 if (const EnumConstantDecl *TD = dyn_cast_or_null<EnumConstantDecl>(D)) {
363 if (const EnumConstantDecl *TD = dyn_cast_or_null<EnumConstantDecl>(D)) {
379 if (const FieldDecl *FD = dyn_cast_or_null<FieldDecl>(D)) {
722 if (const ObjCMethodDecl *MD = dyn_cast_or_null<ObjCMethodDecl>(D))
987 dyn_cast_or_null<RecordDecl>(cxcursor::getCursorDecl(PC));
1022 dyn_cast_or_null<RecordDecl>(cxcursor::getCursorDecl(PC));
1062 if (const FieldDecl *FD = dyn_cast_or_null<FieldDecl>(D))
1064 if (const IndirectFieldDecl *IFD = dyn_cast_or_null<IndirectFieldDecl>(D))
1091 const FieldDecl *FD = dyn_cast_or_null<FieldDecl>(cxcursor::getCursorDecl(C));
1232 dyn_cast_or_null<RecordDecl>(cxcursor::getCursorDecl(PC));
1241 const FieldDecl *FD = dyn_cast_or_null<FieldDecl>((*I));
1257 if (const NamespaceDecl *ND = dyn_cast_or_null<NamespaceDecl>(D)) {
1259 } else if (const TagDecl *TD = dyn_cast_or_null<TagDecl>(D)) {
1271 if (const RecordDecl *FD = dyn_cast_or_null<RecordDecl>(D))
1280 const NamespaceDecl *ND = dyn_cast_or_null<NamespaceDecl>(D);
1296 if (auto *TT = dyn_cast_or_null<TypedefType>(T.getTypePtrOrNull())) {
tools/clang/utils/TableGen/ClangOptionDocEmitter.cpp 218 if (auto *SV = dyn_cast_or_null<StringInit>(V->getValue()))
220 else if (auto *CV = dyn_cast_or_null<CodeInit>(V->getValue()))
tools/lld/COFF/Chunks.cpp 375 dyn_cast_or_null<Defined>(file->getSymbol(rel.SymbolTableIndex));
553 dyn_cast_or_null<Defined>(file->getSymbol(rel.SymbolTableIndex));
tools/lld/COFF/Driver.cpp 909 if (auto *d = dyn_cast_or_null<Defined>(s))
910 if (SectionChunk *c = dyn_cast_or_null<SectionChunk>(d->getChunk()))
1830 if (dyn_cast_or_null<LazyArchive>(symtab->find(arg->getValue())))
tools/lld/COFF/ICF.cpp 275 if (auto *sym = dyn_cast_or_null<DefinedRegular>(b))
tools/lld/COFF/MapFile.cpp 52 if (auto *sym = dyn_cast_or_null<DefinedRegular>(b))
tools/lld/COFF/MinGW.cpp 160 if (auto *def = dyn_cast_or_null<Defined>(e.sym)) {
tools/lld/COFF/PDB.cpp 956 if (auto *secChunk = dyn_cast_or_null<SectionChunk>(c)) {
1730 if (auto *s = dyn_cast_or_null<DefinedRegular>(
tools/lld/COFF/SymbolTable.cpp 90 auto *d = dyn_cast_or_null<DefinedRegular>(s);
254 return dyn_cast_or_null<Defined>(find(("__imp_" + name).str()));
292 dyn_cast_or_null<DefinedRegular>(find((".refptr." + name).str()));
294 SectionChunk *sc = dyn_cast_or_null<SectionChunk>(refptr->getChunk());
tools/lld/COFF/Writer.cpp 408 SectionChunk *sc = dyn_cast_or_null<SectionChunk>(os->chunks[i]);
431 Defined *sym = dyn_cast_or_null<Defined>(relocTarget);
501 SectionChunk *sc = dyn_cast_or_null<SectionChunk>(c);
510 Defined *sym = dyn_cast_or_null<Defined>(relocTarget);
702 SectionChunk *sc1 = dyn_cast_or_null<SectionChunk>(s);
703 SectionChunk *sc2 = dyn_cast_or_null<SectionChunk>(t);
1157 auto *d = dyn_cast_or_null<Defined>(b);
tools/lld/ELF/AArch64ErrataFix.cpp 450 if (auto *sec = dyn_cast_or_null<InputSection>(def->section))
tools/lld/ELF/ARMErrataFix.cpp 327 if (auto *sec = dyn_cast_or_null<InputSection>(def->section))
tools/lld/ELF/Arch/Mips.cpp 357 auto *f = dyn_cast_or_null<ObjFile<ELFT>>(file);
tools/lld/ELF/Driver.cpp 725 if (Defined *dr = dyn_cast_or_null<Defined>(sym))
726 return dyn_cast_or_null<InputSectionBase>(dr->section);
756 auto *from = dyn_cast_or_null<InputSectionBase>(fromSym->section);
757 auto *to = dyn_cast_or_null<InputSectionBase>(toSym->section);
1449 if (auto *d = dyn_cast_or_null<Defined>(s))
1464 auto *d = dyn_cast_or_null<Defined>(symtab->find(name));
tools/lld/ELF/ICF.cpp 434 if (auto *relSec = dyn_cast_or_null<InputSection>(d->section))
tools/lld/ELF/LinkerScript.cpp 715 if (auto *relIS = dyn_cast_or_null<InputSectionBase>(rel->parent))
tools/lld/ELF/MarkLive.cpp 99 auto *relSec = dyn_cast_or_null<InputSectionBase>(d->section);
207 if (auto *d = dyn_cast_or_null<Defined>(sym))
208 if (auto *isec = dyn_cast_or_null<InputSectionBase>(d->section))
tools/lld/ELF/Relocations.cpp 490 if (auto *alias = dyn_cast_or_null<SharedSymbol>(sym))
653 auto *file = dyn_cast_or_null<ObjFile<ELFT>>(sym.file);
tools/lld/ELF/Symbols.cpp 488 if (dyn_cast_or_null<SharedFile>(other.file))
555 if (dyn_cast_or_null<BitcodeFile>(other->file))
625 dyn_cast_or_null<InputSectionBase>(other.section),
tools/lld/ELF/SyntheticSections.cpp 2095 return dyn_cast_or_null<BssSection>(d->section);
tools/lld/ELF/Writer.cpp 1232 if (auto *sec = dyn_cast_or_null<InputSectionBase>(d->section)) {
1774 if (auto *f = dyn_cast_or_null<SharedFile>(sym->file))
1790 if (auto *file = dyn_cast_or_null<SharedFile>(sym->file))
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileFromAtoms.cpp 857 assert(dyn_cast_or_null<lld::mach_o::DwarfDebugInfo>(atomFile.debugInfo())
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp 104 if (auto *runtime_decl_vendor = llvm::dyn_cast_or_null<ClangDeclVendor>(
2053 llvm::dyn_cast_or_null<ClangASTContext>(src_type.GetTypeSystem());
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.cpp 246 llvm::dyn_cast_or_null<ClangASTContext>(parser_type.GetTypeSystem());
680 return llvm::dyn_cast_or_null<ClangASTContext>(
1104 ClangASTContext *ast = llvm::dyn_cast_or_null<ClangASTContext>(
1260 ClangASTContext *ast = llvm::dyn_cast_or_null<ClangASTContext>(
1466 copied_decl ? dyn_cast_or_null<clang::VarDecl>(copied_decl)
1537 ClangASTContext *clang_ast = llvm::dyn_cast_or_null<ClangASTContext>(
1921 llvm::dyn_cast_or_null<clang::FunctionDecl>(src_decl_context);
1927 llvm::dyn_cast_or_null<clang::FunctionTemplateDecl>(
1948 llvm::dyn_cast_or_null<clang::FunctionDecl>(
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangPersistentVariables.cpp 71 if (clang::TypeDecl *tdecl = llvm::dyn_cast_or_null<clang::TypeDecl>(
tools/lldb/source/Plugins/Language/CPlusPlus/LibCxx.cpp 245 llvm::dyn_cast_or_null<ClangASTContext>(pair_type.GetTypeSystem());
tools/lldb/source/Plugins/Language/CPlusPlus/LibCxxMap.cpp 300 llvm::dyn_cast_or_null<ClangASTContext>(node_type.GetTypeSystem());
tools/lldb/source/Plugins/Language/ObjC/Cocoa.cpp 475 AppleObjCRuntime *runtime = llvm::dyn_cast_or_null<AppleObjCRuntime>(
848 auto *runtime = llvm::dyn_cast_or_null<AppleObjCRuntime>(
1035 if (AppleObjCRuntime *objc_runtime = llvm::dyn_cast_or_null<AppleObjCRuntime>(
tools/lldb/source/Plugins/Language/ObjC/NSArray.cpp 391 llvm::dyn_cast_or_null<AppleObjCRuntime>(runtime);
801 AppleObjCRuntime *runtime = llvm::dyn_cast_or_null<AppleObjCRuntime>(
tools/lldb/source/Plugins/Language/ObjC/NSDictionary.cpp 393 llvm::dyn_cast_or_null<AppleObjCRuntime>(runtime);
439 AppleObjCRuntime *runtime = llvm::dyn_cast_or_null<AppleObjCRuntime>(
tools/lldb/source/Plugins/Language/ObjC/NSSet.cpp 264 llvm::dyn_cast_or_null<AppleObjCRuntime>(runtime);
335 llvm::dyn_cast_or_null<AppleObjCRuntime>(runtime);
tools/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptx86ABIFixups.cpp 135 llvm::dyn_cast_or_null<llvm::CallInst>(&inst);
tools/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp 1087 function_decl = llvm::dyn_cast_or_null<clang::FunctionDecl>(
2473 llvm::dyn_cast_or_null<ClangASTContext>(class_clang_type.GetTypeSystem());
tools/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp 1395 llvm::dyn_cast_or_null<ClangASTContext>(type_system);
1407 llvm::dyn_cast_or_null<ClangASTContext>(compiler_type.GetTypeSystem());
1767 if (auto *dwarf_cu = llvm::dyn_cast_or_null<DWARFCompileUnit>(
3815 llvm::dyn_cast_or_null<ClangASTContext>(&ts_or_err.get());
tools/lldb/source/Plugins/SymbolFile/PDB/PDBASTParser.cpp 850 if (auto func = llvm::dyn_cast_or_null<PDBSymbolFunc>(&symbol)) {
896 if (auto parent_decl = llvm::dyn_cast_or_null<clang::TagDecl>(decl_context))
978 llvm::dyn_cast_or_null<clang::FunctionDecl>(GetDeclForSymbol(symbol));
tools/lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp 312 llvm::dyn_cast_or_null<ClangASTContext>(&type_system_or_err.get());
566 llvm::dyn_cast_or_null<ClangASTContext>(&type_system_or_err.get());
603 llvm::dyn_cast_or_null<ClangASTContext>(&type_system_or_err.get());
625 llvm::dyn_cast_or_null<ClangASTContext>(&type_system_or_err.get());
655 llvm::dyn_cast_or_null<ClangASTContext>(&type_system_or_err.get());
685 llvm::dyn_cast_or_null<ClangASTContext>(&type_system_or_err.get());
714 llvm::dyn_cast_or_null<ClangASTContext>(&type_system_or_err.get());
1455 llvm::dyn_cast_or_null<ClangASTContext>(&type_system_or_err.get());
1667 llvm::dyn_cast_or_null<ClangASTContext>(&type_system_or_err.get());
1689 llvm::dyn_cast_or_null<ClangASTContext>(&type_system_or_err.get());
1934 llvm::dyn_cast_or_null<PDBSymbolPublicSymbol>(
tools/lldb/source/Plugins/SymbolVendor/ELF/SymbolVendorELF.cpp 66 llvm::dyn_cast_or_null<ObjectFileELF>(module_sp->GetObjectFile());
tools/lldb/source/Symbol/ClangASTContext.cpp 1289 llvm::dyn_cast_or_null<ClangASTContext>(type1.GetTypeSystem());
2794 llvm::dyn_cast_or_null<clang::RecordType>(
3689 llvm::dyn_cast_or_null<clang::ObjCObjectType>(
7872 llvm::dyn_cast_or_null<ClangASTContext>(type.GetTypeSystem());
8350 llvm::dyn_cast_or_null<ClangASTContext>(type.GetTypeSystem());
8804 llvm::dyn_cast_or_null<clang::CXXRecordDecl>(tag_decl);
10289 llvm::dyn_cast_or_null<ClangASTContext>(dc.GetTypeSystem());
tools/lldb/source/Symbol/ClangASTImporter.cpp 92 llvm::dyn_cast_or_null<ClangASTContext>(src_type.GetTypeSystem());
tools/lldb/source/Symbol/ClangUtil.cpp 18 if (llvm::dyn_cast_or_null<ClangASTContext>(ct.GetTypeSystem()) == nullptr)
tools/lldb/tools/lldb-test/lldb-test.cpp 601 llvm::dyn_cast_or_null<ClangASTContext>(&type_system_or_err.get());
631 llvm::dyn_cast_or_null<ClangASTContext>(&type_system_or_err.get());
tools/polly/lib/Analysis/ScopDetection.cpp 574 auto *Unique = dyn_cast_or_null<ConstantInt>(
tools/polly/lib/CodeGen/BlockGenerators.cpp 851 if (auto *PHI = dyn_cast_or_null<PHINode>(Inst))
tools/polly/lib/Transform/ZoneAlgo.cpp 399 if (LoadInst *Load = dyn_cast_or_null<LoadInst>(MA->getAccessInstruction())) {
unittests/Analysis/LoopInfoTest.cpp 279 dyn_cast_or_null<ConstantInt>(Bounds->getStepValue());
337 dyn_cast_or_null<ConstantInt>(Bounds->getStepValue());
395 dyn_cast_or_null<ConstantInt>(Bounds->getStepValue());
453 dyn_cast_or_null<ConstantInt>(Bounds->getStepValue());
511 dyn_cast_or_null<ConstantInt>(Bounds->getStepValue());
570 dyn_cast_or_null<ConstantInt>(Bounds->getStepValue());
683 dyn_cast_or_null<ConstantInt>(Bounds->getStepValue());
739 dyn_cast_or_null<ConstantInt>(Bounds->getStepValue());
859 dyn_cast_or_null<ConstantInt>(Bounds->getStepValue());
919 dyn_cast_or_null<ConstantInt>(Bounds->getStepValue());
979 dyn_cast_or_null<ConstantInt>(Bounds->getStepValue());
1031 dyn_cast_or_null<ConstantInt>(Bounds->getStepValue());
1088 dyn_cast_or_null<ConstantInt>(Bounds->getStepValue());
1158 dyn_cast_or_null<ConstantInt>(Bounds->getStepValue());
1182 StepValue = dyn_cast_or_null<ConstantInt>(InnerBounds->getStepValue());
1249 dyn_cast_or_null<ConstantInt>(Bounds->getStepValue());
unittests/Analysis/MemorySSATest.cpp 1028 MemoryUse *MemUse = dyn_cast_or_null<MemoryUse>(MSSA.getMemoryAccess(V));
1036 MemoryUse *MemUse = dyn_cast_or_null<MemoryUse>(MSSA.getMemoryAccess(V));
1066 MemoryDef *MemDef = dyn_cast_or_null<MemoryDef>(MSSA.getMemoryAccess(V));
1119 MemoryUse *MemUse = dyn_cast_or_null<MemoryUse>(MSSA.getMemoryAccess(V));
1127 MemoryUse *MemUse = dyn_cast_or_null<MemoryUse>(MSSA.getMemoryAccess(V));
1170 MemoryDef *MemDef = dyn_cast_or_null<MemoryDef>(MSSA.getMemoryAccess(V));
1184 MemoryDef *MemDef = dyn_cast_or_null<MemoryDef>(MSSA.getMemoryAccess(V));
unittests/Support/Casting.cpp 74 return dyn_cast_or_null<foo>(this);
184 const foo *F1 = dyn_cast_or_null<foo>(B2);
186 const foo *F2 = dyn_cast_or_null<foo>(B2);
188 const foo *F3 = dyn_cast_or_null<foo>(B4);
190 foo *F4 = dyn_cast_or_null<foo>(fub());
unittests/Transforms/Utils/SSAUpdaterBulkTest.cpp 91 PHINode *UpdatePhiA = dyn_cast_or_null<PHINode>(I1->getOperand(0));
95 EXPECT_EQ(UpdatePhiA, dyn_cast_or_null<PHINode>(I1->getOperand(0)));
98 PHINode *UpdatePhiB = dyn_cast_or_null<PHINode>(I3->getOperand(0));
101 EXPECT_EQ(UpdatePhiB, dyn_cast_or_null<PHINode>(I3->getOperand(1)));
190 PHINode *UpdatePhi = dyn_cast_or_null<PHINode>(I2->getOperand(0));
utils/TableGen/CodeEmitterGen.cpp 270 if (auto *DI = dyn_cast_or_null<DefInit>(RV->getValue())) {
368 if (auto *DI = dyn_cast_or_null<DefInit>(RV->getValue())) {
410 if (DefInit *DI = dyn_cast_or_null<DefInit>(RV->getValue())) {
utils/TableGen/CodeGenInstruction.cpp 625 dyn_cast_or_null<IntInit>(BI->convertInitializerTo(IntRecTy::get()));
utils/TableGen/CodeGenRegisters.cpp 792 if (DefInit *DI = dyn_cast_or_null<DefInit>(RV->getValue()))
utils/TableGen/FixedLenDecoderEmitter.cpp 2398 if (auto *DI = dyn_cast_or_null<DefInit>(RV->getValue())) {
2416 if (DefInit *DI = dyn_cast_or_null<DefInit>(RV->getValue())) {