/freebsd-11-stable/contrib/llvm-project/llvm/lib/Support/ |
H A D | raw_ostream.cpp | 536 int FD; local 538 EC = sys::fs::openFileForReadWrite(Filename, FD, Disp, Flags); 540 EC = sys::fs::openFileForWrite(Filename, FD, Disp, Flags); 544 return FD; 571 /// FD is the file descriptor that this writes to. If ShouldClose is true, this 574 : raw_pwrite_stream(unbuffered), FD(fd), ShouldClose(shouldClose) { 575 if (FD < 0 ) { 586 if (FD <= STDERR_FILENO) 596 off_t loc = ::lseek(FD, 0, SEEK_CUR); 600 std::error_code EC = status(FD, Statu 652 write_console_impl(int FD, StringRef Data) argument [all...] |
H A D | Path.cpp | 806 int FD; 807 auto EC = createUniqueFile(Model, FD, ResultPath, Mode); 810 // FD is only needed to avoid race conditions. Close it right away. 811 close(FD); 843 int FD; 844 auto EC = createTemporaryFile(Prefix, Suffix, FD, ResultPath); 847 // FD is only needed to avoid race conditions. Close it right away. 848 close(FD); 1018 ErrorOr<MD5::MD5Result> md5_contents(int FD) { 1025 BytesRead = read(FD, Bu [all...] |
H A D | FileOutputBuffer.cpp | 99 int FD; variable 102 openFileForWrite(FinalPath, FD, CD_CreateAlways, OF_None, Mode)) 104 raw_fd_ostream OS(FD, /*shouldClose=*/true, /*unbuffered=*/true); 141 if (auto EC = fs::resize_file(File.FD, Size)) { 150 fs::convertFDToNativeFile(File.FD), fs::mapped_file_region::readwrite,
|
/freebsd-11-stable/contrib/llvm-project/clang/lib/Sema/ |
H A D | SemaCoroutine.cpp | 51 static QualType lookupPromiseType(Sema &S, const FunctionDecl *FD, argument 53 const FunctionProtoType *FnType = FD->getType()->castAs<FunctionProtoType>(); 54 const SourceLocation FuncLoc = FD->getLocation(); 78 if (auto *MD = dyn_cast<CXXMethodDecl>(FD)) { 195 auto *FD = dyn_cast<FunctionDecl>(S.CurContext); local 196 if (!FD) { 223 auto *MD = dyn_cast<CXXMethodDecl>(FD); 231 else if (FD->isMain()) 238 if (FD->isConstexpr()) 239 DiagInvalid(FD 483 auto *FD = cast<FunctionDecl>(CurContext); local 958 CheckCompletedCoroutineBody(FunctionDecl *FD, Stmt *&Body) argument 993 CoroutineStmtBuilder(Sema &S, FunctionDecl &FD, sema::FunctionScopeInfo &Fn, Stmt *Body) argument 1527 auto *FD = cast<FunctionDecl>(CurContext); local [all...] |
H A D | SemaDeclCXX.cpp | 421 static bool functionDeclHasDefaultArgument(const FunctionDecl *FD) { argument 422 for (unsigned NumParams = FD->getNumParams(); NumParams > 0; --NumParams) { 423 const ParmVarDecl *PVD = FD->getParamDecl(NumParams-1); 1345 [](FieldDecl *FD) { return !FD->isUnnamedBitfield(); }); 1357 for (auto *FD : RD->fields()) { 1358 if (FD->isUnnamedBitfield()) 1361 if (FD->isAnonymousStructOrUnion()) { 1363 << DecompType << FD->getType()->isUnionType(); 1364 S.Diag(FD [all...] |
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/Analysis/ |
H A D | AnyCall.h | 126 if (const auto *FD = dyn_cast<FunctionDecl>(D)) { 127 return AnyCall(FD); 139 if (const auto *FD = dyn_cast<FunctionDecl>(D)) { 140 return FD->parameters();
|
H A D | RetainSummaryManager.h | 499 const RetainSummary *getOSSummaryCreateRule(const FunctionDecl *FD); 502 const RetainSummary *getOSSummaryGetRule(const FunctionDecl *FD); 505 const RetainSummary *getOSSummaryRetainRule(const FunctionDecl *FD); 508 const RetainSummary *getOSSummaryReleaseRule(const FunctionDecl *FD); 511 const RetainSummary *getOSSummaryFreeRule(const FunctionDecl *FD); 516 const RetainSummary *getCFSummaryCreateRule(const FunctionDecl *FD); 517 const RetainSummary *getCFSummaryGetRule(const FunctionDecl *FD); 518 const RetainSummary *getCFCreateGetRuleSummary(const FunctionDecl *FD); 601 const RetainSummary * generateSummary(const FunctionDecl *FD, 605 const RetainSummary *getSummaryForOSObject(const FunctionDecl *FD, [all...] |
/freebsd-11-stable/contrib/llvm-project/clang/lib/Serialization/ |
H A D | ASTCommon.h | 101 if (auto *FD = dyn_cast<FriendDecl>(LexicalD)) 102 LexicalD = FD->getFriendDecl();
|
H A D | ASTReaderDecl.cpp | 304 void ReadFunctionDefinition(FunctionDecl *FD); 360 void VisitFunctionDecl(FunctionDecl *FD); 366 void VisitFieldDecl(FieldDecl *FD); 367 void VisitMSPropertyDecl(MSPropertyDecl *FD); 368 void VisitIndirectFieldDecl(IndirectFieldDecl *FD); 504 void ASTDeclReader::ReadFunctionDefinition(FunctionDecl *FD) { argument 506 Reader.DefinitionSource[FD] = Loc.F->Kind == ModuleKind::MK_MainFile; 507 if (auto *CD = dyn_cast<CXXConstructorDecl>(FD)) { 513 Reader.PendingBodies[FD] = GetCurrentCursorOffset(); 542 } else if (auto *FD 835 VisitFunctionDecl(FunctionDecl *FD) argument 948 auto *FD = readDeclAs<FunctionDecl>(); local 1234 VisitObjCAtDefsFieldDecl(ObjCAtDefsFieldDecl *FD) argument 1334 VisitFieldDecl(FieldDecl *FD) argument 1361 VisitIndirectFieldDecl(IndirectFieldDecl *FD) argument 3560 auto *FD = static_cast<FunctionDecl *>(D); local 4425 auto *FD = cast<FunctionDecl>(D); local 4452 auto *FD = cast<FieldDecl>(D); local 4469 auto *FD = cast<FunctionDecl>(D); local 4570 auto *FD = cast<FunctionDecl>(D); local 4588 auto *FD = cast<FunctionDecl>(D); local [all...] |
/freebsd-11-stable/contrib/llvm-project/clang/lib/AST/ |
H A D | Comment.cpp | 233 const FunctionDecl *FD = cast<FunctionDecl>(CommentDecl); local 235 ParamVars = FD->parameters(); 236 ReturnType = FD->getReturnType(); 237 unsigned NumLists = FD->getNumTemplateParameterLists(); 241 FD->getTemplateParameterList(NumLists - 1); 266 const FunctionDecl *FD = FTD->getTemplatedDecl(); local 267 ParamVars = FD->parameters(); 268 ReturnType = FD->getReturnType();
|
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/AST/ |
H A D | DeclFriend.h | 150 if (const auto *FD = dyn_cast<FunctionDecl>(ND)) 151 return FD->getSourceRange(); 251 inline void CXXRecordDecl::pushFriendDecl(FriendDecl *FD) { argument 252 assert(!FD->NextFriend && "friend already has next friend?"); 253 FD->NextFriend = data().FirstFriend; 254 data().FirstFriend = FD;
|
H A D | ASTMutationListener.h | 77 virtual void ResolvedExceptionSpec(const FunctionDecl *FD) {} argument 80 virtual void DeducedReturnType(const FunctionDecl *FD, QualType ReturnType);
|
/freebsd-11-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
H A D | UnixAPIChecker.cpp | 105 const FunctionDecl *FD = C.getCalleeDecl(CE); local 106 if (!FD || FD->getKind() != Decl::Function) 111 const DeclContext *NamespaceCtx = FD->getEnclosingNamespaceContext(); 115 StringRef FName = C.getCalleeName(FD); 461 const FunctionDecl *FD = C.getCalleeDecl(CE); local 462 if (!FD || FD->getKind() != Decl::Function) 467 const DeclContext *NamespaceCtx = FD->getEnclosingNamespaceContext(); 471 StringRef FName = C.getCalleeName(FD); [all...] |
H A D | MallocChecker.cpp | 310 bool isMemFunction(const FunctionDecl *FD, ASTContext &C) const; 311 bool isCMemFunction(const FunctionDecl *FD, ASTContext &C, 317 bool isStandardNewDelete(const FunctionDecl *FD, ASTContext &C) const; 858 bool MemFunctionInfoTy::isMemFunction(const FunctionDecl *FD, argument 860 if (isCMemFunction(FD, C, AF_Malloc, MemoryOperationKind::MOK_Any)) 863 if (isCMemFunction(FD, C, AF_IfNameIndex, MemoryOperationKind::MOK_Any)) 866 if (isCMemFunction(FD, C, AF_Alloca, MemoryOperationKind::MOK_Any)) 869 if (isStandardNewDelete(FD, C)) 875 bool MemFunctionInfoTy::isCMemFunction(const FunctionDecl *FD, ASTContext &C, argument 878 if (!FD) 945 isStandardNewDelete(const FunctionDecl *FD, ASTContext &C) const argument 1059 const FunctionDecl *FD = C.getCalleeDecl(CE); local 1640 const FunctionDecl *FD = C.getCalleeDecl(CE); local 1686 const FunctionDecl *FD = CE->getDirectCallee(); local 1978 const NamedDecl *FD = cast<FunctionCodeRegion>(MR)->getDecl(); local 1980 os << "the address of the function '" << *FD << '\\''; local 2691 const FunctionDecl *FD = FC->getDecl(); local 2993 const FunctionDecl *FD = cast<SimpleFunctionCall>(Call)->getDecl(); local [all...] |
H A D | ObjCContainersASTChecker.cpp | 85 const FunctionDecl *FD = CE->getDirectCallee(); local 86 if (!FD) 89 IdentifierInfo *II = FD->getIdentifier();
|
H A D | ObjCUnusedIVarsChecker.cpp | 99 if (const auto *FD = dyn_cast<FunctionDecl>(I)) { 100 SourceLocation L = FD->getBeginLoc(); 102 Scan(M, FD->getBody());
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Support/Unix/ |
H A D | Process.inc | 177 FDCloser(int &FD) : FD(FD), KeepOpen(false) {} 180 if (!KeepOpen && FD >= 0) 181 ::close(FD); 188 int &FD; 206 // if fstat succeeds, move on to the next FD. 227 std::error_code Process::SafelyCloseFileDescriptor(int FD) { 245 if (::close(FD) < 0)
|
/freebsd-11-stable/usr.bin/tip/tip/ |
H A D | tip.c | 208 i = fcntl(FD, F_GETFL); 213 i = fcntl(FD, F_SETFL, i & ~O_NONBLOCK); 238 ioctl(FD, TIOCSETD, &ld); 334 ioctl(FD, TIOCNXCL, 0); 421 parwrite(FD, &ch, 1); 435 parwrite(FD, &ch, 1); 468 parwrite(FD, &c, 1); 559 if (tcgetattr(FD, &cntrl)) 575 return (tcsetattr(FD, TCSAFLUSH, &cntrl));
|
H A D | acu.c | 76 parwrite(FD, CM, size(CM)); 150 parwrite(FD, CM, size(CM));
|
/freebsd-11-stable/contrib/llvm-project/llvm/tools/bugpoint/ |
H A D | OptimizerDriver.cpp | 63 bool BugDriver::writeProgramToFile(const std::string &Filename, int FD, argument 65 ToolOutputFile Out(Filename, FD); 69 bool BugDriver::writeProgramToFile(int FD, const Module &M) const { argument 70 raw_fd_ostream OS(FD, /*shouldClose*/ false); 156 raw_fd_ostream OS(Temp->FD, /*shouldClose*/ false);
|
/freebsd-11-stable/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CodeGenModule.cpp | 1018 const auto *FD = dyn_cast<FunctionDecl>(ND); local 1020 if (FD && 1021 FD->getType()->castAs<FunctionType>()->getCallConv() == CC_X86RegCall) { 1029 if (const auto *FD = dyn_cast<FunctionDecl>(ND)) 1030 if (FD->isMultiVersion() && !OmitMultiVersionMangling) { 1031 switch (FD->getMultiVersionKind()) { 1035 FD->getAttr<CPUSpecificAttr>(), 1039 AppendTargetMangling(CGM, FD->getAttr<TargetAttr>(), Out); 1050 const FunctionDecl *FD) { 1051 if (!FD 1049 UpdateMultiVersionNames(GlobalDecl GD, const FunctionDecl *FD) argument 1279 GenOpenCLArgMetadata(llvm::Function *Fn, const FunctionDecl *FD, CodeGenFunction *CGF) argument 1679 const auto *FD = dyn_cast_or_null<FunctionDecl>(GD.getDecl()); local 1786 CreateFunctionTypeMetadataForIcall(const FunctionDecl *FD, llvm::Function *F) argument 1818 const auto *FD = cast<FunctionDecl>(GD.getDecl()); local 2619 const FunctionDecl *FD = E->getDirectCallee(); local 2712 isTriviallyRecursive(const FunctionDecl *FD) argument 2770 const auto *FD = cast<FunctionDecl>(GD.getDecl()); local 2892 const FunctionDecl *FD = cast<FunctionDecl>(GD.getDecl()); local 2947 const auto *FD = cast<FunctionDecl>(GD.getDecl()); local 3061 GetOrCreateMultiVersionResolver( GlobalDecl GD, llvm::Type *DeclTy, const FunctionDecl *FD) argument 3157 const FunctionDecl *FD = cast_or_null<FunctionDecl>(D); local 3312 const auto *FD = cast<FunctionDecl>(GD.getDecl()); local 3398 const FunctionDecl *FD = GetRuntimeFunctionDecl(Context, Name); local [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/Support/ |
H A D | GraphWriter.h | 321 std::string createGraphFilename(const Twine &Name, int &FD); 332 int FD; local 337 Filename = createGraphFilename(N, FD); 339 std::error_code EC = sys::fs::openFileForWrite(Filename, FD); 349 raw_fd_ostream O(FD, /*shouldClose=*/ true); 351 if (FD == -1) {
|
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/Analysis/Analyses/ |
H A D | ThreadSafety.h | 222 virtual void enterFunction(const FunctionDecl *FD) {} argument 225 virtual void leaveFunction(const FunctionDecl *FD) {} argument
|
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/CodeGen/ |
H A D | CodeGenABITypes.h | 76 const FunctionDecl *FD); 82 /// the complete object type which is returned by convertTypeForMemory. FD must 85 const RecordDecl *RD, const FieldDecl *FD);
|
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/Tooling/Refactoring/ |
H A D | RecursiveSymbolVisitor.h | 52 if (const FieldDecl *FD = Initializer->getMember()) { 53 if (!visit(FD, Initializer->getSourceLocation(),
|