Home
last modified time | relevance | path

Searched full:whence (Results 1 – 25 of 48) sorted by relevance

12

/llvm-project/llvm/tools/llvm-profgen/
H A DErrorHandling.h22 StringRef Whence = StringRef(),
25 if (!Whence.empty())
26 errs() << Whence.str() << ": ";
34 StringRef Whence = StringRef()) {
35 exitWithError(EC.message(), Whence);
38 [[noreturn]] inline void exitWithError(Error E, StringRef Whence) { in exitWithError() argument
39 exitWithError(errorToErrorCode(std::move(E)), Whence); in exitWithError()
/llvm-project/llvm/tools/llvm-cxxmap/
H A Dllvm-cxxmap.cpp56 static void warn(Twine Message, Twine Whence = "", in warn() argument
59 std::string WhenceStr = Whence.str(); in warn()
67 static void exitWithError(Twine Message, Twine Whence = "", in exitWithError() argument
70 std::string WhenceStr = Whence.str(); in exitWithError()
79 static void exitWithError(Error E, StringRef Whence = "") { in exitWithError() argument
80 exitWithError(toString(std::move(E)), Whence); in exitWithError()
83 static void exitWithErrorCode(std::error_code EC, StringRef Whence = "") { in exitWithErrorCode() argument
84 exitWithError(EC.message(), Whence); in exitWithErrorCode()
/llvm-project/compiler-rt/test/sanitizer_common/TestCases/Posix/
H A Dfunopen.cpp10 // CHECK-NEXT: SEEK CALLED; off=100, whence=0
39 off_t f_seek(void *cookie, off_t off, int whence) { in f_seek() argument
41 assert(whence == SEEK_SET); in f_seek()
42 printf("SEEK CALLED; off=%d, whence=%d\n", (int)off, whence); in f_seek()
/llvm-project/compiler-rt/test/sanitizer_common/TestCases/NetBSD/
H A Dfunopen2.cpp10 // CHECK-NEXT: SEEK CALLED; off=100, whence=0
41 off_t f_seek(void *cookie, off_t off, int whence) { in f_seek() argument
43 assert(whence == SEEK_SET); in f_seek()
44 printf("SEEK CALLED; off=%d, whence=%d\n", (int)off, whence); in f_seek()
/llvm-project/flang/runtime/
H A Dio-api-minimal.cpp37 IoStatementState &io, INT x, const char *whence) { in FormattedScalarIntegerOutput() argument
38 if (io.CheckFormattedStmtType<Direction::Output>(whence)) { in FormattedScalarIntegerOutput()
71 IoStatementState &io, REAL x, const char *whence) { in FormattedScalarRealOutput() argument
72 if (io.CheckFormattedStmtType<Direction::Output>(whence)) { in FormattedScalarRealOutput()
91 IoStatementState &io, REAL re, REAL im, const char *whence) { in FormattedScalarComplexOutput() argument
92 if (io.CheckFormattedStmtType<Direction::Output>(whence)) { in FormattedScalarComplexOutput()
/llvm-project/libc/src/__support/File/linux/
H A DlseekImpl.h25 LIBC_INLINE ErrorOr<off_t> lseekimpl(int fd, off_t offset, int whence) { in lseekimpl()
28 int ret = LIBC_NAMESPACE::syscall_impl<int>(SYS_lseek, fd, offset, whence); in lseekimpl()
39 LLSEEK_SYSCALL_NO, fd, offset_64 >> 32, offset_64, &result, whence); in lseekimpl()
24 lseekimpl(int fd,off_t offset,int whence) lseekimpl() argument
H A Dfile.cpp47 ErrorOr<off_t> linux_file_seek(File *f, off_t offset, int whence) { in linux_file_seek()
49 auto result = internal::lseekimpl(lf->get_fd(), offset, whence); in linux_file_seek()
45 linux_file_seek(File * f,off_t offset,int whence) linux_file_seek() argument
/llvm-project/libc/src/stdio/
H A Dfopencookie.cpp30 static ErrorOr<off_t> cookie_seek(File *f, off_t offset, int whence);
58 ErrorOr<off_t> CookieFile::cookie_seek(File *f, off_t offset, int whence) { in cookie_seek()
64 int result = cookie_file->ops.seek(cookie_file->cookie, &offset64, whence); in cookie_seek()
55 cookie_seek(File * f,off_t offset,int whence) cookie_seek() argument
H A Dfseek.h17 int fseek(::FILE *stream, long offset, int whence);
H A Dfseeko.h18 int fseeko(::FILE *stream, off_t offset, int whence);
/llvm-project/libc/src/stdio/generic/
H A Dfseeko.cpp17 LLVM_LIBC_FUNCTION(int, fseeko, (::FILE * stream, off_t offset, int whence)) {
19 reinterpret_cast<LIBC_NAMESPACE::File *>(stream)->seek(offset, whence);
H A Dfseek.cpp17 LLVM_LIBC_FUNCTION(int, fseek, (::FILE * stream, long offset, int whence)) {
19 reinterpret_cast<LIBC_NAMESPACE::File *>(stream)->seek(offset, whence);
/llvm-project/libc/src/unistd/linux/
H A Dlseek.cpp22 LLVM_LIBC_FUNCTION(off_t, lseek, (int fd, off_t offset, int whence)) {
23 auto result = internal::lseekimpl(fd, offset, whence);
/llvm-project/libc/src/stdio/gpu/
H A Dfseek.cpp17 LLVM_LIBC_FUNCTION(int, fseek, (::FILE * stream, long offset, int whence)) {
24 buffer->data[2] = static_cast<uint64_t>(whence); in __anon46d2ea2e0102()
/llvm-project/clang/lib/Driver/ToolChains/
H A DPS4CPU.cpp454 SmallString<80> Whence;
457 Whence = {"environment variable '", EnvVar, "'"};
460 Whence = "compiler's location";
490 << (Twine(Platform) + " " + Desc).str() << Dir << Whence;
257 SmallString<80> Whence; PS4PS5Base() local
/llvm-project/libc/test/src/stdio/
H A Dfopencookie_test.cpp60 int seek_ss(void *cookie, off64_t *offset, int whence) { in seek_ss() argument
63 if (whence == SEEK_SET) { in seek_ss()
65 } else if (whence == SEEK_CUR) { in seek_ss()
67 } else if (whence == SEEK_END) { in seek_ss()
/llvm-project/clang/test/Analysis/
H A Dstream.c170 fseek(p, 1, 3); // expected-warning {{The whence argument to fseek() should be SEEK_SET, SEEK_END, or SEEK_CUR}} in f_seek()
179 fseeko(p, 1, 3); // expected-warning {{The whence argument to fseek() should be SEEK_SET, SEEK_END, or SEEK_CUR}} in f_seeko()
252 // PR 8081 - null pointer crash when 'whence' is not an integer constant
253 void pr8081(FILE *stream, long offset, int whence) { in pr8081() argument
254 fseek(stream, offset, whence); in pr8081()
/llvm-project/compiler-rt/lib/hwasan/
H A Dhwasan_report.cpp250 const char *whence; in PrintStackAllocations() local
261 whence = "inside"; in PrintStackAllocations()
271 whence = "after"; in PrintStackAllocations()
279 whence = "before"; in PrintStackAllocations()
309 untagged_addr, offset, whence, local.size, local.name, best_beg, in PrintStackAllocations()
723 const char *whence; in PrintHeapOrGlobalCandidate() local
727 whence = "inside"; in PrintHeapOrGlobalCandidate()
730 whence = "after"; in PrintHeapOrGlobalCandidate()
733 whence = "before"; in PrintHeapOrGlobalCandidate()
740 untagged_addr, offset, whence, in PrintHeapOrGlobalCandidate()
[all...]
/llvm-project/clang/test/Analysis/Inputs/
H A Dstd-c-library-functions-POSIX.h52 int fseek(FILE *stream, long offset, int whence);
121 int fseeko(FILE *stream, off_t offset, int whence);
126 off_t lseek(int fildes, off_t offset, int whence);
/llvm-project/libc/test/src/__support/File/
H A Dfile_test.cpp34 int whence);
96 int whence) { in str_seek()
98 if (whence == SEEK_SET) in str_seek()
100 if (whence == SEEK_CUR) in str_seek()
102 if (whence == SEEK_END) in str_seek()
97 str_seek(LIBC_NAMESPACE::File * f,off_t offset,int whence) str_seek() argument
/llvm-project/llvm/tools/llvm-cov/
H A DCodeCoverage.cpp75 void error(const Twine &Message, StringRef Whence = "");
78 void warning(const Twine &Message, StringRef Whence = "");
196 static std::string getErrorString(const Twine &Message, StringRef Whence, in getErrorString() argument
200 if (!Whence.empty()) in getErrorString()
201 Str += Whence.str() + ": "; in getErrorString()
206 void CodeCoverageTool::error(const Twine &Message, StringRef Whence) { in error() argument
209 << getErrorString(Message, Whence, false); in error()
212 void CodeCoverageTool::warning(const Twine &Message, StringRef Whence) { in warning() argument
215 << getErrorString(Message, Whence, true); in warning()
/llvm-project/libc/src/unistd/
H A Dlseek.h18 off_t lseek(int fd, off_t offset, int whence);
/llvm-project/lldb/examples/python/
H A Dfile_extract.py37 def seek(self, offset, whence=0): argument
39 return self.file.seek(offset, whence)
/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_solaris.cpp189 DECLARE__REAL_AND_INTERNAL64(uptr, lseek, fd_t fd, OFF_T offset, int whence) { in DECLARE__REAL_AND_INTERNAL64() argument
190 return _REAL64(lseek)(fd, offset, whence); in DECLARE__REAL_AND_INTERNAL64()
/llvm-project/libc/src/__support/File/
H A Dfile.cpp328 ErrorOr<int> File::seek(off_t offset, int whence) { in flush_unlocked()
337 } else if (prev_op == FileOp::READ && whence == SEEK_CUR) {
348 auto result = platform_seek(this, offset, whence); in set_buffer()
285 seek(long offset,int whence) seek() argument

12