Home
last modified time | relevance | path

Searched refs:sort (Results 1 – 25 of 810) sorted by relevance

12345678910>>...33

/llvm-project-15.0.7/clang/unittests/Format/
H A DSortIncludesTest.cpp60 sort("#include \"a.h\"\n" in TEST_F()
67 sort("// comment\n" in TEST_F()
80 sort("#include \"a.h\"\n" in TEST_F()
218 sort("#include <b>\n" in TEST_F()
258 sort("#include <b>\n" in TEST_F()
276 sort("#include <b>\n" in TEST_F()
532 sort("#include <a>\n" in TEST_F()
671 sort(UnsortedCode)); in TEST_F()
727 sort(UnsortedCode)); in TEST_F()
744 sort(UnsortedCode)); in TEST_F()
[all …]
H A DSortImportsTestJava.cpp27 std::string sort(StringRef Code) { return sort(Code, GetCodeRange(Code)); } in sort() function in clang::format::__anon754d73d60111::SortImportsTestJava
43 sort("import org.a;\n" in TEST_F()
126 sort("import org.b;\n" in TEST_F()
143 sort("import org.b;\n" in TEST_F()
157 sort("import org.aa;\n" in TEST_F()
180 sort("import org.a;\n" in TEST_F()
193 sort("import org.a;\n" in TEST_F()
202 sort("import org.b;\n" in TEST_F()
211 sort("// comment\n" in TEST_F()
317 sort("import org.b;\n" in TEST_F()
[all …]
/llvm-project-15.0.7/llvm/test/tools/llvm-nm/
H A Dreverse-sort.test1 ## Show that the --reverse-sort option reverses the selected sort order.
3 # RUN: llvm-nm %t.o --reverse-sort | FileCheck %s --check-prefix=SORTED
4 # RUN: llvm-nm %t.o --reverse-sort --numeric-sort | FileCheck %s --check-prefix=SORTED
5 # RUN: llvm-nm %t.o --reverse-sort --size-sort | FileCheck %s --check-prefix=SORTED
6 # RUN: llvm-nm %t.o --reverse-sort --no-sort | FileCheck %s --check-prefix=UNSORTED
H A Dno-sort.test3 # RUN: llvm-nm --no-sort %t.o | FileCheck %s --check-prefix=NOSORT
29 # The default is to sort by symbol name.
35 # When --no-sort is specified then the symbols are output in
H A Dnumeric-sort.test3 # RUN: llvm-nm --numeric-sort %t.o | FileCheck %s --check-prefix=NUMERIC
34 # The default is to sort by symbol name.
40 # --numeric-sort sorts the symbols by value.
H A Delf-extern-only.test4 # RUN: llvm-nm %t.o --extern-only --no-sort | FileCheck %s
5 # RUN: llvm-nm %t.o -g --no-sort | FileCheck %s
7 ## Using --no-sort ensures that the symbols appear in the symbol table order
/llvm-project-15.0.7/libcxx/test/std/algorithms/alg.sorting/alg.sort/sort/
H A Dranges.sort.pass.cpp41 concept HasSortIt = requires(Iter first, Sent last, Comp comp) { std::ranges::sort(first, last, com…
52 concept HasSortR = requires(Range range, Comp comp) { std::ranges::sort(range, comp); };
69 std::same_as<Iter> decltype(auto) last = std::ranges::sort(b, e); in test_one()
80 std::same_as<Iter> decltype(auto) last = std::ranges::sort(range); in test_one()
128 auto last = std::ranges::sort(in.begin(), in.end(), std::ranges::greater{}); in test()
135 auto last = std::ranges::sort(in, std::ranges::greater{}); in test()
149 auto last = std::ranges::sort(in.begin(), in.end(), {}, &A::a); in test()
156 auto last = std::ranges::sort(in, {}, &A::a); in test()
175 auto last = std::ranges::sort(in.begin(), in.end(), &S::comparator, &S::projection); in test()
182 auto last = std::ranges::sort(in, &S::comparator, &S::projection); in test()
[all …]
H A Dsort.pass.cpp39 std::sort(save.begin(), save.end()); in test_sort_helper()
130 std::sort(iter, iter+N); in test_larger_sorts()
135 std::sort(iter, iter+N); in test_larger_sorts()
139 std::sort(iter, iter+N); in test_larger_sorts()
144 std::sort(iter, iter+N); in test_larger_sorts()
149 std::sort(iter, iter+N); in test_larger_sorts()
155 std::sort(iter, iter+N); in test_larger_sorts()
184 std::sort(pv, pv + array_size); in test_pointer_sort()
242 std::sort(ascVals.begin(), ascVals.end(), comp); in test_adversarial_quicksort()
243 std::sort(V.begin(), V.end()); in test_adversarial_quicksort()
[all …]
/llvm-project-15.0.7/lld/test/ELF/linkerscript/
H A Dsort.s4 # RUN: %p/Inputs/sort.s -o %t2.o
69 ## SORT_NONE itself does not sort anything.
74 ## Check --sort-section alignment option.
76 # RUN: ld.lld --sort-section alignment -o %t8 --script %t7.script %t1.o %t2.o
79 ## Check --sort-section= form.
80 # RUN: ld.lld --sort-section=alignment -o %t8_1 --script %t7.script %t1.o %t2.o
83 ## Check --sort-section name option.
85 # RUN: ld.lld --sort-section name -o %t9 --script %t8.script %t1.o %t2.o
88 ## SORT_NONE disables the --sort-section.
90 # RUN: ld.lld --sort-section name -o %t10 --script %t9.script %t2.o %t1.o
[all …]
/llvm-project-15.0.7/clang/test/CXX/temp/temp.spec/temp.expl.spec/
H A Dp6.cpp44 template<class T> void sort(Array<T>& v) { /* ... */ } in sort() function
50 sort(v); // expected-note{{required}} in f()
55 template<> void sort<String>(Array<String>& v); // // expected-error{{after instantiation}}
56 template<> void sort<>(Array<char*>& v); // OK: sort<char*> not yet used
H A Dp11.cpp5 template<class T> void sort(Array<T>& v);
9 template<> void sort(Array<int>&);
/llvm-project-15.0.7/libcxx/test/libcxx/algorithms/
H A Dsort_stability.pass.cpp49 std::sort(v.begin(), v.end()); in test_randomization()
68 std::sort(v.begin(), v.end()); in test_same()
69 std::sort(snapshot_v.begin(), snapshot_v.end()); in test_same()
70 std::sort(snapshot_custom_v.begin(), snapshot_custom_v.end(), in test_same()
87 std::sort(v.begin(), v.end()); in test_constexpr()
/llvm-project-15.0.7/compiler-rt/lib/dfsan/scripts/
H A Dcheck_custom_wrappers.sh24 | sed "s/^fun:\(.*\)=custom.*/\1/" | sort > $DIFF_A
27 | sed "s/.*__dfsw_\(.*\)(.*/\1/" | sort | uniq > $DIFF_B
38 | sed "s/.*__dfsw_\([^(]*\).*/\1/" | sort | uniq > $DIFF_A
40 | sed "s/.*test_\(.*\)();/\1/" | sort > $DIFF_B
/llvm-project-15.0.7/clang/test/CXX/temp/temp.spec/temp.explicit/
H A Dp6.cpp5 template<class T> void sort(Array<T>& v) { } in sort() function
8 template void sort<>(Array<int>&);
10 template void sort(Array<long>&);
/llvm-project-15.0.7/llvm/test/tools/yaml2obj/
H A Dmacro.yaml27 # RUN: yaml2obj --docnum=2 -D a0='[[a1]]' -D a1='[[a0]]' %s | llvm-nm --just-symbol-name --no-sort
42 # RUN: yaml2obj --docnum=3 %s | llvm-nm --just-symbol-name --no-sort - > %t.nosubst
46 # RUN: yaml2obj --docnum=3 -D a=b -D b=c %s | llvm-nm --just-symbol-name --no-sort - > %t.subst
65 # RUN: llvm-nm --no-sort %t4.1 | FileCheck %s --check-prefix=DEFAULT
82 # RUN: llvm-nm --no-sort %t4.2 | FileCheck %s --check-prefix=OVERRIDE-DEFAULT1
88 # RUN: llvm-nm --no-sort %t4.3 | FileCheck %s --check-prefix=OVERRIDE-DEFAULT2
/llvm-project-15.0.7/llvm/test/tools/llvm-readobj/MachO/
H A Dstabs-sorted.yaml5 # RUN: not llvm-readobj --syms --sort-symbols=foo %t 2>&1 | FileCheck %s --check-prefix ERR-KEY
6 # RUN: not llvm-readobj --syms --sort-symbols=,, %t 2>&1 | FileCheck %s --check-prefix ERR-KEY-EMPT
8 # RUN: llvm-readobj --syms --sort-symbols=type,name %t | FileCheck %s --check-prefix TYPE-NAME
9 # RUN: llvm-readobj --syms --sort-symbols=name,type %t | FileCheck %s --check-prefix NAME-TYPE
10 # RUN: llvm-readobj --syms --sort-symbols=type %t | FileCheck %s --check-prefix TYPE-ONLY
12 # ERR-KEY: error: --sort-symbols value should be 'name' or 'type', but was 'foo'
13 # ERR-KEY-EMPT: error: --sort-symbols value should be 'name' or 'type', but was ''
/llvm-project-15.0.7/libcxx/test/libcxx/fuzzing/
H A Dpartition_copy.pass.cpp44 std::sort(v0.begin(), v0.end()); in LLVMFuzzerTestOneInput()
47 std::sort(v1.begin(), v1.end()); in LLVMFuzzerTestOneInput()
51 std::sort(v2.begin(), v2.end()); in LLVMFuzzerTestOneInput()
/llvm-project-15.0.7/libcxx/test/std/containers/sequences/list/list.ops/
H A Dsort_comp.pass.cpp66 c.sort(greater); in test_stable()
90 c1.sort(std::greater<int>()); in main()
106 c1.sort(std::cref(comp)); in main()
120 c1.sort(std::greater<int>()); in main()
/llvm-project-15.0.7/llvm/tools/llvm-nm/
H A DOpts.td26 def no_sort : FF<"no-sort", "Show symbols in order encountered">;
28 def numeric_sort : FF<"numeric-sort", "Sort symbols by address">;
34 def reverse_sort : FF<"reverse-sort", "Sort in reverse order">;
35 def size_sort : FF<"size-sort", "Sort symbols by size">;
72 def : F<"n", "Alias for --numeric-sort">, Alias<numeric_sort>;
74 def : F<"p", "Alias for --no-sort">, Alias<no_sort>;
76 def : F<"r", "Alias for --reverse-sort">, Alias<reverse_sort>;
81 def : F<"v", "Alias for --numeric-sort">, Alias<numeric_sort>;
/llvm-project-15.0.7/lld/test/ELF/
H A Dcgprofile-obj.s5 # RUN: llvm-nm --no-sort %t | FileCheck %s
6 # RUN: ld.lld --no-call-graph-profile-sort -e A %t.o -o %t
7 # RUN: llvm-nm --no-sort %t | FileCheck %s --check-prefix=NO-CG
/llvm-project-15.0.7/lld/test/MachO/
H A Dcgprofile-obj.s5 # RUN: llvm-nm --numeric-sort %t.out | FileCheck %s
6 # RUN: %lld --no-call-graph-profile-sort -lSystem -e A -o %t.out %t.o
7 # RUN: llvm-nm --numeric-sort %t.out | FileCheck %s --check-prefix=NO-CG
/llvm-project-15.0.7/llvm/include/llvm/ADT/
H A Dsimple_ilist.h263 void sort() { sort(std::less<T>()); } in sort() function
264 template <class Compare> void sort(Compare comp);
292 void simple_ilist<T, Options...>::sort(Compare comp) { in sort() function
307 sort(comp); in sort()
308 RHS.sort(comp); in sort()
/llvm-project-15.0.7/lld/test/COFF/
H A Dcgprofile-obj.s5 # RUN: llvm-nm --numeric-sort %t2 | FileCheck %s
6 # RUN: lld-link /call-graph-profile-sort:no /subsystem:console /entry:A %t /out:%t3 /debug:symtab
7 # RUN: llvm-nm --numeric-sort %t3 | FileCheck %s --check-prefix=NO-CG
/llvm-project-15.0.7/compiler-rt/lib/gwp_asan/tests/
H A Diterate.cpp28 std::sort(Allocated.begin(), Allocated.end()); in TEST_F()
44 std::sort(Found.begin(), Found.end()); in TEST_F()
63 std::sort(Found.begin(), Found.end()); in TEST_F()
/llvm-project-15.0.7/llvm/lib/TextAPI/
H A DTextStub.cpp524 llvm::sort(Section.Symbols); in NormalizedTBD()
525 llvm::sort(Section.Classes); in NormalizedTBD()
526 llvm::sort(Section.ClassEHs); in NormalizedTBD()
527 llvm::sort(Section.IVars); in NormalizedTBD()
529 llvm::sort(Section.TLVSymbols); in NormalizedTBD()
581 llvm::sort(Section.Symbols); in NormalizedTBD()
582 llvm::sort(Section.Classes); in NormalizedTBD()
583 llvm::sort(Section.ClassEHs); in NormalizedTBD()
584 llvm::sort(Section.IVars); in NormalizedTBD()
890 sort(CurrentSection.Ivars); in NormalizedTBD_V4()
[all …]

12345678910>>...33