Home
last modified time | relevance | path

Searched refs:remove (Results 1 – 25 of 1164) sorted by relevance

12345678910>>...47

/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/bugprone/
H A Dunused-return-value.cpp89 std::remove(nullptr, nullptr, 1); in warning()
123 std::remove(nullptr, nullptr, 1); in warning()
127 std::remove(nullptr, nullptr, 1); in warning()
131 std::remove(nullptr, nullptr, 1); in warning()
136 std::remove(nullptr, nullptr, 1); in warning()
141 std::remove(nullptr, nullptr, 1); in warning()
147 std::remove(nullptr, nullptr, 1); in warning()
162 std::remove(nullptr, nullptr, 1); in warning()
168 std::remove(nullptr, nullptr, 1); in warning()
173 std::remove(nullptr, nullptr, 1); in warning()
[all …]
H A Dinaccurate-erase.cpp34 FwIt remove(FwIt begin, FwIt end, const T &val);
53 t.erase(std::remove(t.begin(), t.end(), 10)); in g()
57 v.erase(remove(v.begin(), v.end(), 10)); in g()
62 #define ERASE(x, y) x.erase(remove(x.begin(), x.end(), y))
68 v.erase(remove(v.begin(), v.end(), 10)); in main()
71 v.erase(remove(v.begin(), v.end(), 20), v.end()); in main()
74 p->erase(remove(p->begin(), p->end(), 11)); in main()
79 v2.erase(remove(v2.begin(), v2.end(), 12)); in main()
85 v.erase(remove(v.begin(), it, 10)); in main()
/llvm-project-15.0.7/libcxx/test/std/containers/sequences/list/list.ops/
H A Dremove.pass.cpp43 assert(c.remove(3) == 1); in main()
44 ASSERT_SAME_TYPE(L::size_type, decltype(c.remove(3))); in main()
46 ASSERT_SAME_TYPE(void, decltype(c.remove(3))); in main()
47 c.remove(3); in main()
56 c.remove(c.front()); in main()
66 assert(c.remove(c.front()) == 3); in main()
68 c.remove(c.front()); in main()
84 assert(c.remove(3) == 1); in main()
86 c.remove(3); in main()
96 assert(c.remove(3) == 1); in main()
[all …]
/llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.remove/
H A Dremove.pass.cpp30 ASSERT_SAME_TYPE(decltype(fs::remove(p)), bool); in TEST_CASE()
31 ASSERT_SAME_TYPE(decltype(fs::remove(p, ec)), bool); in TEST_CASE()
33 ASSERT_NOT_NOEXCEPT(fs::remove(p)); in TEST_CASE()
34 ASSERT_NOEXCEPT(fs::remove(p, ec)); in TEST_CASE()
43 fs::remove(f); in TEST_CASE()
74 TEST_CHECK(!fs::remove(p, ec)); in TEST_CASE()
88 TEST_CHECK(!fs::remove(p, ec)); in TEST_CASE()
108 TEST_CHECK(remove(p, ec)); in TEST_CASE()
/llvm-project-15.0.7/llvm/test/tools/llvm-objcopy/ELF/
H A Dwildcard-syntax.test7 # RUN: llvm-objcopy --remove-section='.f*' %t.o %t.glob.o
12 # RUN: llvm-objcopy --remove-section='*a' %t.o %t.full.o
17 # RUN: llvm-objcopy --remove-section='.b?r' %t.o %t.question.o
23 # RUN: llvm-objcopy --remove-section='.???' --remove-section='!.f*' \
27 # RUN: llvm-objcopy --remove-section='!.f*' --remove-section='.???' \
31 # RUN: llvm-objcopy --remove-section='.???' --remove-section='!.f*' \
32 # RUN: --remove-section='.???' %t.o %t.negmatch3.o
42 # RUN: llvm-objcopy --remove-section='.[^x]oo' %t.o %t.negrange.1.o
45 # RUN: llvm-objcopy --remove-section='.[!x]oo' %t.o %t.negrange.2.o
67 # RUN: llvm-objcopy --remove-section='\*' %t.special.o %t.escape.1.o
[all …]
/llvm-project-15.0.7/llvm/test/MC/ELF/
H A Dsymver-remove.s5 # ASM: .symver nondef, nondef@v1, remove
7 # ASM: .symver def0, def0@@v2, remove
11 # ASM: .symver def2, def2@v1, remove
23 .symver nondef, nondef@v1, remove
27 .symver def0, def0@@v2, remove
28 .symver def1, def1@@@v2, remove
34 .symver def2, def2@v1, remove
/llvm-project-15.0.7/libcxx/test/std/algorithms/alg.modifying.operations/alg.remove/
H A Dranges.remove.pass.cpp33 concept HasRemoveIt = requires(Iter first, Sent last) { std::ranges::remove(first, last, 0); };
43 concept HasRemoveR = requires(Range range) { std::ranges::remove(range, 0); };
65 std::ranges::remove(Iter(input.data()), Sent(Iter(input.data() + input.size())), d.val); in test()
76 … std::same_as<std::ranges::subrange<Iter>> decltype(auto) ret = std::ranges::remove(range, d.val); in test()
124 std::ranges::remove(std::array{1, 2, 3, 4}, 1); in test()
145 … auto ret = std::ranges::remove(std::begin(a), std::end(a), CompCounter{&comp_count}, proj); in test()
159 auto ret = std::ranges::remove(a, CompCounter{&comp_count}, proj); in test()
173 auto ret = std::ranges::remove(std::begin(a), std::end(a), S{}, &S::identity); in test()
179 auto ret = std::ranges::remove(a, S{}, &S::identity); in test()
189 auto ret = std::ranges::remove(a, a + 4, StrictComparable<int>{2}); in test()
[all …]
/llvm-project-15.0.7/flang/lib/Decimal/
H A Dbig-radix-floating-point.h173 int remove{0}; in RemoveLeastOrderZeroDigits()
175 while (remove < digits_ && digit_[remove] == 0) { in RemoveLeastOrderZeroDigits()
176 ++remove; in RemoveLeastOrderZeroDigits()
178 if (remove >= digits_) { in RemoveLeastOrderZeroDigits()
180 } else if (remove > 0) { in RemoveLeastOrderZeroDigits()
184 for (int j{0}; j + remove < digits_ && (j + remove < maxDigits); ++j) { in RemoveLeastOrderZeroDigits()
186 for (int j{0}; j + remove < digits_; ++j) { in RemoveLeastOrderZeroDigits()
188 digit_[j] = digit_[j + remove]; in RemoveLeastOrderZeroDigits()
190 digits_ -= remove; in RemoveLeastOrderZeroDigits()
193 return remove; in RemoveLeastOrderZeroDigits()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DStringviewNullptrCheck.cpp89 remove(node("null_arg_expr")), construction_warning); in StringviewNullptrCheckImpl()
98 remove(node("null_arg_expr")), construction_warning); in StringviewNullptrCheckImpl()
128 remove(node("null_arg_expr")), construction_warning); in StringviewNullptrCheckImpl()
148 remove(node("null_arg_expr")), construction_warning); in StringviewNullptrCheckImpl()
165 remove(node("null_arg_expr")), construction_warning); in StringviewNullptrCheckImpl()
173 remove(node("null_arg_expr")), construction_warning); in StringviewNullptrCheckImpl()
181 remove(node("null_arg_expr")), construction_warning); in StringviewNullptrCheckImpl()
197 remove(node("null_arg_expr")), construction_warning); in StringviewNullptrCheckImpl()
204 remove(node("null_arg_expr")), construction_warning); in StringviewNullptrCheckImpl()
211 remove(node("null_arg_expr")), construction_warning); in StringviewNullptrCheckImpl()
/llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/bugprone/
H A Dinaccurate-erase.rst9 Algorithms like ``remove()`` do not actually remove any element from the
21 xs.erase(std::remove(xs.begin(), xs.end(), 10));
23 Call the two-argument overload of ``erase()`` to remove the subrange:
29 xs.erase(std::remove(xs.begin(), xs.end(), 10), xs.end());
/llvm-project-15.0.7/llvm/test/Transforms/ForcedFunctionAttrs/
H A Dforced.ll4 ; RUN: opt < %s -S -passes=forceattrs -force-remove-attribute goo:cold | FileCheck %s --check-prefi…
5 ; RUN: opt < %s -S -passes=forceattrs -force-remove-attribute goo:noinline | FileCheck %s --check-p…
6 ; RUN: opt < %s -S -passes=forceattrs -force-attribute goo:cold -force-remove-attribute goo:noinlin…
7 ; RUN: opt < %s -S -passes=forceattrs -force-attribute goo:noinline -force-remove-attribute goo:noi…
21 ; Add `cold` and remove `noinline` leaving `cold` only.
24 ; `force-remove` takes precedence over `force`.
/llvm-project-15.0.7/llvm/lib/Support/
H A DLockFileManager.cpp62 sys::fs::remove(LockFileName); in readLockFile()
79 sys::fs::remove(LockFileName); in readLockFile()
152 sys::fs::remove(Filename); in ~RemoveUniqueLockFileOnSignal()
208 sys::fs::remove(UniqueLockFileName); in LockFileManager()
238 sys::fs::remove(UniqueLockFileName); in LockFileManager()
250 if ((EC = sys::fs::remove(LockFileName))) { in LockFileManager()
286 sys::fs::remove(LockFileName); in ~LockFileManager()
287 sys::fs::remove(UniqueLockFileName); in ~LockFileManager()
350 return sys::fs::remove(LockFileName); in unsafeRemoveLockFile()
/llvm-project-15.0.7/lldb/test/Shell/ObjectFile/ELF/
H A Dminidebuginfo-set-and-hit-breakpoint.test37 # RUN: llvm-objcopy -S --remove-section .gdb_index --remove-section .comment --keep-symbols=%t.keep…
44 # RUN: llvm-objcopy --remove-section=.rela.plt --remove-section=.rela.dyn --remove-section=.rel.plt…
45 # RUN: --remove-section=.gnu.version --remove-section=.gnu.hash --remove-section=.hash --remove-s…
/llvm-project-15.0.7/llvm/unittests/Support/
H A DFileOutputBufferTest.cpp61 ASSERT_NO_ERROR(fs::remove(File1.str())); in TEST()
78 ASSERT_NO_ERROR(fs::remove(File2.str())); in TEST()
99 ASSERT_NO_ERROR(fs::remove(File3.str())); in TEST()
119 ASSERT_NO_ERROR(fs::remove(File4.str())); in TEST()
142 ASSERT_NO_ERROR(fs::remove(File5.str())); in TEST()
156 ASSERT_NO_ERROR(fs::remove(File6.str())); in TEST()
159 ASSERT_NO_ERROR(fs::remove(TestDirectory.str())); in TEST()
/llvm-project-15.0.7/clang/lib/AST/
H A DASTImporterLookupTable.cpp96 void ASTImporterLookupTable::remove(DeclContext *DC, NamedDecl *ND) { in remove() function in clang::ASTImporterLookupTable
99 bool EraseResult = Decls.remove(ND); in remove()
121 void ASTImporterLookupTable::remove(NamedDecl *ND) { in remove() function in clang::ASTImporterLookupTable
124 remove(DC, ND); in remove()
127 remove(ReDC, ND); in remove()
139 remove(OldDC, ND); in update()
144 LookupTable[OldDC][ND->getDeclName()].remove(ND); in updateForced()
/llvm-project-15.0.7/llvm/test/tools/llvm-objcopy/COFF/
H A Dremove-section.test6 # RUN: llvm-objcopy -R .bss %t.in.o %t.remove-bss.o
7 # RUN: llvm-objdump --section-headers %t.remove-bss.o | FileCheck %s --check-prefix=SECTIONS-REMOVE…
8 # RUN: llvm-objdump -t %t.remove-bss.o | FileCheck %s --check-prefix=SYMBOLS-REMOVE-BSS
10 # RUN: llvm-objcopy --remove-section .bss %t.in.o %t.cmp.o
11 # RUN: cmp %t.remove-bss.o %t.cmp.o
13 # RUN: llvm-objcopy -R .text %t.in.o %t.remove-text.o
14 # RUN: llvm-objdump --section-headers %t.remove-text.o | FileCheck %s --check-prefix=SECTIONS-REMOV…
15 # RUN: llvm-objdump -t %t.remove-text.o | FileCheck %s --check-prefix=SYMBOLS-REMOVE-TEXT
17 # RUN: not llvm-objcopy -R .comdat %t.in.o %t.remove-comdat.o 2>&1 | FileCheck %s --check-prefix=ER…
19 # RUN: llvm-objcopy -R .text -R .comdat %t.in.o %t.remove-text-comdat.o
[all …]
/llvm-project-15.0.7/libcxx/test/std/input.output/file.streams/fstreams/ofstream.assign/
H A Dnonmember_swap.pass.cpp35 std::remove(names.first.c_str()); in get_temp_file_names()
63 std::remove(temp1.c_str()); in main()
72 std::remove(temp2.c_str()); in main()
92 std::remove(temp1.c_str()); in main()
101 std::remove(temp2.c_str()); in main()
H A Dmember_swap.pass.cpp34 std::remove(names.first.c_str()); in get_temp_file_names()
62 std::remove(temp1.c_str()); in main()
71 std::remove(temp2.c_str()); in main()
91 std::remove(temp1.c_str()); in main()
100 std::remove(temp2.c_str()); in main()
/llvm-project-15.0.7/compiler-rt/test/profile/
H A Dgcov-dump-and-remove.c14 extern int remove(const char *); // CHECK: -: [[#@LINE]]:extern int remove
18 if (remove("gcov-dump-and-remove.gcda") != 0) // CHECK-NEXT: 1: [[#@LINE]]: in main()
24 if (remove("gcov-dump-and-remove.gcda") != 0) // CHECK-NEXT: 1: [[#@LINE]]: in main()
/llvm-project-15.0.7/libcxx/test/std/input.output/file.streams/fstreams/fstream.assign/
H A Dnonmember_swap.pass.cpp36 std::remove(names.first.c_str()); in get_temp_file_names()
68 std::remove(temp1.c_str()); in main()
69 std::remove(temp2.c_str()); in main()
93 std::remove(temp1.c_str()); in main()
94 std::remove(temp2.c_str()); in main()
H A Dmember_swap.pass.cpp34 std::remove(names.first.c_str()); in get_temp_file_names()
66 std::remove(temp1.c_str()); in main()
67 std::remove(temp2.c_str()); in main()
91 std::remove(temp1.c_str()); in main()
92 std::remove(temp2.c_str()); in main()
/llvm-project-15.0.7/libcxx/test/std/input.output/file.streams/fstreams/filebuf.assign/
H A Dnonmember_swap.pass.cpp40 std::remove(temp.c_str()); in main()
57 std::remove(temp.c_str()); in main()
82 std::remove(tmpA.c_str()); in main()
83 std::remove(tmpB.c_str()); in main()
101 std::remove(temp.c_str()); in main()
/llvm-project-15.0.7/lldb/test/API/commands/process/launch/
H A DTestProcessLaunch.py43 os.remove(out_file)
48 os.remove(err_file)
131 os.remove(out_file_path)
132 os.remove(err_file_path)
163 os.remove(out_file_path)
164 os.remove(err_file_path)
/llvm-project-15.0.7/llvm/utils/gn/build/
H A Dsync_source_lists_from_cmake.py24 def patch_gn_file(gn_file, add, remove): argument
41 for r in remove:
113 remove = data.get('remove', [])
115 patch_gn_file(gn_file, add, remove)
121 if remove:
122 print(' remove:\n ' + '\n '.join(remove))
/llvm-project-15.0.7/llvm/docs/CommandGuide/
H A Dllvm-strip.rst15 If no other stripping or remove options are specified, :option:`--strip-all`
42 ELF objects will not be discarded. Additionally, remove all debug sections.
76 .. option:: --remove-section <section>, -R
79 to remove multiple sections simultaneously.
88 For ELF objects, remove from the output all symbols and non-alloc sections not
92 For COFF objects, remove all symbols, debug sections, and relocations from the
102 multiple times to remove multiple symbols.
107 relocations. Also remove all debug sections.
150 Allow :program:`llvm-strip` to remove sections even if it would leave invalid
163 When removing sections from the output, do not remove sections named
[all …]

12345678910>>...47