Home
last modified time | relevance | path

Searched refs:fopen (Results 1 – 25 of 164) sorted by relevance

1234567

/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/android/
H A Dcloexec-fopen.cpp11 fopen("filename", "r"); in f()
15 fopen("filename", FILE_OPEN_RO); in f()
19 fopen("filename", "er"); in f()
21 fopen("filename", "re"); in f()
23 fopen("filename", "e"); in f()
29 fopen("filename", str); in f()
32 fopen("filename", str); in f()
35 fopen("filename", arr); in f()
38 fopen("filename", arr2); in f()
45 fopen("filename", "e"); in g()
[all …]
/llvm-project-15.0.7/clang/test/Analysis/
H A Dsimple-stream-checks.c6 FILE *F = fopen("myfile.txt", "w"); in checkDoubleFClose()
18 FILE *F = fopen("myfile.txt", "w"); in checkLeak()
30 FILE *F = fopen("myfile.txt", "w"); in checkLeakFollowedByAssert()
40 FILE *F = fopen("myfile.txt", "w"); in CloseOnlyOnValidFileHandle()
47 FILE *F = fopen("myfile.txt", "w"); in leakOnEnfOfPath1()
51 FILE *F = fopen("myfile.txt", "w"); in leakOnEnfOfPath2()
56 FILE *F = fopen("myfile.txt", "w"); in leakOnEnfOfPath3()
62 FILE *F = fopen("myfile.txt", "w"); in SymbolEscapedThroughFunctionCall()
69 FILE *F = fopen("myfile.txt", "w"); in SymbolEscapedThroughAssignmentToGlobal()
75 FILE *F = fopen("myfile.txt", "w"); in SymbolDoesNotEscapeThoughStringAPIs()
[all …]
H A Dstream-note.c26 FILE *F = fopen("file", "r"); // expected-note {{Stream opened here}} in check_note_fopen()
36 FILE *F = fopen("file", "r"); // expected-note {{Stream opened here}} in check_note_freopen()
51 FILE *F1 = fopen("foo1.c", "r"); // expected-note {{Stream opened here}} in check_note_leak_2()
58 FILE *F2 = fopen("foo2.c", "r"); // expected-note {{Stream opened here}} in check_note_leak_2()
83 …F = fopen("foo1.c", "r"); // expected-note {{Value assigned to 'F'}} expected-note {{Assuming poin… in check_track_null()
95 F = fopen("foo1.c", "r"); in check_eof_notes_feof_after_feof()
114 F = fopen("foo1.c", "r"); in check_eof_notes_feof_after_no_feof()
137 F = fopen("foo1.c", "r"); in check_eof_notes_feof_or_no_error()
H A Dstream.c74 FILE *p = fopen("foo", "r"); in f_open()
81 FILE *p = fopen("foo", "r"); in f_seek()
90 FILE *p = fopen("foo", "r"); in f_double_close()
98 FILE *p1 = fopen("foo", "r"); in f_double_close_alias()
107 FILE *p = fopen("foo", "r"); in f_use_after_close()
115 FILE *p = fopen("foo", "r"); in f_open_after_close()
119 p = fopen("foo", "r"); in f_open_after_close()
126 FILE *p = fopen("foo", "r"); in f_reopen_after_close()
138 FILE *p = fopen("foo.c", "r"); in f_leak()
147 FILE *p = fopen("foo.c", "r"); in f_null_checked()
[all …]
H A Dstream-error.c15 FILE *F = fopen("file", "r"); in error_fopen()
24 FILE *F = fopen("file", "r"); in error_freopen()
36 FILE *F = fopen("file", "r"); in stream_error_feof()
49 FILE *F = fopen("file", "r"); in stream_error_ferror()
118 FILE *F = fopen("file", "r"); in error_fread_fwrite_zerosize()
140 FILE *F = fopen("file", "r"); in error_fseek()
171 FILE *F = fopen("file", "r+"); in error_indeterminate()
189 FILE *F = fopen("file", "r+"); in error_indeterminate_clearerr()
210 FILE *F = fopen("file", "r+"); in error_indeterminate_feof1()
224 FILE *F = fopen("file", "r+"); in error_indeterminate_feof2()
H A Dstream.cpp4 extern FILE *fopen(const char *path, const char *mode);
11 void *fopen(X x, const char *mode) { in fopen() function
17 void *p = fopen(X1, "oo"); in f1()
21 FILE *f = fopen("file", "r"); in f2()
H A Dcxx-method-names.cpp9 void fopen(); // stream checker
19 E.fopen(); in test()
H A Dtaint-checker-callback-order-without-definition.c10 FILE *fopen(const char *fname, const char *mode);
15 FILE *fp = fopen(fname, "r"); // Introduce taint. in top()
H A Dtaint-checker-callback-order-has-definition.c10 FILE *fopen(const char *fname, const char *mode);
20 FILE *fp = fopen(fname, "r"); in top()
/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines/
H A Downing-memory-legacy-functions.cpp23 FILE *fopen(const char *filename, const char *mode);
33 using ::fopen;
54 FILE *fileFactory1() { return ::fopen("new_file.txt", "w"); } in fileFactory1()
102 FILE *File1 = std::fopen("test_name.txt", "w+"); in test_resource_creators()
104 FILE *File2 = ::fopen("test_name.txt", "w+"); in test_resource_creators()
110 File4 = ::fopen("test_name.txt", "w+"); in test_resource_creators()
114 File5 = ::fopen("test_name.txt", "w+"); // Ok in test_resource_creators()
125 nonOwningCall(::fopen("test_name.txt", "r")); in test_resource_creators()
127 nonOwningCall(std::fopen("test_name.txt", "r")); in test_resource_creators()
130 consumesResource(::fopen("test_name.txt", "r")); // Ok in test_resource_creators()
[all …]
/llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/android/
H A Dcloexec-fopen.rst1 .. title:: clang-tidy - android-cloexec-fopen
3 android-cloexec-fopen
6 ``fopen()`` should include ``e`` in their mode string; so ``re`` would be
13 fopen("fn", "r");
17 fopen("fn", "re");
/llvm-project-15.0.7/polly/lib/External/ppcg/
H A Dcuda_common.c29 info->host_c = fopen(name, "w"); in cuda_open_files()
32 info->kernel_c = fopen(name, "w"); in cuda_open_files()
35 info->kernel_h = fopen(name, "w"); in cuda_open_files()
/llvm-project-15.0.7/compiler-rt/test/profile/
H A Dinstrprof-set-file-object-merging.c18 FILE *F = fopen(argv[1], "r+b"); in main()
21 F = fopen(argv[1], "w+b"); in main()
/llvm-project-15.0.7/compiler-rt/test/asan/TestCases/Posix/
H A Dfread_fwrite.cpp9 FILE *f = fopen("/dev/zero", "r"); in test_fread()
17 FILE *f = fopen("/dev/null", "w"); in test_fwrite()
H A Dfgets_fputs.cpp13 FILE *fp = fopen(testfile, "r"); in test_fgets()
22 FILE *fp = fopen("/dev/null", "w"); in test_fputs()
/llvm-project-15.0.7/compiler-rt/test/msan/
H A Dfread_fwrite.cpp9 FILE *f = fopen("/dev/zero", "r"); in test_fread()
19 FILE *f = fopen("/dev/null", "w"); in test_fwrite()
H A Dfgets_fputs.cpp11 FILE *fp = fopen("/dev/zero", "r"); in test_fgets()
25 FILE *fp = fopen("/dev/null", "w"); in test_fputs()
/llvm-project-15.0.7/libc/test/src/stdio/
H A Dfileop_test.cpp25 ::FILE *file = __llvm_libc::fopen(FILENAME, "w"); in TEST()
43 file = __llvm_libc::fopen(FILENAME, "r"); in TEST()
77 ::FILE *file = __llvm_libc::fopen(FILENAME, "w+"); in TEST()
H A DCMakeLists.txt17 libc.src.stdio.fopen
37 libc.src.stdio.fopen
96 libc.src.stdio.fopen
H A Dfprintf_test.cpp23 ::FILE *file = __llvm_libc::fopen(FILENAME, "w"); in TEST()
43 file = __llvm_libc::fopen(FILENAME, "r"); in TEST()
/llvm-project-15.0.7/compiler-rt/test/tsan/Linux/
H A Duser_fopen.cpp9 extern "C" FILE *fopen(const char *file, const char *mode) { in fopen() function
24 FILE *f = fopen("/dev/zero", "r"); in main()
/llvm-project-15.0.7/llvm/test/CodeGen/PowerPC/
H A D2009-01-16-DeclareISelBug.ll8 …%0 = call i8* @fopen(i8* getelementptr ([13 x i8], [13 x i8]* @"\01LC", i32 0, i32 0), i8* null) n…
12 declare i8* @fopen(i8*, i8*)
/llvm-project-15.0.7/compiler-rt/test/msan/Linux/
H A Dfile.cpp10 FILE *f = fopen(argv[0], "r"); in main()
22 f = fopen(tmp_file, "w+"); in main()
/llvm-project-15.0.7/llvm/test/Transforms/InstCombine/
H A Dstdio-custom-dl.ll14 ; CHECK-NEXT: [[TMP1:%.*]] = call %struct._IO_FILE* @fopen(i8* getelementptr inbounds ([5 x i8],…
16 …%call = call %struct._IO_FILE* @fopen(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0…
21 declare %struct._IO_FILE* @fopen(i8*, i8*)
/llvm-project-15.0.7/compiler-rt/test/fuzzer/
H A DOutOfProcessFuzzTarget.cpp76 if (FILE *f = fopen(IN->c_str(), "w")) { in LLVMFuzzerTestOneInput()
81 if (FILE *f = fopen(COV->c_str(), "r")) { in LLVMFuzzerTestOneInput()

1234567