Home
last modified time | relevance | path

Searched full:file (Results 1 – 25 of 12108) sorted by relevance

12345678910>>...485

/llvm-project/libc/src/stdio/generic/
H A DCMakeLists.txt8 libc.hdr.types.FILE
9 libc.src.__support.File.file
10 libc.src.__support.File.platform_file
20 libc.hdr.types.FILE
21 libc.src.__support.File.file
22 libc.src.__support.File.platform_file
32 libc.hdr.types.FILE
33 libc.src.__support.File
[all...]
/llvm-project/libc/test/src/__support/File/
H A Dplatform_file_test.cpp1 //===-- Unittests for target platform file implementation -----------------===//
9 #include "src/__support/File/file.h"
14 using File = LIBC_NAMESPACE::File; typedef
15 constexpr char TEXT[] = "Hello, File";
18 LIBC_INLINE File *openfile(const char *file_name, const char *mode) { in openfile()
25 File *file = openfile(FILENAME, "w"); in TEST() local
26 ASSERT_FALSE(file in TEST()
46 File *file = openfile(FILENAME, "w+"); TEST() local
66 File *file = openfile(FILENAME, "w"); TEST() local
95 File *file = openfile(FILENAME, "w"); TEST() local
127 File *file = openfile(FILENAME, "w"); TEST() local
154 File *file = openfile(FILENAME, "w"); TEST() local
183 File *file = openfile(FILENAME, "w"); TEST() local
[all...]
/llvm-project/polly/lib/External/isl/imath/
H A Dimdrover.h35 char *file; member
43 typedef bool (*test_f)(testspec_t *, FILE *);
50 bool test_init(testspec_t* t, FILE* ofp);
51 bool test_set(testspec_t* t, FILE* ofp);
52 bool test_neg(testspec_t* t, FILE* ofp);
53 bool test_abs(testspec_t* t, FILE* ofp);
54 bool test_add(testspec_t* t, FILE* ofp);
55 bool test_sub(testspec_t* t, FILE* ofp);
56 bool test_mul(testspec_t* t, FILE* ofp);
57 bool test_mulp2(testspec_t* t, FILE* ofp);
[all …]
/llvm-project/clang/test/Modules/
H A Dpreprocess-module.cpp4 // RUN: not %clang_cc1 -fmodules -fmodule-name=file -I%S/Inputs/preprocess -x c++-module-map %S/Inp…
10 // RUN: %clang_cc1 -fmodules -fmodule-name=file -fmodule-file=%t/fwd.pcm -I%S/Inputs/preprocess -x …
11 // RUN: %clang_cc1 -fmodules -fmodule-name=file -fmodule-file=%t/fwd.pcm -I%S/Inputs/preprocess -x …
13 // RUN: FileCheck %s --input-file %t/no-rewrite.ii --check-prefix=CHECK --check-prefix=NO-REWRITE
14 // RUN: FileCheck %s --input-file %t/rewrite.ii --check-prefix=CHECK --check-prefix=REWRITE
17 // RUN: %clang_cc1 -fmodules -fmodule-name=file -fmodule-file=%t/fwd.pcm -x c++-module-map-cpp-outp…
18 // RUN: %clang_cc1 -fmodules -fmodule-name=file -fmodule-file=%t/fwd.pcm -x c++-module-map-cpp-outp…
21 // could happen if we had a redundant -fmodule-map-file= in the original
23 // RUN: %clang_cc1 -fmodules -fmodule-name=file -fmodule-file=%t/fwd.pcm -fmodule-map-file=%S/Input…
26 // RUN: %clang_cc1 -fmodules -fmodule-file=%t/no-rewrite.pcm %s -I%t -verify -fno-modules-error-rec…
[all …]
/llvm-project/libc/test/src/stdio/
H A Dfileop_test.cpp1 //===-- Unittests for file operations like fopen, flcose etc --------------===//
32 ::FILE *file = LIBC_NAMESPACE::fopen(FILENAME, "w"); in TEST()
33 ASSERT_FALSE(file == nullptr); in TEST()
34 ASSERT_EQ(LIBC_NAMESPACE::fileno(file), 3); in TEST()
37 LIBC_NAMESPACE::fwrite(CONTENT, 1, sizeof(CONTENT) - 1, file)); in TEST()
39 // This is not a readable file. in TEST()
41 ASSERT_THAT(LIBC_NAMESPACE::fread(read_data, 1, sizeof(CONTENT), file), in TEST()
43 ASSERT_NE(LIBC_NAMESPACE::ferror(file), 0); in TEST()
46 LIBC_NAMESPACE::clearerr(file); in TEST()
169 FILE *file = LIBC_NAMESPACE::fopen(FILENAME, "w"); TEST() local
[all...]
/llvm-project/clang/test/CoverageMapping/
H A Dmacroscopes.cpp1 …ent=clang -fcoverage-mapping -dump-coverage-mapping -emit-llvm-only -main-file-name macroscopes.cp…
37 // CHECK-NEXT: File 0, [[@LINE+1]]:12 -> {{[0-9]+}}:2 = #0
40 // CHECK-NEXT: Expansion,File 0, [[@LINE+2]]:3 -> [[@LINE+2]]:17 = #0
41 // CHECK-NEXT: File 0, [[@LINE+1]]:17 -> [[@LINE+7]]:15 = #1
44 // CHECK-NEXT: Expansion,File 0, [[@LINE+1]]:5 -> [[@LINE+1]]:14 = #1
47 // CHECK-NEXT: Expansion,File 0, [[@LINE+1]]:3 -> [[@LINE+1]]:15 = #1
50 // CHECK-NEXT: Expansion,File 0, [[@LINE+4]]:3 -> [[@LINE+4]]:17 = #0
51 // CHECK-NEXT: File 0, [[@LINE+3]]:17 -> [[@LINE+5]]:15 = #4
52 // CHECK-NEXT: Expansion,File 0, [[@LINE+3]]:5 -> [[@LINE+3]]:14 = #4
53 // CHECK-NEXT: Expansion,File 0, [[@LINE+3]]:3 -> [[@LINE+3]]:15 = #4
[all …]
H A Dincludehell.cpp1 …ent=clang -fcoverage-mapping -dump-coverage-mapping -emit-llvm-only -main-file-name includehell.cp…
22 // RUN: FileCheck -input-file %tmapping %s --check-prefix=CHECK-MAIN
23 // RUN: FileCheck -input-file %tmapping %s --check-prefix=CHECK-START
24 // RUN: FileCheck -input-file %tmapping %s --check-prefix=CHECK-CODE
25 // RUN: FileCheck -input-file %tmapping %s --check-prefix=CHECK-END
27 // CHECK-MAIN: File [[MAIN:[0-9]]], 3:12 -> 20:2 = #0
28 // CHECK-MAIN-NEXT: Expansion,File [[MAIN]], 6:12 -> 6:35 = #0
29 // CHECK-MAIN-NEXT: File [[MAIN]], 6:35 -> 10:33 = #1
30 // CHECK-MAIN-NEXT: Expansion,File [[MAIN]], 8:14 -> 8:29 = #1
31 // CHECK-MAIN-NEXT: Expansion,File [[MAIN]], 10:12 -> 10:33 = #1
[all …]
H A Dmcdc-logical-stmt-ids-all.cpp9 // CHECK-LABEL: Decision,File 0, 4:7 -> 4:33 = M:7, C:6
10 // CHECK-NEXT: Branch,File 0, 4:7 -> 4:8 = #10, (#0 - #10) [1,6,0]
11 // CHECK: Branch,File 0, 4:12 -> 4:13 = #11, (#10 - #11) [6,5,0]
12 // CHECK: Branch,File 0, 4:17 -> 4:18 = #9, (#8 - #9) [5,4,0]
13 // CHECK: Branch,File 0, 4:22 -> 4:23 = #7, (#6 - #7) [4,3,0]
14 // CHECK: Branch,File 0, 4:27 -> 4:28 = #5, (#4 - #5) [3,2,0]
15 // CHECK: Branch,File 0, 4:32 -> 4:33 = #3, (#2 - #3) [2,0,0]
23 // CHECK-LABEL: Decision,File 0, 18:7 -> 18:33 = M:7, C:6
24 // CHECK-NEXT: Branch,File 0, 18:7 -> 18:8 = (#0 - #10), #10 [1,0,6]
25 // CHECK: Branch,File 0, 18:12 -> 18:13 = (#10 - #11), #11 [6,0,5]
[all …]
H A Dmcdc-logical-scalar-ids.cpp13 // CHECK-LABEL: Decision,File 0, 5:17 -> 5:23 = M:3, C:2
14 // CHECK-NEXT: Branch,File 0, 5:17 -> 5:18 = #1, (#0 - #1) [1,2,0]
15 // CHECK: Branch,File 0, 5:22 -> 5:23 = #2, (#1 - #2) [2,0,0]
16 // CHECK-LABEL: Decision,File 0, 6:17 -> 6:28 = M:7, C:3
17 // CHECK-NEXT: Branch,File 0, 6:17 -> 6:18 = #5, (#0 - #5) [1,3,0]
18 // CHECK: Branch,File 0, 6:22 -> 6:23 = #6, (#5 - #6) [3,2,0]
19 // CHECK: Branch,File 0, 6:27 -> 6:28 = #4, (#3 - #4) [2,0,0]
20 // CHECK-LABEL: Decision,File 0, 7:17 -> 7:33 = M:12, C:4
21 // CHECK-NEXT: Branch,File 0, 7:17 -> 7:18 = #11, (#0 - #11) [1,4,0]
22 // CHECK: Branch,File 0, 7:22 -> 7:23 = #12, (#11 - #12) [4,3,0]
[all …]
H A Dmcdc-logical-stmt-ids.cpp13 // CHECK-LABEL: Decision,File 0, 4:7 -> 4:13 = M:3, C:2
14 // CHECK-NEXT: Branch,File 0, 4:7 -> 4:8 = #2, (#0 - #2) [1,2,0]
15 // CHECK: Branch,File 0, 4:12 -> 4:13 = #3, (#2 - #3) [2,0,0]
16 // CHECK-LABEL: Decision,File 0, 5:9 -> 5:20 = M:7, C:3
17 // CHECK-NEXT: Branch,File 0, 5:9 -> 5:10 = #7, (#1 - #7) [1,3,0]
18 // CHECK: Branch,File 0, 5:14 -> 5:15 = #8, (#7 - #8) [3,2,0]
19 // CHECK: Branch,File 0, 5:19 -> 5:20 = #6, (#5 - #6) [2,0,0]
20 // CHECK-LABEL: Decision,File 0, 6:11 -> 6:27 = M:12, C:4
21 // CHECK-NEXT: Branch,File 0, 6:11 -> 6:12 = #14, (#4 - #14) [1,4,0]
22 // CHECK: Branch,File 0, 6:16 -> 6:17 = #15, (#14 - #15) [4,3,0]
[all …]
H A Dswitch.cpp1 // RUN: %clang_cc1 -Wno-error=return-type -mllvm -emptyline-comment-coverage=false -fprofile-instrument=clang -fcoverage-mapping -dump-coverage-mapping -emit-llvm-only -std=c++1z -triple %itanium_abi_triple -main-file-name switch.cpp %s | FileCheck %s
4 void foo(int i) { // CHECK-NEXT: File 0, [[@LINE]]:17 -> [[@LINE+11]]:2 = #0 in foo()
5 switch(i) { // CHECK-NEXT: Branch,File 0, [[@LINE]]:10 -> [[@LINE]]:11 = (#2 + #3), ((#0 - #2) - #3) in foo()
6 // CHECK-NEXT: Gap,File 0, [[@LINE-1]]:13 -> [[@LINE+5]]:10 = 0 in foo()
7 case 1: // CHECK-NEXT: File 0, [[@LINE]]:3 -> [[@LINE+1]]:11 = #2 in foo()
8 return; // CHECK-NEXT: Branch,File 0, [[@LINE-1]]:3 -> [[@LINE-1]]:9 = #2, (#0 - #2) in foo()
9 // CHECK-NEXT: Gap,File 0, [[@LINE-1]]:12 -> [[@LINE+1]]:3 = 0 in foo()
10 case 2: // CHECK-NEXT: File 0, [[@LINE]]:3 -> [[@LINE+1]]:10 = #3 in foo()
11 break; // CHECK-NEXT: Branch,File 0, [[@LINE-1]]:3 -> [[@LINE-1]]:9 = #3, (#0 - #3) in foo()
13 } // CHECK-NEXT: Gap,File in foo()
[all...]
/llvm-project/clang/unittests/Lex/
H A DHeaderMapTest.cpp29 HMapFileMock<1, 1> File; in TEST() local
30 File.init(); in TEST()
31 File.Header.Magic = 0; in TEST()
33 ASSERT_FALSE(HeaderMapImpl::checkHeader(*File.getBuffer(), NeedsSwap)); in TEST()
37 HMapFileMock<1, 1> File; in TEST() local
38 File.init(); in TEST()
39 File.Header.Reserved = 1; in TEST()
41 ASSERT_FALSE(HeaderMapImpl::checkHeader(*File.getBuffer(), NeedsSwap)); in TEST()
45 HMapFileMock<1, 1> File; in TEST() local
46 File.init(); in TEST()
[all …]
/llvm-project/lldb/include/lldb/Utility/
H A DFileSpecList.h34 void Append(const FileSpec &file) { in Append() argument
35 return Append(std::make_shared<SupportFile>(file)); in Append()
37 void Append(std::shared_ptr<SupportFile> &&file) { in Append() argument
38 m_files.push_back(std::move(file)); in Append()
41 bool AppendIfUnique(const FileSpec &file);
45 size_t FindFileIndex(size_t idx, const FileSpec &file, bool full) const;
46 /// Find a compatible file index.
48 /// Find the index of a compatible file in the file spec list that matches \a
49 /// file startin
211 Insert(size_t idx,const FileSpec & file) Insert() argument
222 Replace(size_t idx,const FileSpec & file) Replace() argument
[all...]
/llvm-project/mlir/test/python/ir/
H A Dlocation.py49 loc = Location.file("foo.txt", 123, 56)
50 range = Location.file("foo.txt", 123, 56, 123, 100)
53 # CHECK: file str: loc("foo.txt":123:56)
54 print("file str:", str(loc))
55 # CHECK: file repr: loc("foo.txt":123:56)
56 print("file repr:", repr(loc))
57 # CHECK: file range str: loc("foo.txt":123:56 to :100)
58 print("file range str:", str(range))
59 # CHECK: file range repr: loc("foo.txt":123:56 to :100)
60 print("file rang
[all...]
/llvm-project/clang/test/Analysis/
H A Dgetline-unixapi.c13 FILE *F1 = tmpfile(); in test_getline_null_lineptr()
24 FILE *F1 = tmpfile(); in test_getline_null_size()
33 FILE *F1 = tmpfile(); in test_getline_null_buffer_size_gt0()
44 FILE *F1 = tmpfile(); in test_getline_null_buffer_size_gt0_2()
56 FILE *F1 = tmpfile(); in test_getline_null_buffer_unknown_size()
67 FILE *F1 = tmpfile(); in test_getline_null_buffer_undef_size()
80 FILE *F1 = tmpfile(); in test_getline_buffer_size_0()
93 FILE *F1 = tmpfile(); in test_getline_buffer_bad_size()
106 FILE *F1 = tmpfile(); in test_getline_buffer_smaller_size()
119 FILE *F1 = tmpfile(); in test_getline_buffer_undef_size()
[all …]
/llvm-project/clang/test/Analysis/Inputs/
H A Dsystem-header-simulator.h19 typedef struct _FILE FILE; typedef
20 #define SEEK_SET 0 /* Seek from beginning of file. */
22 #define SEEK_END 2 /* Seek from end of file. */
24 extern FILE *stdin;
25 extern FILE *stdout;
26 extern FILE *stderr;
27 // Include a variant of standard streams that occur in the pre-processed file.
28 extern FILE *__stdinp;
29 extern FILE *__stdoutp;
30 extern FILE *__stderr
[all...]
/llvm-project/lldb/include/lldb/Host/
H A DFile.h1 //===-- File.h --------------------------------------------------*- C++ -*-===//
29 /// \class File File.h "lldb/Host/File.h"
33 /// around host OS file functionality. But it
34 /// is also possible to subclass file to provide objects that have file
35 /// or stream functionality but are not backed by any host OS file.
36 class File : public IOObject {
39 static FILE *kInvalidStream;
51 eOpenOptionReadOnly = 0x0, // Open file for reading (only)
52 eOpenOptionWriteOnly = 0x1, // Open file for writing (only)
53 eOpenOptionReadWrite = 0x2, // Open file for both reading and writing
[all …]
/llvm-project/clang/tools/scan-build-py/tests/functional/exec/
H A Dmain.c37 static FILE *fd = NULL;
60 void expected_out(const char *file) { in expected_out() argument
68 fprintf(fd, " \"command\": \"cc -c %s\",\n", file); in expected_out()
69 fprintf(fd, " \"file\": \"%s/%s\"\n", cwd, file); in expected_out()
73 void create_source(char *file) { in create_source() argument
74 FILE *fd = fopen(file, "w"); in create_source()
114 char *const file = "execv.c"; in call_execv() local
116 char *const argv[] = {"cc", "-c", file, 0}; in call_execv()
118 expected_out(file); in call_execv()
119 create_source(file); in call_execv()
[all …]
/llvm-project/llvm/test/tools/llvm-readobj/ELF/
H A Dfile-header-machine-types.test4 # RUN: llvm-readelf --file-headers %t.none.o | FileCheck %s -DMACHINE="None"
7 # RUN: llvm-readelf --file-headers %t.m32.o | FileCheck %s -DMACHINE="WE32100"
10 # RUN: llvm-readelf --file-headers %t.sparc.o | FileCheck %s -DMACHINE="Sparc"
13 # RUN: llvm-readelf --file-headers %t.386.o | FileCheck %s -DMACHINE="Intel 80386"
16 # RUN: llvm-readelf --file-headers %t.68k.o | FileCheck %s -DMACHINE="MC68000"
19 # RUN: llvm-readelf --file-headers %t.88k.o | FileCheck %s -DMACHINE="MC88000"
22 # RUN: llvm-readelf --file-headers %t.iamcu.o | FileCheck %s -DMACHINE="EM_IAMCU"
25 # RUN: llvm-readelf --file-headers %t.860.o | FileCheck %s -DMACHINE="Intel 80860"
28 # RUN: llvm-readelf --file-headers %t.mips.o | FileCheck %s -DMACHINE="MIPS R3000"
31 # RUN: llvm-readelf --file-headers %t.s370.o | FileCheck %s -DMACHINE="IBM System/370"
[all …]
/llvm-project/llvm/unittests/TextAPI/
H A DTextStubV3Tests.cpp1 //===-- TextStubV3Tests.cpp - TBD V3 File Test ----------------------------===//
76 TBDFile File = std::move(Result.get()); in TEST() local
77 EXPECT_EQ(FileType::TBD_V3, File->getFileType()); in TEST()
83 EXPECT_EQ(Archs, File->getArchitectures()); in TEST()
88 EXPECT_EQ(File->getPlatforms().size(), 1U); in TEST()
89 EXPECT_EQ(Platform, *File->getPlatforms().begin()); in TEST()
90 EXPECT_EQ(std::string("Test.dylib"), File->getInstallName()); in TEST()
91 EXPECT_EQ(PackedVersion(2, 3, 4), File->getCurrentVersion()); in TEST()
92 EXPECT_EQ(PackedVersion(1, 0, 0), File->getCompatibilityVersion()); in TEST()
93 EXPECT_EQ(2U, File->getSwiftABIVersion()); in TEST()
[all …]
H A DTextStubV1Tests.cpp1 //===-- TextStubV1Tests.cpp - TBD V1 File Test ----------------------------===//
72 TBDFile File = std::move(Result.get()); in TEST() local
73 EXPECT_EQ(FileType::TBD_V1, File->getFileType()); in TEST()
79 EXPECT_EQ(Archs, File->getArchitectures()); in TEST()
80 EXPECT_EQ(File->getPlatforms().size(), 1U); in TEST()
81 EXPECT_EQ(Platform, *File->getPlatforms().begin()); in TEST()
82 EXPECT_EQ(std::string("Test.dylib"), File->getInstallName()); in TEST()
83 EXPECT_EQ(PackedVersion(2, 3, 4), File->getCurrentVersion()); in TEST()
84 EXPECT_EQ(PackedVersion(1, 0, 0), File->getCompatibilityVersion()); in TEST()
85 EXPECT_EQ(2U, File->getSwiftABIVersion()); in TEST()
[all …]
/llvm-project/flang/test/Parser/
H A Dinclude.f2 include 'include-file'
3 include "include-file"
4 include 1_'include-file'
5 include 1_"include-file"
6 i n c l u d e 'include-file'
7 INCLUDE 'include-file'
8 I N C L U D E 'include-file'
9 include 'include-file'
10 include "include-file"
11 include 1_'include-file'
[all...]
/llvm-project/lldb/test/API/functionalities/gdb_remote_client/
H A DTestGDBRemotePlatformFile.py8 """Test mock operations on a remote file"""
25 "platform file open /some/file.txt -v 0755", [r"File Descriptor = 16"]
28 "platform file read 16 -o 11 -c 13",
31 self.match("platform file write 16 -o 11 -d teststring", [r"Return = 10"])
32 self.match("platform file close 16", [r"file 16 closed."])
54 "platform file open /some/file
[all...]
/llvm-project/lldb/examples/python/
H A Dfile_extract.py9 """Decode binary data from a file"""
12 """Initialize with an open binary file and optional byte order"""
14 self.file = f
38 if self.file:
39 return self.file.seek(offset, whence)
43 if self.file:
44 return self.file.tell()
48 s = self.file.read(byte_size)
54 '''Push the current file offset and seek to "offset"'''
55 self.offsets.append(self.file.tell())
[all …]
/llvm-project/libcxx/test/std/input.output/iostream.format/print.fun/
H A Dno_file_description.pass.cpp21 // The FILE returned by fmemopen does not have file descriptor.
23 // function that requires a file descriptor, for example write.
25 // This tests all print functions which takes a FILE* as argument.
28 // void print(FILE* stream, format_string<Args...> fmt, Args&&... args);
31 // void println(FILE* stream, format_string<Args...> fmt, Args&&... args);
32 // void println(FILE* stream); // Since C++26
33 // void vprint_unicode(FILE* stream, string_view fmt, format_args args);
34 // void vprint_nonunicode(FILE* stream, string_view fmt, format_args args);
44 FILE* fil in test_print()
43 FILE* file = fmemopen(buffer.data(), buffer.size(), "wb"); test_print() local
57 FILE* file = fmemopen(buffer.data(), buffer.size(), "wb"); test_println() local
71 FILE* file = fmemopen(buffer.data(), buffer.size(), "wb"); test_println_blank_line() local
86 FILE* file = fmemopen(buffer.data(), buffer.size(), "wb"); test_vprint_unicode() local
102 FILE* file = fmemopen(buffer.data(), buffer.size(), "wb"); test_vprint_nonunicode() local
[all...]

12345678910>>...485