/llvm-project/clang/test/Analysis/ |
H A D | stream-notes-missing-close.cpp | 30 // 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 D | stream-note.c | 11 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 D | simple-stream-checks.c | 23 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 D | dcl58-cpp.cpp | 19 // 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 D | issue-release-workflow.yml | 27 - 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 D | new-prs.yml | 12 - 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 D | new-issues.yml | 4 types: ['opened']
|
/llvm-project/llvm/include/llvm/Support/ |
H A D | FileSystem.h | 752 /// 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 D | SimpleStreamChecker.cpp | 12 // - 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 D | StreamChecker.cpp | 105 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 D | PseudoTerminal.h | 113 /// 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 D | PipePosix.cpp | 113 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 D | sanitizer_file.h | 36 // 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 D | native_handle_assert_test_helpers.h | 23 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 D | file.h | 59 // 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 D | io05.f90 | 24 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 D | unsafe-functions.c | 80 // 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 D | kmp_i18n.cpp | 43 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 D | PrivateHeader.h | 1 // This comment is stripped when file is opened, so size will change
|
/llvm-project/clang/test/ClangScanDeps/Inputs/frameworks/Framework.framework/Headers/ |
H A D | Framework.h | 1 // This comment is stripped, so size is changed when file is opened
|
/llvm-project/llvm/test/MC/ELF/ |
H A D | cfi-scope-errors2.s | 1 # Test for D51695 ensuring there is no crash when two .cfi_startproc are opened
|
/llvm-project/lldb/tools/debugserver/source/ |
H A D | PseudoTerminal.cpp | 144 // 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 D | cloexec-socket.rst | 7 file descriptor leakage. Without this flag, an opened sensitive file would
|
H A D | cloexec-epoll-create1.rst | 7 avoid the file descriptor leakage. Without this flag, an opened sensitive file
|
H A D | cloexec-inotify-init1.rst | 7 file descriptor leakage. Without this flag, an opened sensitive file would
|