Searched refs:FD (Results 76 - 100 of 280) sorted by relevance

1234567891011>>

/freebsd-11-stable/contrib/llvm-project/llvm/lib/Support/Unix/
H A DProgram.inc96 static bool RedirectIO(Optional<StringRef> Path, int FD, std::string* ErrMsg) {
107 int InFD = open(File.c_str(), FD == 0 ? O_RDONLY : O_WRONLY|O_CREAT, 0666);
110 + (FD == 0 ? "input" : "output"));
114 // Install it as the requested FD
115 if (dup2(InFD, FD) == -1) {
120 close(InFD); // Close the original FD
125 static bool RedirectIO_PS(const std::string *Path, int FD, std::string *ErrMsg,
137 FileActions, FD, File,
138 FD == 0 ? O_RDONLY : O_WRONLY | O_CREAT, 0666))
234 // to the FD alread
[all...]
/freebsd-11-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/UninitializedObject/
H A DUninitializedObjectChecker.cpp124 /// Checks _syntactically_ whether it is possible to access FD from the record
132 static bool hasUnguardedAccess(const FieldDecl *FD, ProgramStateRef State);
505 for (const FieldDecl *FD : RD->fields()) {
506 if (R.match(FD->getType().getAsString()))
508 if (R.match(FD->getName()))
525 static bool hasUnguardedAccess(const FieldDecl *FD, ProgramStateRef State) { argument
527 if (FD->getAccess() == AccessSpecifier::AS_public)
530 const auto *Parent = dyn_cast<CXXRecordDecl>(FD->getParent());
541 auto FieldAccessM = memberExpr(hasDeclaration(equalsNode(FD))).bind("access");
/freebsd-11-stable/contrib/llvm-project/clang/lib/AST/Interp/
H A DProgram.cpp200 if (const FunctionDecl *FD = F->getDefinition())
201 return ByteCodeStmtGen<ByteCodeEmitter>(Ctx, *this).compileFunc(FD);
268 for (const FieldDecl *FD : RD->fields()) {
273 QualType FT = FD->getType();
275 const bool IsMutable = FD->isMutable();
278 Desc = createDescriptor(FD, *T, IsConst, /*isTemporary=*/false,
281 Desc = createDescriptor(FD, FT.getTypePtr(), IsConst,
286 Fields.push_back({FD, Size, Desc});
H A DRecord.h57 const Field *getField(const FieldDecl *FD) const;
59 const Base *getBase(const RecordDecl *FD) const;
/freebsd-11-stable/contrib/llvm-project/clang/lib/Sema/
H A DSema.cpp610 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) {
613 if (FunctionTemplateDecl *Template = FD->getDescribedFunctionTemplate())
621 if (FD->hasBody(DeclToCheck))
626 DeclToCheck = FD->getMostRecentDecl();
627 if (DeclToCheck != FD)
665 if (auto *FD = dyn_cast<FunctionDecl>(ND))
666 return FD->isExternC();
704 if (FunctionDecl *FD = dyn_cast<FunctionDecl>(ND)) {
705 if (FD->isDefined())
707 if (FD
1437 emitCallStackNotes(Sema &S, FunctionDecl *FD) argument
1451 emitDeferredDiags(Sema &S, FunctionDecl *FD, bool ShowCallStack) argument
2236 setOpenCLExtensionForDecl(Decl *FD, StringRef ExtStr) argument
2257 getOpenCLExtensionsFromDeclExtMap(FunctionDecl *FD) argument
2285 isOpenCLDisabledDecl(Decl *FD) argument
[all...]
H A DAnalysisBasedWarnings.cpp186 static bool hasRecursiveCallInPath(const FunctionDecl *FD, CFGBlock &Block) { argument
187 // Process all the Stmt's in this block to find any calls to FD.
194 CE->getCalleeDecl()->getCanonicalDecl() != FD)
216 // Returns true if every path from the entry block passes through a call to FD.
217 static bool checkForRecursiveFunctionCall(const FunctionDecl *FD, CFG *cfg) { argument
241 if (hasRecursiveCallInPath(FD, *SuccBlock)) {
253 static void checkRecursiveFunction(Sema &S, const FunctionDecl *FD, argument
255 FD = FD->getCanonicalDecl();
259 if (FD
336 EmitDiagForCXXThrowInNonThrowingFunc(Sema &S, SourceLocation OpLoc, const FunctionDecl *FD) argument
356 checkThrowInNonThrowingFunc(Sema &S, const FunctionDecl *FD, AnalysisDeclContext &AC) argument
369 isNoexcept(const FunctionDecl *FD) argument
[all...]
H A DSemaStmt.cpp294 if (const Decl *FD = CE->getCalleeDecl()) {
297 if (FD->hasAttr<PureAttr>()) {
301 if (FD->hasAttr<ConstAttr>()) {
1601 FunctionDecl *FD = Call->getDirectCallee(); local
1602 if (!FD || !FD->isOverloadedOperator()) return false;
1603 switch (FD->getOverloadedOperator()) {
2749 const FunctionDecl *FD = Call->getDirectCallee(); local
2750 QualType ReturnType = FD->getReturnType();
3090 FunctionDecl *FD local
3251 hasDeducedReturnType(FunctionDecl *FD) argument
3287 FunctionDecl *FD = CurLambda->CallOperator; local
3466 DeduceFunctionTypeFromReturnExpr(FunctionDecl *FD, SourceLocation ReturnLoc, Expr *&RetExpr, AutoType *AT) argument
3660 FunctionDecl *FD = cast<FunctionDecl>(CurContext); local
3752 FunctionDecl *FD = getCurFunctionDecl(); local
4197 FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(DC); local
[all...]
/freebsd-11-stable/contrib/llvm-project/clang/lib/AST/
H A DRecordLayoutBuilder.cpp79 uint64_t getExternalFieldOffset(const FieldDecl *FD) { argument
80 assert(FieldOffsets.count(FD) &&
82 return FieldOffsets[FD];
132 void UpdateEmptyFieldSubobjects(const FieldDecl *FD, CharUnits Offset,
160 bool CanPlaceFieldSubobjectAtOffset(const FieldDecl *FD,
183 bool CanPlaceFieldAtOffset(const FieldDecl *FD, CharUnits Offset);
206 for (const FieldDecl *FD : Class->fields()) {
208 Context.getBaseElementType(FD->getType())->getAs<RecordType>();
429 EmptySubobjectMap::CanPlaceFieldSubobjectAtOffset(const FieldDecl *FD, argument
436 QualType T = FD
469 CanPlaceFieldAtOffset(const FieldDecl *FD, CharUnits Offset) argument
536 UpdateEmptyFieldSubobjects( const FieldDecl *FD, CharUnits Offset, bool PlacingOverlappingField) argument
2436 getAdjustedElementInfo( const FieldDecl *FD) argument
2695 layoutField(const FieldDecl *FD) argument
2715 layoutBitField(const FieldDecl *FD) argument
2760 layoutZeroWidthBitField(const FieldDecl *FD) argument
3158 getFieldOffset(const ASTContext &C, const FieldDecl *FD) argument
[all...]
H A DMangle.cpp57 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(ND))
58 return FD->isExternC();
73 const FunctionDecl *FD = dyn_cast<FunctionDecl>(ND); local
74 if (!FD)
76 QualType T = FD->getType();
171 const FunctionDecl *FD = cast<FunctionDecl>(D); local
172 const FunctionType *FT = FD->getType()->castAs<FunctionType>();
183 if (const CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(FD))
304 if (auto *FD = dyn_cast<FunctionDecl>(D)) {
305 if (FD
[all...]
H A DJSONNodeDumper.cpp775 void JSONNodeDumper::VisitFieldDecl(const FieldDecl *FD) { argument
776 VisitNamedDecl(FD);
777 JOS.attribute("type", createQualType(FD->getType()));
778 attributeOnlyIfTrue("mutable", FD->isMutable());
779 attributeOnlyIfTrue("modulePrivate", FD->isModulePrivate());
780 attributeOnlyIfTrue("isBitfield", FD->isBitField());
781 attributeOnlyIfTrue("hasInClassInitializer", FD->hasInClassInitializer());
784 void JSONNodeDumper::VisitFunctionDecl(const FunctionDecl *FD) { argument
785 VisitNamedDecl(FD);
786 JOS.attribute("type", createQualType(FD
897 VisitFriendDecl(const FriendDecl *FD) argument
[all...]
H A DItaniumMangle.cpp73 if (const auto *FD = dyn_cast<FunctionDecl>(D))
74 if (FD->isExternC())
75 return FD->getASTContext().getTranslationUnitDecl();
425 void mangleFunctionEncoding(const FunctionDecl *FD);
462 void mangleFunctionEncodingBareType(const FunctionDecl *FD);
528 const FunctionDecl *FD = nullptr);
565 AbiTagList makeFunctionReturnTypeTags(const FunctionDecl *FD);
573 const FunctionDecl *FD = dyn_cast<FunctionDecl>(D); local
574 if (FD) {
575 LanguageLinkage L = FD
658 mangleFunctionEncoding(const FunctionDecl *FD) argument
709 mangleFunctionEncodingBareType(const FunctionDecl *FD) argument
1302 auto *FD = dyn_cast<FunctionDecl>(ND); local
1341 const FieldDecl *FD = RD->findFirstNamedDataMember(); local
2872 mangleBareFunctionType(const FunctionProtoType *Proto, bool MangleReturnType, const FunctionDecl *FD) argument
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/Support/
H A DFileSystem.h428 /// @param FD Input file descriptor.
432 std::error_code resize_file(int FD, uint64_t Size);
436 /// @param FD Input file descriptor.
439 ErrorOr<MD5::MD5Result> md5_contents(int FD);
526 std::error_code is_local(int FD, bool &result);
537 inline bool is_local(int FD) { argument
539 return !is_local(FD, Result) && Result;
649 std::error_code status(int FD, file_status &Result);
653 std::error_code status(file_t FD, file_status &Result);
676 /// TODO Delete the path based overload once we implement the FD base
715 setLastAccessAndModificationTime(int FD, TimePoint<> Time) argument
860 int FD = -1; member in class:llvm::sys::fs::TempFile
979 convertFDToNativeFile(int FD) argument
[all...]
H A DProcess.h123 static std::error_code SafelyCloseFileDescriptor(int FD);
/freebsd-11-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DVforkChecker.cpp83 auto FD = dyn_cast_or_null<FunctionDecl>(D); local
84 if (!FD || !C.isCLibraryFunction(FD))
92 return FD->getIdentifier() == II_vfork;
H A DInnerPointerChecker.cpp154 const FunctionDecl *FD = FC->getDecl(); local
155 if (!FD || !FD->isInStdNamespace())
158 for (unsigned I = 0, E = FD->getNumParams(); I != E; ++I) {
159 QualType ParamTy = FD->getParamDecl(I)->getType();
/freebsd-11-stable/contrib/llvm-project/clang/lib/CodeGen/
H A DCGOpenMPRuntimeNVPTX.h340 /// \param FD Field decl from captured record for the parameter.
342 const VarDecl *translateParameter(const FieldDecl *FD,
441 const FieldDecl *FD = nullptr; member in struct:clang::CodeGen::CGOpenMPRuntimeNVPTX::MappedVarData
448 MappedVarData(const FieldDecl *FD, bool IsOnePerTeam = false) argument
449 : FD(FD), IsOnePerTeam(IsOnePerTeam) {}
/freebsd-11-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DCallEvent.cpp163 const auto *FD = dyn_cast_or_null<FunctionDecl>(getDecl()); local
164 if (!FD)
167 return CheckerContext::isCLibraryFunction(FD, FunctionName);
240 if (const auto *FD = dyn_cast<FunctionDecl>(D))
241 PVD = FD->parameters()[Index];
366 const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(getDecl()); local
367 if (!FD)
371 return CheckerContext::isCLibraryFunction(FD, CD.getFunctionName()) &&
387 if (CD.QualifiedName.size() > 1 && FD) {
388 const DeclContext *Ctx = FD
547 const FunctionDecl *FD = getDecl(); local
[all...]
/freebsd-11-stable/contrib/llvm-project/clang/lib/Frontend/Rewrite/
H A DRewriteObjC.cpp284 void RewriteFunctionDecl(FunctionDecl *FD);
287 void RewriteBlockLiteralFunctionDecl(FunctionDecl *FD);
320 void RewriteBlockPointerFunctionArgs(FunctionDecl *FD);
349 CallExpr *SynthesizeCallToFunctionDecl(FunctionDecl *FD,
398 void InsertBlockLiteralsWithinFunction(FunctionDecl *FD);
658 if (FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) {
659 RewriteFunctionDecl(FD);
2010 RewriteObjC::SynthesizeCallToFunctionDecl(FunctionDecl *FD, argument
2015 QualType msgSendType = FD->getType();
2018 DeclRefExpr *DRE = new (Context) DeclRefExpr(*Context, FD, fals
2239 RewriteFunctionDecl(FunctionDecl *FD) argument
2292 RewriteBlockLiteralFunctionDecl(FunctionDecl *FD) argument
3624 InsertBlockLiteralsWithinFunction(FunctionDecl *FD) argument
3797 FieldDecl *FD = FieldDecl::Create(*Context, nullptr, SourceLocation(), local
3843 FieldDecl *FD = FieldDecl::Create(*Context, nullptr, SourceLocation(), local
3926 RewriteBlockPointerFunctionArgs(FunctionDecl *FD) argument
4411 FunctionDecl *FD; local
4785 FunctionDecl *FD = cast<FunctionDecl>(D); local
[all...]
H A DRewriteModernObjC.cpp336 void RewriteFunctionDecl(FunctionDecl *FD);
339 void RewriteBlockLiteralFunctionDecl(FunctionDecl *FD);
392 void RewriteBlockPointerFunctionArgs(FunctionDecl *FD);
412 CallExpr *SynthesizeCallToFunctionDecl(FunctionDecl *FD,
487 void InsertBlockLiteralsWithinFunction(FunctionDecl *FD);
729 if (FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) {
730 RewriteFunctionDecl(FD);
877 FieldDecl *FD = FieldDecl::Create(*Context, nullptr, SourceLocation(), local
884 *Context, PE, true, FD, FD
2093 SynthesizeCallToFunctionDecl(FunctionDecl *FD, ArrayRef<Expr *> Args, SourceLocation StartLoc, SourceLocation EndLoc) argument
2325 RewriteFunctionDecl(FunctionDecl *FD) argument
2378 RewriteBlockLiteralFunctionDecl(FunctionDecl *FD) argument
3037 getFunctionSourceLocation(RewriteModernObjC &R, FunctionDecl *FD) argument
3171 FunctionDecl *FD = local
4433 InsertBlockLiteralsWithinFunction(FunctionDecl *FD) argument
4627 FieldDecl *FD = FieldDecl::Create(*Context, nullptr, SourceLocation(), local
4673 FieldDecl *FD = FieldDecl::Create(*Context, nullptr, SourceLocation(), local
4770 RewriteBlockPointerFunctionArgs(FunctionDecl *FD) argument
5263 FunctionDecl *FD; local
5685 FunctionDecl *FD = cast<FunctionDecl>(D); local
7523 FieldDecl *FD = FieldDecl::Create(*Context, nullptr, SourceLocation(), local
7551 FieldDecl *FD = FieldDecl::Create(*Context, nullptr, SourceLocation(), local
[all...]
/freebsd-11-stable/contrib/llvm-project/clang/lib/Index/
H A DIndexDecl.cpp96 if (auto *FD = dyn_cast<FunctionDecl>(DC)) {
98 FD->isThisDeclarationADefinition())
106 } else if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) {
108 FD->isThisDeclarationADefinition()) {
109 for (auto PI : FD->parameters()) {
116 if (const auto *FD = dyn_cast<FunctionDecl>(D)) {
117 if (FD->isThisDeclarationADefinition()) {
118 for (const auto *PV : FD->parameters()) {
219 if (const auto *FD = dyn_cast<FunctionDecl>(ND)) {
222 if (FD
[all...]
H A DIndexingContext.cpp155 } else if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) {
156 TKind = FD->getTemplateSpecializationKind();
210 } else if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) {
211 return FD->getTemplateInstantiationPattern();
244 if (auto FD = dyn_cast<FunctionDecl>(D))
245 return FD->isThisDeclarationADefinition();
/freebsd-11-stable/contrib/llvm-project/clang/lib/Frontend/
H A DMultiplexConsumer.cpp91 void ResolvedExceptionSpec(const FunctionDecl *FD) override;
92 void DeducedReturnType(const FunctionDecl *FD, QualType ReturnType) override;
154 const FunctionDecl *FD) {
156 Listener->ResolvedExceptionSpec(FD);
158 void MultiplexASTMutationListener::DeducedReturnType(const FunctionDecl *FD, argument
161 Listeners[i]->DeducedReturnType(FD, ReturnType);
153 ResolvedExceptionSpec( const FunctionDecl *FD) argument
/freebsd-11-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/
H A DRetainCountDiagnostics.cpp220 const FunctionDecl *FD = X.getAsFunctionDecl(); local
223 if (!FD)
224 FD = dyn_cast<FunctionDecl>(CE->getCalleeDecl());
228 } else if (FD) {
229 os << "Call to function '" << FD->getQualifiedNameAsString() << '\'';
787 const FunctionDecl *FD = cast<FunctionDecl>(D); local
790 os << "whose name ('" << *FD local
797 std::string FuncName = FD->getNameAsString();
/freebsd-11-stable/contrib/llvm-project/llvm/tools/llvm-objcopy/
H A Dllvm-objcopy.cpp216 int FD; local
224 sys::fs::openFileForWrite(Filename, FD, sys::fs::CD_OpenExisting))
229 FD, Stat.getLastAccessedTime(), Stat.getLastModificationTime()))
233 if (std::error_code EC = sys::fs::status(FD, OStat))
242 FD, static_cast<sys::fs::perms>(Stat.permissions() &
247 if (auto EC = sys::Process::SafelyCloseFileDescriptor(FD))
/freebsd-11-stable/contrib/llvm-project/clang/lib/ARCMigrate/
H A DTransforms.cpp86 if (const FunctionDecl *FD = callE->getDirectCallee()) {
87 if (FD->hasAttr<CFReturnsRetainedAttr>())
90 if (FD->isGlobal() &&
91 FD->getIdentifier() &&
92 FD->getParent()->isTranslationUnit() &&
93 FD->isExternallyVisible() &&
95 FD->getIdentifier()->getName())) {
96 StringRef fname = FD->getIdentifier()->getName();

Completed in 542 milliseconds

1234567891011>>