Searched defs:FDecl (Results 1 - 8 of 8) sorted by relevance

/external/clang/lib/StaticAnalyzer/Checkers/
H A DGenericTaintChecker.cpp97 bool checkTaintedBufferSize(const CallExpr *CE, const FunctionDecl *FDecl,
144 getTaintPropagationRule(const FunctionDecl *FDecl,
199 const FunctionDecl *FDecl,
233 if ( (BId = FDecl->getMemoryFunctionKind()) )
252 if (C.isCLibraryFunction(FDecl, "snprintf") ||
253 C.isCLibraryFunction(FDecl, "sprintf"))
255 else if (C.isCLibraryFunction(FDecl, "strcpy") ||
256 C.isCLibraryFunction(FDecl, "stpcpy") ||
257 C.isCLibraryFunction(FDecl, "strcat"))
259 else if (C.isCLibraryFunction(FDecl, "bcop
198 getTaintPropagationRule( const FunctionDecl *FDecl, StringRef Name, CheckerContext &C) argument
295 const FunctionDecl *FDecl = C.getCalleeDecl(CE); local
372 const FunctionDecl *FDecl = C.getCalleeDecl(CE); local
409 const FunctionDecl *FDecl = C.getCalleeDecl(CE); local
612 const FunctionDecl *FDecl = C.getCalleeDecl(CE); local
698 checkTaintedBufferSize(const CallExpr *CE, const FunctionDecl *FDecl, CheckerContext &C) const argument
[all...]
H A DCStringChecker.cpp1877 const FunctionDecl *FDecl = C.getCalleeDecl(CE); local
1879 if (!FDecl)
1884 if (C.isCLibraryFunction(FDecl, "memcpy"))
1886 else if (C.isCLibraryFunction(FDecl, "mempcpy"))
1888 else if (C.isCLibraryFunction(FDecl, "memcmp"))
1890 else if (C.isCLibraryFunction(FDecl, "memmove"))
1892 else if (C.isCLibraryFunction(FDecl, "strcpy"))
1894 else if (C.isCLibraryFunction(FDecl, "strncpy"))
1896 else if (C.isCLibraryFunction(FDecl, "stpcpy"))
1898 else if (C.isCLibraryFunction(FDecl, "strca
[all...]
/external/clang/lib/AST/
H A DExpr.cpp1231 const FunctionDecl *FDecl = dyn_cast<FunctionDecl>(DRE->getDecl()); local
1232 if (!FDecl)
1235 if (!FDecl->getIdentifier())
1238 return FDecl->getBuiltinID();
/external/clang/lib/Sema/
H A DSemaLookup.cpp2359 const FunctionDecl *FDecl = D->getUnderlyingDecl()->getAsFunction(); local
2363 addAssociatedClassesAndNamespaces(Result, FDecl->getType());
H A DSemaCodeComplete.cpp2894 FunctionDecl *FDecl = getFunction(); local
2897 if (!FDecl && !Proto) {
2909 if (FDecl) {
2910 if (IncludeBriefComments && CurrentArg < FDecl->getNumParams())
2912 FDecl->getParamDecl(CurrentArg)))
2914 AddResultTypeChunk(S.Context, Policy, FDecl, Result);
2916 Result.getAllocator().CopyString(FDecl->getNameAsString()));
2924 AddOverloadParameterChunks(S.getASTContext(), Policy, FDecl, Proto, Result,
H A DSemaChecking.cpp114 static void SemaBuiltinMemChkCall(Sema &S, FunctionDecl *FDecl, argument
135 IdentifierInfo *FnName = FDecl->getIdentifier();
228 Sema::CheckBuiltinFunctionCall(FunctionDecl *FDecl, unsigned BuiltinID, argument
481 SemaBuiltinMemChkCall(*this, FDecl, TheCall, 2, 3);
484 SemaBuiltinMemChkCall(*this, FDecl, TheCall, 3, 4);
488 SemaBuiltinMemChkCall(*this, FDecl, TheCall, 1, 3);
517 Context.getExceptionObjectType(FDecl->getParamDecl(0)->getType()),
1090 const NamedDecl *FDecl,
1095 ObjCStringFormatFamily SFFamily = FDecl->getObjCFStringFormattingFamily();
1101 for (const auto *I : FDecl
1089 DiagnoseCStringFormatDirectiveInCFAPI(Sema &S, const NamedDecl *FDecl, Expr **Args, unsigned NumArgs) argument
1128 CheckNonNullArguments(Sema &S, const NamedDecl *FDecl, ArrayRef<const Expr *> Args, SourceLocation CallSiteLoc) argument
1176 checkCall(NamedDecl *FDecl, ArrayRef<const Expr *> Args, unsigned NumParams, bool IsMemberFunction, SourceLocation Loc, SourceRange Range, VariadicCallType CallType) argument
1219 CheckConstructorCall(FunctionDecl *FDecl, ArrayRef<const Expr *> Args, const FunctionProtoType *Proto, SourceLocation Loc) argument
1231 CheckFunctionCall(FunctionDecl *FDecl, CallExpr *TheCall, const FunctionProtoType *Proto) argument
1714 FunctionDecl *FDecl = cast<FunctionDecl>(DRE->getDecl()); local
2511 FunctionDecl *FDecl = cast<FunctionDecl>(DRE->getDecl()); local
4448 getAbsoluteValueFunctionKind(const FunctionDecl *FDecl) argument
4503 const FunctionDecl *FDecl = nullptr; local
4563 IsFunctionStdAbs(const FunctionDecl *FDecl) argument
4586 CheckAbsoluteValueFunction(const CallExpr *Call, const FunctionDecl *FDecl, IdentifierInfo *FnInfo) argument
[all...]
H A DSemaExpr.cpp906 FunctionDecl *FDecl) {
911 (FDecl && FDecl->hasAttr<CFAuditedTransferAttr>()))) {
2707 FunctionDecl *FDecl = cast<FunctionDecl>(D); local
2710 if (FDecl->getBuiltinID() && FDecl->isImplicit())
4186 Sema::getVariadicCallType(FunctionDecl *FDecl, const FunctionProtoType *Proto, argument
4189 if (dyn_cast_or_null<CXXConstructorDecl>(FDecl))
4193 else if (FDecl) {
4194 if (CXXMethodDecl *Method = dyn_cast_or_null<CXXMethodDecl>(FDecl))
905 DefaultVariadicArgumentPromotion(Expr *E, VariadicCallType CT, FunctionDecl *FDecl) argument
4226 TryTypoCorrectionForCall(Sema &S, Expr *Fn, FunctionDecl *FDecl, ArrayRef<Expr *> Args) argument
4274 ConvertArgumentsForCall(CallExpr *Call, Expr *Fn, FunctionDecl *FDecl, const FunctionProtoType *Proto, ArrayRef<Expr *> Args, SourceLocation RParenLoc, bool IsExecConfig) argument
4390 GatherArgumentsForCall(SourceLocation CallLoc, FunctionDecl *FDecl, const FunctionProtoType *Proto, unsigned FirstParam, ArrayRef<Expr *> Args, SmallVectorImpl<Expr *> &AllArgs, VariadicCallType CallType, bool AllowExplicit, bool IsListInitialization) argument
4622 rewriteBuiltinFunctionDecl(Sema *Sema, ASTContext &Context, const FunctionDecl *FDecl, MultiExprArg ArgExprs) argument
4795 FunctionDecl *FDecl = dyn_cast<FunctionDecl>(NDecl); local
4875 FunctionDecl *FDecl = dyn_cast_or_null<FunctionDecl>(NDecl); local
[all...]
/external/clang/lib/Frontend/Rewrite/
H A DRewriteModernObjC.cpp210 if (FunctionDecl *FDecl = dyn_cast<FunctionDecl>(*I)) {
215 if (FDecl->isThisDeclarationADefinition() &&
217 !FDecl->isTopLevelDeclInObjCContainer()) {
218 FunctionDefinitionsSeen.push_back(FDecl);
5947 FunctionDecl *FDecl = FunctionDefinitionsSeen[i]; local
5948 HandleTopLevelSingleDecl(FDecl);

Completed in 288 milliseconds