/external/clang/lib/StaticAnalyzer/Checkers/ |
CStringChecker.cpp | 836 const NamedDecl *FD = cast<FunctionTextRegion>(MR)->getDecl(); 837 if (FD) 838 os << "the address of the function '" << *FD << '\''; [all...] |
MallocChecker.cpp | 232 bool isMemFunction(const FunctionDecl *FD, ASTContext &C) const; 233 bool isFreeFunction(const FunctionDecl *FD, ASTContext &C) const; 234 bool isAllocationFunction(const FunctionDecl *FD, ASTContext &C) const; 235 bool isStandardNewDelete(const FunctionDecl *FD, ASTContext &C) const; 478 bool MallocChecker::isMemFunction(const FunctionDecl *FD, ASTContext &C) const { 479 if (isFreeFunction(FD, C)) 482 if (isAllocationFunction(FD, C)) 485 if (isStandardNewDelete(FD, C)) 491 bool MallocChecker::isAllocationFunction(const FunctionDecl *FD, 493 if (!FD) [all...] |
RetainCountChecker.cpp | 639 const RetainSummary *getCFSummaryCreateRule(const FunctionDecl *FD); 640 const RetainSummary *getCFSummaryGetRule(const FunctionDecl *FD); 641 const RetainSummary *getCFCreateGetRuleSummary(const FunctionDecl *FD); 750 const RetainSummary *getFunctionSummary(const FunctionDecl *FD); 795 const FunctionDecl *FD); 880 static bool isRetain(const FunctionDecl *FD, StringRef FName) { 884 static bool isRelease(const FunctionDecl *FD, StringRef FName) { 888 static bool isMakeCollectable(const FunctionDecl *FD, StringRef FName) { [all...] |
/external/clang/lib/StaticAnalyzer/Core/ |
ExprEngine.cpp | 101 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) { 104 const IdentifierInfo *II = FD->getIdentifier(); 105 if (!II || !(II->getName() == "main" && FD->getNumParams() > 0)) 108 const ParmVarDecl *PD = FD->getParamDecl(0); [all...] |
RegionStore.cpp | [all...] |
/external/clang/lib/Analysis/ |
CFG.cpp | 463 void appendMemberDtor(CFGBlock *B, FieldDecl *FD) { 464 B->appendMemberDtor(FD, cfg->getBumpVectorContext()); 743 if (FieldDecl *FD = I->getAnyMember()) 744 IsReference = FD->getType()->isReferenceType(); [all...] |
ThreadSafety.cpp | 286 const FunctionDecl *FD = 291 FD == CallCtx->AttrDecl->getCanonicalDecl()) { 297 makeNamedVar(FD->getParamDecl(i)); 356 const FunctionDecl* FD = 358 if (LockReturnedAttr* At = FD->getAttr<LockReturnedAttr>()) { [all...] |
/external/clang/lib/CodeGen/ |
CGClass.cpp | [all...] |
CGObjC.cpp | [all...] |
CodeGenModule.cpp | 719 const FunctionDecl *FD = cast<FunctionDecl>(GD.getDecl()); 722 SetLLVMFunctionAttributes(FD, getTypes().arrangeGlobalDeclaration(GD), F); 735 if (FD->hasAttr<DLLImportAttr>()) { 737 } else if (FD->hasAttr<WeakAttr>() || 738 FD->isWeakImported()) { 745 LinkageInfo LV = FD->getLinkageAndVisibility(); 751 if (const SectionAttr *SA = FD->getAttr<SectionAttr>()) 756 if (FD->isReplaceableGlobalAllocationFunction()) [all...] |
CGDebugInfo.cpp | 163 StringRef CGDebugInfo::getFunctionName(const FunctionDecl *FD) { 164 assert (FD && "Invalid FunctionDecl!"); 165 IdentifierInfo *FII = FD->getIdentifier(); 167 = FD->getTemplateSpecializationInfo(); 174 FD->printName(OS); [all...] |
/external/clang/lib/Sema/ |
SemaStmt.cpp | 218 if (const Decl *FD = CE->getCalleeDecl()) { 219 if (FD->getAttr<WarnUnusedResultAttr>()) { 225 if (FD->getAttr<PureAttr>()) { 229 if (FD->getAttr<ConstAttr>()) { [all...] |
SemaDeclAttr.cpp | 462 FunctionDecl *FD = dyn_cast<FunctionDecl>(D); 464 if(FD && IL) { 465 unsigned int NumParams = FD->getNumParams(); 474 ArgTy = FD->getParamDecl(ParamIdxFromZero)->getType(); [all...] |
SemaExprCXX.cpp | [all...] |
SemaInit.cpp | [all...] |
SemaTemplate.cpp | [all...] |
SemaChecking.cpp | [all...] |
SemaDecl.cpp | [all...] |
SemaDeclCXX.cpp | 408 static bool functionDeclHasDefaultArgument(const FunctionDecl *FD) { 409 for (unsigned NumParams = FD->getNumParams(); NumParams > 0; --NumParams) { 410 const ParmVarDecl *PVD = FD->getParamDecl(NumParams-1); 655 void Sema::CheckCXXDefaultArguments(FunctionDecl *FD) { 656 unsigned NumParams = FD->getNumParams(); 661 ParmVarDecl *Param = FD->getParamDecl(p); 674 ParmVarDecl *Param = FD->getParamDecl(p); 696 ParmVarDecl *Param = FD->getParamDecl(p); 708 const FunctionDecl *FD) { 710 const FunctionProtoType *FT = FD->getType()->getAs<FunctionProtoType>() [all...] |
SemaExpr.cpp | 55 if (FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) { 56 if (FD->isDeleted()) 61 if (getLangOpts().CPlusPlus1y && FD->getResultType()->isUndeducedType() && 62 DeduceReturnType(FD, SourceLocation(), /*Diagnose*/false)) 298 if (FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) { 299 if (FD->isDeleted()) { 301 NoteDeletedFunction(FD); 307 if (getLangOpts().CPlusPlus1y && FD->getResultType()->isUndeducedType() && 308 DeduceReturnType(FD, Loc)) 323 std::string Sema::getDeletedOrUnavailableSuffix(const FunctionDecl *FD) { [all...] |
/external/clang/lib/Serialization/ |
ASTReaderDecl.cpp | 254 void VisitFunctionDecl(FunctionDecl *FD); 259 void VisitFieldDecl(FieldDecl *FD); 260 void VisitMSPropertyDecl(MSPropertyDecl *FD); 261 void VisitIndirectFieldDecl(IndirectFieldDecl *FD); 338 } else if (FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) { 340 // We only read it if FD doesn't already have a body (e.g., from another 345 Reader.PendingBodies[FD] = GetCurrentCursorOffset(); 523 void ASTDeclReader::VisitFunctionDecl(FunctionDecl *FD) { 524 RedeclarableResult Redecl = VisitRedeclarable(FD); 525 VisitDeclaratorDecl(FD); [all...] |
/external/clang/lib/AST/ |
ASTContext.cpp | 73 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) { 74 if (FD->getTemplateSpecializationKind() == TSK_ImplicitInstantiation) 242 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) { 244 if (const FunctionTemplateDecl *FTD = FD->getDescribedFunctionTemplate()) 248 if (FD->getTemplateSpecializationKind() != TSK_ImplicitInstantiation) 252 if (const FunctionTemplateDecl *FTD = FD->getPrimaryTemplate()) 257 FD->getInstantiatedFromMemberFunction()) [all...] |
/external/clang/lib/Rewrite/Frontend/ |
RewriteObjC.cpp | 291 void RewriteFunctionDecl(FunctionDecl *FD); 294 void RewriteBlockLiteralFunctionDecl(FunctionDecl *FD); 327 void RewriteBlockPointerFunctionArgs(FunctionDecl *FD); 356 CallExpr *SynthesizeCallToFunctionDecl(FunctionDecl *FD, 405 void InsertBlockLiteralsWithinFunction(FunctionDecl *FD); 660 if (FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) { 661 RewriteFunctionDecl(FD); [all...] |
RewriteModernObjC.cpp | 331 void RewriteFunctionDecl(FunctionDecl *FD); 334 void RewriteBlockLiteralFunctionDecl(FunctionDecl *FD); 388 void RewriteBlockPointerFunctionArgs(FunctionDecl *FD); 408 CallExpr *SynthesizeCallToFunctionDecl(FunctionDecl *FD, 487 void InsertBlockLiteralsWithinFunction(FunctionDecl *FD); 723 if (FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) { 724 RewriteFunctionDecl(FD); [all...] |
/external/clang/tools/libclang/ |
CIndex.cpp | [all...] |