Home
last modified time | relevance | path

Searched refs:FnDecl (Results 1 – 9 of 9) sorted by relevance

/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/WebKit/
H A DRetainPtrCtorAdoptChecker.cpp119 bool isAdoptFn(const Decl *FnDecl) const { in isAdoptFn()
120 return isAdoptFnName(safeGetName(FnDecl)); in isAdoptFn()
233 auto *FnDecl = CalleeDecl ? CalleeDecl->getAsFunction() : nullptr; in checkCreateOrCopyFunction() local
250 if (FnDecl && ArgIndex < FnDecl->getNumParams()) { in checkCreateOrCopyFunction()
253 auto *ParamDecl = FnDecl->getParamDecl(ArgIndex); in checkCreateOrCopyFunction()
375 if (auto *FnDecl = dyn_cast<FunctionDecl>(DeclWithIssue)) in visitReturnStmt() local
376 retainsRet = retainsReturnValue(FnDecl); in visitReturnStmt()
402 std::optional<bool> retainsReturnValue(const CallableType *FnDecl) const { in retainsReturnValue()
403 auto Summary = Summaries->getSummary(AnyCall(FnDecl)); in retainsReturnValue()
474 bool isCreateOrCopyFunction(const FunctionDecl *FnDecl) const { in isCreateOrCopyFunction()
[all …]
H A DPtrTypesSemantics.cpp554 if (auto *FnDecl = dyn_cast<FunctionDecl>(D)) { in IsFunctionTrivial() local
555 if (FnDecl->isVirtualAsWritten()) in IsFunctionTrivial()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaDeclCXX.cpp7315 const FunctionDecl *FnDecl = D->getAsFunction(); in CheckCompletedCXXClass() local
7316 if (!FnDecl || !FnDecl->isTypeAwareOperatorNewOrDelete()) in CheckCompletedCXXClass()
7318 assert(FnDecl->getDeclName().isAnyOperatorNewOrDelete()); in CheckCompletedCXXClass()
7319 TypeAwareDecls[FnDecl->getOverloadedOperator()].push_back(FnDecl); in CheckCompletedCXXClass()
16403 FunctionDecl *FnDecl = FnTemplateDecl->getTemplatedDecl(); in BuildTypeAwareUsualDelete() local
16404 if (!FnDecl->isTypeAwareOperatorNewOrDelete()) in BuildTypeAwareUsualDelete()
16407 if (FnDecl->isVariadic()) in BuildTypeAwareUsualDelete()
16410 unsigned NumParams = FnDecl->getNumParams(); in BuildTypeAwareUsualDelete()
16419 if (llvm::any_of(FnDecl->parameters().drop_front(), in BuildTypeAwareUsualDelete()
16438 ArgTypes.push_back(FnDecl->getParamDecl(ParamIdx)->getType()); in BuildTypeAwareUsualDelete()
[all …]
H A DSemaOverload.cpp15049 FunctionDecl *FnDecl = Best->Function; in CreateOverloadedUnaryOp() local
15051 if (FnDecl) { in CreateOverloadedUnaryOp()
15057 if (CXXMethodDecl *Method = dyn_cast<CXXMethodDecl>(FnDecl)) { in CreateOverloadedUnaryOp()
15074 FnDecl->getParamDecl(0)), in CreateOverloadedUnaryOp()
15083 ExprResult FnExpr = CreateFunctionRefExpr(*this, FnDecl, Best->FoundDecl, in CreateOverloadedUnaryOp()
15090 QualType ResultTy = FnDecl->getReturnType(); in CreateOverloadedUnaryOp()
15100 if (CheckCallReturnType(FnDecl->getReturnType(), OpLoc, TheCall, FnDecl)) in CreateOverloadedUnaryOp()
15103 if (CheckFunctionCall(FnDecl, TheCall, in CreateOverloadedUnaryOp()
15104 FnDecl->getType()->castAs<FunctionProtoType>())) in CreateOverloadedUnaryOp()
15106 return CheckForImmediateInvocation(MaybeBindToTemporary(TheCall), FnDecl); in CreateOverloadedUnaryOp()
[all …]
H A DSemaExprCXX.cpp2708 FunctionDecl *FnDecl = Best->Function; in resolveAllocationOverloadInterior() local
2713 Operator = FnDecl; in resolveAllocationOverloadInterior()
4238 FunctionDecl *FnDecl = Best->Function; in resolveBuiltinNewDeleteOverload() local
4242 if (!FnDecl->isReplaceableGlobalAllocationFunction()) { in resolveBuiltinNewDeleteOverload()
4245 S.Diag(FnDecl->getLocation(), diag::note_non_usual_function_declared_here) in resolveBuiltinNewDeleteOverload()
4246 << R.getLookupName() << FnDecl->getSourceRange(); in resolveBuiltinNewDeleteOverload()
4250 Operator = FnDecl; in resolveBuiltinNewDeleteOverload()
/freebsd/contrib/llvm-project/clang/lib/AST/ByteCode/
H A DContext.h50 bool isPotentialConstantExpr(State &Parent, const FunctionDecl *FnDecl);
/freebsd/contrib/llvm-project/clang/lib/Analysis/
H A DUnsafeBufferUsage.cpp320 if (const auto *FnDecl = CE->getDirectCallee(); in findStmtsInUnspecifiedPointerContext() local
321 FnDecl && FnDecl->hasAttr<UnsafeBufferUsageAttr>()) in findStmtsInUnspecifiedPointerContext()
532 auto *FnDecl = CE->getDirectCallee(); in isPtrBufferSafe() local
534 return FnDecl && FnDecl->getNameAsString() == "addressof" && in isPtrBufferSafe()
535 FnDecl->isInStdNamespace(); in isPtrBufferSafe()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/TargetBuiltins/
H A DARM.cpp8012 llvm::Function *FnDecl; in EmitBPFBuiltinExpr() local
8014 FnDecl = Intrinsic::getOrInsertDeclaration( in EmitBPFBuiltinExpr()
8017 FnDecl = Intrinsic::getOrInsertDeclaration( in EmitBPFBuiltinExpr()
8019 CallInst *Fn = Builder.CreateCall(FnDecl, {SeqNumVal, FlagValue}); in EmitBPFBuiltinExpr()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSema.h5181 FunctionDecl *BuildTypeAwareUsualDelete(FunctionTemplateDecl *FnDecl,
6210 bool CheckOverloadedOperatorDeclaration(FunctionDecl *FnDecl);
6215 bool CheckLiteralOperatorDeclaration(FunctionDecl *FnDecl);