Home
last modified time | relevance | path

Searched full:opened (Results 1 – 25 of 181) sorted by relevance

12345678

/llvm-project/clang/test/Analysis/
H A Dstream-notes-missing-close.cpp30 // expected-note@-1{{Stream opened here}} in f()
31 } // expected-warning{{Opened stream never closed. Potential resource leak [unix.Stream]}} in f()
32 // expected-note@-1{{Opened stream never closed. Potential resource leak}}
46 FILE *f = fopen("input.txt", "w"); // expected-note{{Stream opened here}} in f()
55 return; // expected-warning{{Opened stream never closed. Potential resource leak [unix.Stream]}} in f()
56 // expected-note@-1{{Opened stream never closed. Potential resource leak}} in f()
73 FILE *f = fopen("input.txt", "w"); // expected-note{{Stream opened here}} in foo()
79 } // expected-warning{{Opened stream never closed. Potential resource leak [unix.Stream]}} in foo()
80 // expected-note@-1{{Opened stream never closed. Potential resource leak}}
99 FILE *f = fopen("input.txt", "w"); // expected-note{{Stream opened here}} in f()
[all …]
H A Dstream-note.c11 FILE *F1 = tmpfile(); // expected-note {{Stream opened here}} in check_note_at_correct_open()
28 // expected-warning@-1 {{Opened stream never closed. Potential resource leak}}
29 // expected-note@-2 {{Opened stream never closed. Potential resource leak}}
32 FILE *F = fopen("file", "r"); // expected-note {{Stream opened here}} in check_note_fopen()
39 // expected-warning@-1 {{Opened stream never closed. Potential resource leak}}
40 // expected-note@-2 {{Opened stream never closed. Potential resource leak}}
43 FILE *F = fopen("file", "r"); // expected-note {{Stream opened here}} in check_note_freopen()
56 // expected-warning@-1 {{Opened stream never closed. Potential resource leak}}
57 // expected-note@-2 {{Opened stream never closed. Potential resource leak}}
60 FILE *F = fdopen(fd, "r"); // expected-note {{Stream opened her in check_note_fdopen()
[all...]
H A Dsimple-stream-checks.c23 if (Data) // expected-warning {{Opened file is never closed; potential resource leak}} in checkLeak()
48 } // expected-warning {{Opened file is never closed; potential resource leak}} in leakOnEnfOfPath1()
52 return; // expected-warning {{Opened file is never closed; potential resource leak}} in leakOnEnfOfPath2()
77 return; // expected-warning {{Opened file is never closed; potential resource leak}} in SymbolDoesNotEscapeThoughStringAPIs()
84 return; // expected-warning {{Opened file is never closed; potential resource leak}} in testPassConstPointer()
96 } // expected-warning {{Opened file is never closed; potential resource leak}} in testOverwrite()
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/cert/
H A Ddcl58-cpp.cpp19 // CHECK-MESSAGES: :[[@LINE-2]]:11: note: 'posix' namespace opened here
27 // CHECK-MESSAGES: :[[@LINE-2]]:11: note: 'std' namespace opened here
30 // CHECK-MESSAGES: :[[@LINE-5]]:11: note: 'std' namespace opened here
42 // CHECK-MESSAGES: :[[@LINE-2]]:11: note: 'posix' namespace opened here
49 // CHECK-MESSAGES: :[[@LINE-2]]:11: note: 'posix' namespace opened here
59 // CHECK-MESSAGES: :[[@LINE-3]]:11: note: 'std' namespace opened here
83 // CHECK-MESSAGES: :[[@LINE-3]]:11: note: 'std' namespace opened here
88 // CHECK-MESSAGES: :[[@LINE-8]]:11: note: 'std' namespace opened here
92 // CHECK-MESSAGES: :[[@LINE-12]]:11: note: 'std' namespace opened here
100 // CHECK-MESSAGES: :[[@LINE-3]]:11: note: 'std' namespace opened here
[all …]
/llvm-project/.github/workflows/
H A Dissue-release-workflow.yml27 - opened
30 …COMMENT_BODY: ${{ github.event.action == 'opened' && github.event.issue.body || github.event.comme…
42 …contains(github.event.action == 'opened' && github.event.issue.body || github.event.comment.body, …
68 …--requested-by ${{ (github.event.action == 'opened' && github.event.issue.user.login) || github.ev…
H A Dnew-prs.yml12 - opened
22 # Only comment on PRs that have been opened for the first time, by someone
26 …# See https://docs.github.com/en/webhooks/webhook-events-and-payloads?actionType=opened#pull_reque…
30 (github.event.action == 'opened') &&
H A Dnew-issues.yml4 types: ['opened']
/llvm-project/llvm/include/llvm/Support/
H A DFileSystem.h752 /// The file should be opened in text mode on platforms like z/OS that make
760 /// The file should be opened in text mode and use a carriage linefeed '\r\n'.
765 /// The file should be opened in append mode.
811 /// This is an atomic operation. Either the file is created and opened, or the
819 /// @param ResultFD Set to the opened file's file descriptor.
820 /// @param ResultPath Set to the opened file's absolute path.
821 /// @param Flags Set to the opened file's flags.
822 /// @param Mode Set to the opened file's permissions.
949 /// @param ResultFD If the file could be opened successfully, its descriptor
956 /// @returns errc::success if \a Name has been opened, otherwis
[all...]
/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DSimpleStreamChecker.cpp12 // - If a file was opened with fopen, it must be closed with fclose before
33 enum Kind { Opened, Closed } K; enumerator
37 bool isOpened() const { return K == Opened; } in isOpened()
40 static StreamState getOpened() { return StreamState(Opened); } in getOpened()
191 LeakBugType, "Opened file is never closed; potential resource leak", in reportLeaks()
H A DStreamChecker.cpp105 Opened, /// Stream is opened. enumerator
112 case Opened: in getKindStr()
113 return "Opened"; in getKindStr()
123 /// Ignored in non-opened stream state but must be NoError.
142 assert((State == Opened || ErrorState.isNoError()) && in StreamState()
143 "ErrorState should be None in non-opened stream state."); in StreamState()
146 bool isOpened() const { return State == Opened; } in isOpened()
151 // In not opened state error state should always NoError, so comparison in operator ==()
161 return StreamState{L, Opened, E in getOpened()
[all...]
/llvm-project/lldb/include/lldb/Host/
H A DPseudoTerminal.h113 /// permissions. The opened primary file descriptor is stored in this object
134 /// calling this function. The opened secondary file descriptor is stored in
157 /// primary file descriptor has been opened.
169 /// secondary file descriptor has been opened.
/llvm-project/lldb/source/Host/posix/
H A DPipePosix.cpp113 return Status::FromErrorString("Pipe is already opened"); in CreateNew()
151 return Status::FromErrorString("Pipe is already opened"); in OpenAsReader()
173 return Status::FromErrorString("Pipe is already opened"); in OpenAsWriterWithTimeout()
187 "timeout exceeded - reader hasn't opened so far"); in OpenAsWriterWithTimeout()
194 // We may get ENXIO if a reader side of the pipe hasn't opened yet. in OpenAsWriterWithTimeout()
/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_file.h36 // Opened file descriptor. Defaults to stderr. It may be equal to
37 // kInvalidFd, in which case new file will be opened when necessary.
43 // PID of the process that opened fd. If a fork() occurs,
/llvm-project/libcxx/test/std/input.output/file.streams/fstreams/
H A Dnative_handle_assert_test_helpers.h23 TEST_LIBCPP_ASSERT_FAILURE(f.native_handle(), "File must be opened"); in test_native_handle_assertion()
25 TEST_LIBCPP_ASSERT_FAILURE(std::as_const(f).native_handle(), "File must be opened"); in test_native_handle_assertion()
/llvm-project/libc/src/__support/File/
H A Dfile.h59 // is opened in update mode (ie. if the file was opened with a '+' the mode
68 // Denotes a file opened in binary mode (which is specified by including
107 // The mode in which the file was opened.
/llvm-project/flang/test/Semantics/
H A Dio05.f9024 exist=v(1), named=v(2), opened=v(3), pending=v(4))
38 exist=lv, named=lv, opened=lv, pending=lv)
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/bugprone/
H A Dunsafe-functions.c80 // CHECK-MESSAGES-WITH-ANNEX-K: :[[@LINE-1]]:3: warning: function 'fopen' has no exclusive access to the opened file; 'fopen_s' should be used instead in f3()
81 // CHECK-MESSAGES-WITH-ANNEX-K-CERT-ONLY: :[[@LINE-2]]:3: warning: function 'fopen' has no exclusive access to the opened file; 'fopen_s' should be used instead in f3()
85 // CHECK-MESSAGES-WITH-ANNEX-K: :[[@LINE-1]]:3: warning: function 'freopen' has no exclusive access to the opened file; 'freopen_s' should be used instead in f3()
86 // CHECK-MESSAGES-WITH-ANNEX-K-CERT-ONLY: :[[@LINE-2]]:3: warning: function 'freopen' has no exclusive access to the opened file; 'freopen_s' should be used instead in f3()
/llvm-project/openmp/runtime/src/
H A Dkmp_i18n.cpp43 KMP_I18N_CLOSED, // Not yet opened or closed.
44 KMP_I18N_OPENED, // Opened successfully, ready to use.
50 /* Message catalog is opened at first usage, so we have to synchronize opening
119 // be re-opened. in __kmp_i18n_do_catopen()
297 // be re-opened. in __kmp_i18n_do_catopen()
314 // re-opened. in __kmp_i18n_do_catopen()
570 // Catalog is not opened or message is not found, return default in __kmp_i18n_catgets()
/llvm-project/clang/test/ClangScanDeps/Inputs/frameworks/Framework.framework/PrivateHeaders/
H A DPrivateHeader.h1 // This comment is stripped when file is opened, so size will change
/llvm-project/clang/test/ClangScanDeps/Inputs/frameworks/Framework.framework/Headers/
H A DFramework.h1 // This comment is stripped, so size is changed when file is opened
/llvm-project/llvm/test/MC/ELF/
H A Dcfi-scope-errors2.s1 # Test for D51695 ensuring there is no crash when two .cfi_startproc are opened
/llvm-project/lldb/tools/debugserver/source/
H A DPseudoTerminal.cpp144 // Successfully opened our primary pseudo terminal in Fork()
156 // Successfully opened secondary in Fork()
/llvm-project/clang-tools-extra/docs/clang-tidy/checks/android/
H A Dcloexec-socket.rst7 file descriptor leakage. Without this flag, an opened sensitive file would
H A Dcloexec-epoll-create1.rst7 avoid the file descriptor leakage. Without this flag, an opened sensitive file
H A Dcloexec-inotify-init1.rst7 file descriptor leakage. Without this flag, an opened sensitive file would

12345678