Searched refs:FD (Results 101 - 125 of 280) sorted by relevance

1234567891011>>

/freebsd-11-stable/contrib/llvm-project/clang/lib/Sema/
H A DSemaCUDA.cpp682 *this, Caller, Callee, Loc, [](Sema &S, FunctionDecl *FD) {
683 return S.getEmissionStatus(FD) == FunctionEmissionStatus::Emitted;
778 static void copyAttrIfPresent(Sema &S, FunctionDecl *FD,
783 FD->addAttr(Clone);
787 void Sema::inheritCUDATargetAttrs(FunctionDecl *FD,
790 copyAttrIfPresent<CUDAGlobalAttr>(*this, FD, TemplateFD);
791 copyAttrIfPresent<CUDAHostAttr>(*this, FD, TemplateFD);
792 copyAttrIfPresent<CUDADeviceAttr>(*this, FD, TemplateFD);
H A DSemaDeclAttr.cpp98 if (const auto *FD = dyn_cast<FunctionDecl>(D))
99 return FD->getParamDecl(Idx);
129 if (const auto *FD = dyn_cast<FunctionDecl>(D))
130 return FD->getReturnTypeSourceRange();
693 const auto *FD = dyn_cast<FunctionDecl>(D); local
695 if(FD && IL) {
696 unsigned int NumParams = FD->getNumParams();
706 ArgTy = FD->getParamDecl(ParamIdxFromZero)->getType();
844 static bool checkParamIsIntegerType(Sema &S, const FunctionDecl *FD, argument
849 if (!checkFunctionOrMethodParameterIndex(S, FD, A
868 const auto *FD = cast<FunctionDecl>(D); local
1012 ArgumentDependenceChecker(const FunctionDecl *FD) argument
1853 const auto *FD = cast<FunctionDecl>(D); local
1932 FunctionDecl *FD = cast<FunctionDecl>(D); local
3114 FunctionDecl *FD = nullptr; local
3442 FunctionDecl *FD = D->getAsFunction(); local
4312 const auto *FD = cast<FunctionDecl>(D); local
4510 CheckCallingConvAttr(const ParsedAttr &Attrs, CallingConv &CC, const FunctionDecl *FD) argument
5783 auto *FD = cast<FunctionDecl>(D); local
5805 auto *FD = cast<FunctionDecl>(D); local
5827 auto *FD = cast<FunctionDecl>(D); local
6458 const auto *FD = cast<FunctionDecl>(D); local
[all...]
H A DSemaStmtAsm.cpp259 FunctionDecl *FD = dyn_cast<FunctionDecl>(getCurLexicalContext()); local
261 Context.getFunctionFeatureMap(FeatureMap, FD);
831 FieldDecl *FD = dyn_cast<FieldDecl>(FoundDecl);
832 if (!FD)
836 unsigned i = FD->getFieldIndex();
871 ValueDecl *FD = dyn_cast<FieldDecl>(FieldResult.getFoundDecl());
872 if (!FD)
873 FD = dyn_cast<IndirectFieldDecl>(FieldResult.getFoundDecl());
874 if (!FD)
H A DSemaAttr.cpp856 void Sema::AddRangeBasedOptnone(FunctionDecl *FD) { argument
860 AddOptnoneAttributeIfNoConflicts(FD, OptimizeOffPragmaLocation);
863 void Sema::AddOptnoneAttributeIfNoConflicts(FunctionDecl *FD, argument
866 if (FD->hasAttr<MinSizeAttr>() || FD->hasAttr<AlwaysInlineAttr>())
871 if (!FD->hasAttr<OptimizeNoneAttr>())
872 FD->addAttr(OptimizeNoneAttr::CreateImplicit(Context, Loc));
873 if (!FD->hasAttr<NoInlineAttr>())
874 FD->addAttr(NoInlineAttr::CreateImplicit(Context, Loc));
/freebsd-11-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DMacOSKeychainAPIChecker.cpp254 const FunctionDecl *FD = C.getCalleeDecl(CE); local
255 if (!FD || FD->getKind() != Decl::Function)
258 StringRef funName = C.getCalleeName(FD);
405 const FunctionDecl *FD = C.getCalleeDecl(CE); local
406 if (!FD || FD->getKind() != Decl::Function)
409 StringRef funName = C.getCalleeName(FD);
H A DMallocSizeofChecker.cpp92 const FunctionDecl *FD = E->getDirectCallee(); local
93 if (FD) {
94 IdentifierInfo *II = FD->getIdentifier();
H A DDeadStoresChecker.cpp493 const FieldDecl *FD = CaptureFields[VD]; local
494 if (!FD)
498 if (FD->getType()->isReferenceType())
517 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(D))
518 if (FD->isTemplateInstantiation())
H A DStdLibraryFunctionsChecker.cpp230 Optional<FunctionSummaryTy> findFunctionSummary(const FunctionDecl *FD,
341 const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(Call.getDecl()); local
342 if (!FD)
349 Optional<FunctionSummaryTy> FoundSummary = findFunctionSummary(FD, CE, C);
372 const auto *FD = dyn_cast_or_null<FunctionDecl>(Call.getDecl()); local
373 if (!FD)
380 Optional<FunctionSummaryTy> FoundSummary = findFunctionSummary(FD, CE, C);
432 StdLibraryFunctionsChecker::findFunctionSummary(const FunctionDecl *FD, argument
435 // Note: we cannot always obtain FD from CE
439 if (!FD)
[all...]
H A DMallocOverflowSecurityChecker.cpp313 const FunctionDecl *FD = TheCall->getDirectCallee(); local
315 if (!FD)
319 IdentifierInfo *FnInfo = FD->getIdentifier();
/freebsd-11-stable/contrib/llvm-project/llvm/lib/LTO/
H A DCaching.cpp92 sys::fs::convertFDToNativeFile(TempFile.FD), TempFile.TmpName,
146 std::make_unique<raw_fd_ostream>(Temp->FD, /* ShouldClose */ false),
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Support/
H A DFileCollector.cpp109 int FD; local
112 sys::fs::openFileForWrite(Filename, FD, sys::fs::CD_OpenExisting))
116 FD, Stat.getLastAccessedTime(), Stat.getLastModificationTime()))
119 if (auto EC = sys::Process::SafelyCloseFileDescriptor(FD))
H A DGraphWriter.cpp79 std::string llvm::createGraphFilename(const Twine &Name, int &FD) { argument
80 FD = -1;
82 std::error_code EC = sys::fs::createTemporaryFile(Name, "dot", FD, Filename);
/freebsd-11-stable/contrib/llvm-project/clang/lib/CodeGen/
H A DModuleBuilder.cpp115 if (auto FD = dyn_cast<FunctionDecl>(D)) {
116 if (FD->hasBody(FD))
117 return FD;
H A DTargetInfo.cpp480 static bool isEmptyField(ASTContext &Context, const FieldDecl *FD, argument
482 if (FD->isUnnamedBitfield())
485 QualType FT = FD->getType();
572 for (const auto *FD : RD->fields()) {
573 QualType FT = FD->getType();
576 if (isEmptyField(Context, FD, true))
770 if (const auto *FD = dyn_cast_or_null<FunctionDecl>(D)) {
771 if (const auto *Attr = FD->getAttr<WebAssemblyImportModuleAttr>()) {
777 if (const auto *Attr = FD->getAttr<WebAssemblyImportNameAttr>()) {
783 if (const auto *Attr = FD
9819 const auto *FD = dyn_cast_or_null<FunctionDecl>(D); local
[all...]
/freebsd-11-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DExprEngineCallAndReturn.cpp870 const FunctionDecl *FD) {
871 if (const CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(FD))
878 static bool isCXXSharedPtrDtor(const FunctionDecl *FD) { argument
879 const CXXDestructorDecl *Dtor = dyn_cast<CXXDestructorDecl>(FD);
905 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(CalleeADC->getDecl())) {
908 if (FD->getTemplatedKind() != FunctionDecl::TK_NonTemplate)
913 if (Ctx.getSourceManager().isInSystemHeader(FD->getLocation()))
914 if (AnalysisDeclContext::isInStdNamespace(FD))
920 if (!AMgr.isInCodeFile(FD->getLocation()))
921 if (isContainerMethod(Ctx, FD))
869 isContainerMethod(const ASTContext &Ctx, const FunctionDecl *FD) argument
[all...]
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/Sema/
H A DOverload.h935 bool isRewrittenOperator(const FunctionDecl *FD) { argument
937 FD->getDeclName().getCXXOverloadedOperator() != OriginalOperator;
940 bool isAcceptableCandidate(const FunctionDecl *FD) { argument
948 FD->getDeclName().getCXXOverloadedOperator();
957 getRewriteKind(const FunctionDecl *FD, OverloadCandidateParamOrder PO) { argument
959 if (isRewrittenOperator(FD))
970 /// Determine whether we should add a rewritten candidate for \p FD with
972 bool shouldAddReversed(ASTContext &Ctx, const FunctionDecl *FD);
/freebsd-11-stable/contrib/llvm-project/clang/lib/Analysis/
H A DAnalysisDeclContext.cpp95 if (const auto *FD = dyn_cast<FunctionDecl>(D)) {
96 Stmt *Body = FD->getBody();
100 Stmt *SynthesizedBody = Manager->getBodyFarm().getBody(FD);
296 if (const auto *FD = dyn_cast<FunctionDecl>(D)) {
297 // Calling 'hasBody' replaces 'FD' in place with the FunctionDecl
299 FD->hasBody(FD);
300 D = FD;
/freebsd-11-stable/contrib/llvm-project/clang/lib/Parse/
H A DParseCXXInlineMethods.cpp124 FunctionDecl *FD = FnD->getAsFunction(); local
125 Actions.CheckForFunctionRedefinition(FD);
126 Actions.MarkAsLateParsedTemplate(FD, FnD, Toks);
168 FunctionDecl *FD = FnD->getAsFunction(); local
171 Actions.CheckForFunctionRedefinition(FD);
172 FD->setWillHaveBody(true);
573 if (auto *FD = dyn_cast_or_null<FunctionDecl>(LM.D))
574 if (isa<CXXMethodDecl>(FD) ||
575 FD->isInIdentifierNamespace(Decl::IDNS_OrdinaryFriend))
576 Actions.ActOnFinishInlineFunctionDef(FD);
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Object/
H A DArchiveWriter.cpp82 sys::fs::file_t FD = *FDOrErr;
83 assert(FD != sys::fs::kInvalidFile);
85 if (auto EC = sys::fs::status(FD, Status))
95 MemoryBuffer::getOpenFile(FD, FileName, Status.getSize(), false);
99 if (auto EC = sys::fs::closeFile(FD))
612 raw_fd_ostream Out(Temp->FD, false);
/freebsd-11-stable/contrib/llvm-project/clang/lib/AST/Interp/
H A DEvalEmitter.cpp143 const Record::Field *FD = Record->getField(I);
144 QualType FieldTy = FD->Decl->getType();
145 const Pointer &FP = Ptr.atField(FD->Offset);
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/DebugInfo/CodeView/
H A DDebugSubsectionVisitor.h61 virtual Error visitFrameData(DebugFrameDataSubsectionRef &FD,
/freebsd-11-stable/contrib/llvm-project/llvm/lib/DebugInfo/PDB/Native/
H A DDbiStreamBuilder.cpp77 void DbiStreamBuilder::addNewFpoData(const codeview::FrameData &FD) { argument
81 NewFpoData->addFrameData(FD);
84 void DbiStreamBuilder::addOldFpoData(const object::FpoData &FD) { argument
85 OldFpoData.push_back(FD);
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Support/Unix/
H A DPath.inc516 std::error_code is_local(int FD, bool &Result) {
518 if (::FSTATVFS(FD, &Vfs))
538 std::error_code resize_file(int FD, uint64_t Size) {
542 if (int Err = ::posix_fallocate(FD, 0, Size)) {
554 if (::ftruncate(FD, Size) == -1)
721 std::error_code status(int FD, file_status &Result) {
723 int StatRet = ::fstat(FD, &Status);
744 std::error_code setPermissions(int FD, perms Permissions) {
745 if (::fchmod(FD, Permissions))
750 std::error_code setLastAccessAndModificationTime(int FD, TimePoin
[all...]
/freebsd-11-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Frontend/
H A DAnalysisConsumer.cpp419 bool VisitFunctionDecl(FunctionDecl *FD) { argument
420 IdentifierInfo *II = FD->getIdentifier();
426 if (FD->isThisDeclarationADefinition() &&
427 !FD->isDependentContext()) {
429 HandleCode(FD, RecVisitorMode);
684 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) {
685 OS << FD->getQualifiedNameAsString();
690 for (const auto &P : FD->parameters()) {
691 if (P != *FD->param_begin())
/freebsd-11-stable/contrib/llvm-project/clang/lib/AST/
H A DCommentSema.cpp683 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) {
686 const DeclContext *Ctx = FD->getDeclContext();
688 FD->doesThisDeclarationHaveABody())
691 const LangOptions &LO = FD->getASTContext().getLangOpts();
704 MacroName = PP->getLastMacroWithSpelling(FD->getLocation(), Tokens);
715 PP->getLastMacroWithSpelling(FD->getLocation(), Tokens);
723 SourceLocation Loc = FD->getSourceRange().getBegin();
834 if (const FunctionDecl *FD =
836 return FD->isVariadic();

Completed in 405 milliseconds

1234567891011>>