Home
last modified time | relevance | path

Searched refs:Traits (Results 1 – 25 of 118) sorted by relevance

12345

/llvm-project-15.0.7/libcxx/test/libcxx/containers/associative/
H A Dtree_key_value_traits.pass.cpp20 typedef std::__tree_key_value_types<Tp> Traits; in testKeyValueTrait() typedef
21 static_assert((std::is_same<Traits::key_type, int>::value), ""); in testKeyValueTrait()
24 static_assert(Traits::__is_map == false, ""); in testKeyValueTrait()
28 typedef std::__tree_key_value_types<Tp> Traits; in testKeyValueTrait() typedef
32 static_assert(Traits::__is_map == false, ""); in testKeyValueTrait()
36 typedef std::__tree_key_value_types<Tp> Traits; in testKeyValueTrait() typedef
40 static_assert(Traits::__is_map == false, ""); in testKeyValueTrait()
44 typedef std::__tree_key_value_types<Tp> Traits; in testKeyValueTrait() typedef
48 static_assert((std::is_same<Traits::__container_value_type, in testKeyValueTrait()
50 static_assert((std::is_same<Traits::__map_value_type, in testKeyValueTrait()
[all …]
/llvm-project-15.0.7/libcxx/test/libcxx/containers/unord/
H A Dkey_value_traits.pass.cpp20 typedef std::__hash_key_value_types<Tp> Traits; in testKeyValueTrait() typedef
21 static_assert((std::is_same<Traits::key_type, int>::value), ""); in testKeyValueTrait()
24 static_assert(Traits::__is_map == false, ""); in testKeyValueTrait()
28 typedef std::__hash_key_value_types<Tp> Traits; in testKeyValueTrait() typedef
32 static_assert(Traits::__is_map == false, ""); in testKeyValueTrait()
36 typedef std::__hash_key_value_types<Tp> Traits; in testKeyValueTrait() typedef
40 static_assert(Traits::__is_map == false, ""); in testKeyValueTrait()
44 typedef std::__hash_key_value_types<Tp> Traits; in testKeyValueTrait() typedef
48 static_assert((std::is_same<Traits::__container_value_type, in testKeyValueTrait()
50 static_assert((std::is_same<Traits::__map_value_type, in testKeyValueTrait()
[all …]
/llvm-project-15.0.7/llvm/unittests/DebugInfo/PDB/
H A DHashTableTest.cpp50 IdentityHashTraits Traits; in TEST() local
51 Table.set_as(3u, 7, Traits); in TEST()
68 IdentityHashTraits Traits; in TEST() local
69 Table.set_as(N1, 7, Traits); in TEST()
84 IdentityHashTraits Traits; in TEST() local
85 Table.set_as(1u, 2, Traits); in TEST()
86 Table.set_as(3u, 4, Traits); in TEST()
107 IdentityHashTraits Traits; in TEST() local
127 IdentityHashTraits Traits; in TEST() local
142 IdentityHashTraits Traits; in TEST() local
[all …]
/llvm-project-15.0.7/libcxx/test/std/input.output/iostream.format/quoted.manip/
H A Dquoted.pass.cpp22 template <class CharT, class Traits>
29 std::basic_string<CharT, Traits> str(p); in both_ways()
32 std::basic_stringstream<CharT, Traits> ss; in both_ways()
41 std::basic_stringstream<CharT, Traits> ss; in round_trip()
45 std::basic_string<CharT, Traits> s; in round_trip()
54 std::basic_stringstream<CharT, Traits> ss; in round_trip_ws()
59 std::basic_string<CharT, Traits> s; in round_trip_ws()
71 std::basic_string<CharT, Traits> s; in round_trip_d()
82 std::basic_string<CharT, Traits> s; in round_trip_e()
94 std::basic_string<CharT, Traits> s; in quote()
[all …]
/llvm-project-15.0.7/libcxx/test/std/utilities/memory/specialized.algorithms/specialized.destroy/
H A Dranges_destroy_at.pass.cpp69 Counted* buffer = Traits::allocate(alloc, 2); in test()
70 Traits::construct(alloc, buffer, counter); in test()
71 Traits::construct(alloc, buffer + 1, counter); in test()
79 Traits::deallocate(alloc, buffer, 2); in test()
89 Traits::construct(alloc, buffer, counter); in test()
90 Traits::construct(alloc, buffer + 1, counter); in test()
98 Traits::deallocate(alloc, buffer, 2); in test()
112 Array* array = Traits::allocate(alloc, 1); in test_arrays()
122 Traits::deallocate(alloc, array, 1); in test_arrays()
132 Array* array = Traits::allocate(alloc, 1); in test_arrays()
[all …]
H A Dranges_destroy.pass.cpp61 Counted* out = Traits::allocate(alloc, N); in test()
70 Traits::deallocate(alloc, out, N); in test()
80 Counted* out = Traits::allocate(alloc, N); in test()
90 Traits::deallocate(alloc, out, N); in test()
112 Array* buffer = Traits::allocate(alloc, N); in test_arrays()
124 Traits::deallocate(alloc, buffer, N); in test_arrays()
137 Array* buffer = Traits::allocate(alloc, N); in test_arrays()
150 Traits::deallocate(alloc, buffer, N); in test_arrays()
164 Array* buffer = Traits::allocate(alloc, N); in test_arrays()
178 Traits::deallocate(alloc, buffer, N); in test_arrays()
[all …]
H A Dranges_destroy_n.pass.cpp54 using Traits = std::allocator_traits<decltype(alloc)>; in test() typedef
57 Counted* out = Traits::allocate(alloc, N); in test()
59 Traits::construct(alloc, out + i, counter); in test()
66 Traits::deallocate(alloc, out, N); in test()
85 using Traits = std::allocator_traits<decltype(alloc)>; in test_arrays() typedef
88 Array* buffer = Traits::allocate(alloc, N); in test_arrays()
92 Traits::construct(alloc, std::addressof(array_ref[j]), counter); in test_arrays()
100 Traits::deallocate(alloc, buffer, N); in test_arrays()
111 using Traits = std::allocator_traits<decltype(alloc)>; in test_arrays() typedef
114 Array* buffer = Traits::allocate(alloc, N); in test_arrays()
[all …]
/llvm-project-15.0.7/llvm/include/llvm/ADT/
H A DIntervalMap.h629 unsigned LeafNode<KeyT, ValT, N, Traits>::
965 using KeyTraits = Traits;
1081 if (empty() || Traits::startLess(x, start()) || Traits::stopLess(stop(), x))
1148 assert(Traits::nonEmpty(a, b)); in overlaps()
1162 ValT IntervalMap<KeyT, ValT, N, Traits>::
1254 void IntervalMap<KeyT, ValT, N, Traits>::
1281 void IntervalMap<KeyT, ValT, N, Traits>::
1290 void IntervalMap<KeyT, ValT, N, Traits>::
1469 void IntervalMap<KeyT, ValT, N, Traits>::
1483 void IntervalMap<KeyT, ValT, N, Traits>::
[all …]
/llvm-project-15.0.7/clang/unittests/AST/
H A DCommentParser.cpp40 Traits(Allocator, CommentOptions()) { in CommentParserTest()
49 CommandTraits Traits; member in clang::comments::__anonb96a249d0111::CommentParserTest
62 Parser P(L, S, Allocator, SourceMgr, Diags, Traits); in parseString()
168 StringRef ActualName = BCC->getCommandName(Traits); in HasBlockCommandAt()
181 const CommandTraits &Traits, in HasParamCommandAt() argument
270 StringRef ActualName = ICC->getCommandName(Traits); in HasInlineCommandAt()
469 StringRef ActualName = VBC->getCommandName(Traits); in HasVerbatimBlockAt()
579 StringRef ActualName = VLC->getCommandName(Traits); in HasVerbatimLineAt()
1226 ASSERT_TRUE(HasVerbatimBlockAt(FC, Traits, 1, VCC, in TEST_F()
1241 ASSERT_TRUE(HasVerbatimBlockAt(FC, Traits, 1, VBC, in TEST_F()
[all …]
/llvm-project-15.0.7/clang/include/clang/CodeGen/
H A DConstantInitBuilder.h344 template <class Impl, class Traits>
346 : public Traits::AggregateBuilderBase {
416 template <class Traits>
421 ConstantAggregateBuilderTemplateBase<typename Traits::ArrayBuilder, Traits>;
452 template <class Traits>
457 ConstantAggregateBuilderTemplateBase<typename Traits::StructBuilder,Traits>;
503 template <class Traits>
546 template <class Traits>
550 template <class Impl, class Traits>
563 template <class Traits>
[all …]
/llvm-project-15.0.7/libcxx/test/libcxx/input.output/filesystems/class.path/path.member/path.native.obs/
H A Dstring_alloc.pass.cpp66 using Traits = std::char_traits<CharT>; in doShortStringTest() typedef
67 using AStr = std::basic_string<CharT, Traits, MAlloc>; in doShortStringTest()
69 AStr s = p.string<CharT, Traits, MAlloc>(); in doShortStringTest()
76 using Traits = std::char_traits<CharT>; in doShortStringTest() typedef
77 using AStr = std::basic_string<CharT, Traits, MAlloc>; in doShortStringTest()
82 AStr s = p.string<CharT, Traits, MAlloc>(a); in doShortStringTest()
118 using Traits = std::char_traits<CharT>; in doLongStringTest() typedef
119 using AStr = std::basic_string<CharT, Traits, MAlloc>; in doLongStringTest()
121 AStr s = p.string<CharT, Traits, MAlloc>(); in doLongStringTest()
128 using Traits = std::char_traits<CharT>; in doLongStringTest() typedef
[all …]
/llvm-project-15.0.7/llvm/include/llvm/DebugInfo/PDB/Native/
H A DHashTable.h218 const_iterator find_as(const Key &K, TraitsT &Traits) const { in find_as() argument
219 uint32_t H = Traits.hashLookupKey(K) % capacity(); in find_as()
250 bool set_as(const Key &K, ValueT V, TraitsT &Traits) { in set_as() argument
251 return set_as_internal(K, std::move(V), Traits, None); in set_as()
255 ValueT get(const Key &K, TraitsT &Traits) const { in get() argument
256 auto Iter = find_as(K, Traits); in get()
273 bool set_as_internal(const Key &K, ValueT V, TraitsT &Traits, in set_as_internal() argument
275 auto Entry = find_as(K, Traits); in set_as_internal()
292 grow(Traits); in set_as_internal()
294 assert((find_as(K, Traits)) != end()); in set_as_internal()
[all …]
/llvm-project-15.0.7/llvm/include/llvm/Transforms/Utils/
H A DSSAUpdaterImpl.h34 using Traits = SSAUpdaterTraits<UpdaterT>; variable
35 using BlkT = typename Traits::BlkT;
36 using ValT = typename Traits::ValT;
37 using PhiT = typename Traits::PhiT;
99 ValT V = Traits::GetUndefVal(BB, Updater); in GetValue()
130 Traits::FindPredecessorBlocks(Info->BB, &Preds); in BuildBlockList()
196 for (typename Traits::BlkSucc_iterator SI = in BuildBlockList()
197 Traits::BlkSucc_begin(Info->BB), in BuildBlockList()
441 for (typename Traits::PHI_iterator I = Traits::PHI_begin(PHI), in CheckIfPHIMatches()
442 E = Traits::PHI_end(PHI); I != E; ++I) { in CheckIfPHIMatches()
[all …]
/llvm-project-15.0.7/libcxx/test/std/iterators/stream.iterators/ostreambuf.iterator/ostreambuf.iter.ops/
H A Dfailed.pass.cpp21 template <typename Char, typename Traits = std::char_traits<Char> >
22 struct my_streambuf : public std::basic_streambuf<Char,Traits> {
23 typedef typename std::basic_streambuf<Char,Traits>::int_type int_type;
24 typedef typename std::basic_streambuf<Char,Traits>::char_type char_type;
27 int_type sputc(char_type) { return Traits::eof(); } in sputc()
/llvm-project-15.0.7/libcxx/test/std/namespace/
H A Daddressable_functions.sh.cpp109 typedef std::char_traits<char> Traits; in get_ostreammanip_tu1() typedef
110 all_funcs.insert(std::make_pair("endl", &std::endl<char, Traits>)); in get_ostreammanip_tu1()
111 all_funcs.insert(std::make_pair("ends", &std::ends<char, Traits>)); in get_ostreammanip_tu1()
112 all_funcs.insert(std::make_pair("flush", &std::flush<char, Traits>)); in get_ostreammanip_tu1()
125 typedef std::char_traits<wchar_t> Traits; in get_wostreammanip_tu1() typedef
126 all_funcs.insert(std::make_pair("endl", &std::endl<wchar_t, Traits>)); in get_wostreammanip_tu1()
127 all_funcs.insert(std::make_pair("ends", &std::ends<wchar_t, Traits>)); in get_wostreammanip_tu1()
141 typedef std::char_traits<char> Traits; in get_istreammanip_tu1() typedef
142 all_funcs.insert(std::make_pair("ws", &std::ws<char, Traits>)); in get_istreammanip_tu1()
155 typedef std::char_traits<wchar_t> Traits; in get_wistreammanip_tu1() typedef
[all …]
/llvm-project-15.0.7/libcxx/test/std/language.support/support.coroutines/coroutine.traits/
H A Dpromise_type.pass.cpp51 using Traits = std::coroutine_traits<T, Args...>; in check_type() typedef
52 static_assert(has_promise_type<Traits>(), ""); in check_type()
53 static_assert(std::is_same<typename Traits::promise_type, Expect>::value, ""); in check_type()
58 using Traits = std::coroutine_traits<T, Args...>; in check_no_type() typedef
59 static_assert(!has_promise_type<Traits>(), ""); in check_no_type()
/llvm-project-15.0.7/libcxx/test/std/experimental/language.support/support.coroutines/coroutine.traits/
H A Dpromise_type.pass.cpp53 using Traits = coro::coroutine_traits<T, Args...>; in check_type() typedef
54 static_assert(has_promise_type<Traits>(), ""); in check_type()
55 static_assert(std::is_same<typename Traits::promise_type, Expect>::value, ""); in check_type()
60 using Traits = coro::coroutine_traits<T, Args...>; in check_no_type() typedef
61 static_assert(!has_promise_type<Traits>(), ""); in check_no_type()
/llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/class.path/path.itr/
H A Diterator.pass.cpp32 using Traits = std::iterator_traits<It>; in checkIteratorConcepts() typedef
37 ASSERT_SAME_TYPE(Traits::value_type, path); in checkIteratorConcepts()
38 LIBCPP_STATIC_ASSERT(std::is_same<Traits::iterator_category, std::input_iterator_tag>::value, ""); in checkIteratorConcepts()
39 LIBCPP_STATIC_ASSERT(std::is_same<Traits::pointer, path const*>::value, ""); in checkIteratorConcepts()
40 LIBCPP_STATIC_ASSERT(std::is_same<Traits::reference, path>::value, ""); in checkIteratorConcepts()
47 ASSERT_SAME_TYPE(Traits::reference, decltype(*it)); in checkIteratorConcepts()
48 ASSERT_SAME_TYPE(Traits::pointer, decltype(it.operator->())); in checkIteratorConcepts()
/llvm-project-15.0.7/mlir/include/mlir/IR/
H A DStorageUniquerSupport.h73 template <template <typename T> class... Traits>
75 TypeID traitIDs[] = {TypeID::get<Traits>()...}; in hasTrait()
76 for (unsigned i = 0, e = sizeof...(Traits); i != e; ++i) in hasTrait()
93 typename UniquerT, template <typename T> class... Traits>
94 class StorageUserBase : public BaseT, public Traits<ConcreteT>... {
99 using Base = StorageUserBase<ConcreteT, BaseT, StorageT, UniquerT, Traits...>;
118 return detail::InterfaceMap::template get<Traits<ConcreteT>...>(); in getInterfaceMap()
125 return storage_user_base_impl::hasTrait<Traits...>(id); in getHasTraitFn()
/llvm-project-15.0.7/libcxx/test/std/strings/string.view/
H A Dtypes.pass.cpp41 template <class Traits>
45 typedef std::basic_string_view<typename Traits::char_type, Traits> S; in test()
47 static_assert((std::is_same<typename S::traits_type, Traits>::value), ""); in test()
48 … static_assert((std::is_same<typename S::value_type, typename Traits::char_type>::value), ""); in test()
/llvm-project-15.0.7/libcxx/test/std/strings/basic.string/
H A Dtypes.pass.cpp43 template <class Traits, class Allocator>
47 typedef std::basic_string<typename Traits::char_type, Traits, Allocator> S; in test()
49 static_assert((std::is_same<typename S::traits_type, Traits>::value), ""); in test()
50 static_assert((std::is_same<typename S::value_type, typename Traits::char_type>::value), ""); in test()
/llvm-project-15.0.7/llvm/include/llvm/Support/
H A DBinaryItemStream.h33 template <typename T, typename Traits = BinaryItemTraits<T>>
49 if (Size > Traits::length(Item)) in readBytes()
51 Buffer = Traits::bytes(Item).take_front(Size); in readBytes()
60 Buffer = Traits::bytes(Items[*ExpectedIndex]); in readLongestContiguousChunk()
79 uint64_t Len = Traits::length(Item); in computeItemOffsets()
/llvm-project-15.0.7/libcxx/test/std/strings/string.view/string.view.comparison/
H A Dequal.pass.cpp38 typedef typename SV::traits_type Traits; in test() typedef
58 assert((std::basic_string<CharT, Traits>(v[i]) == v[j]) == expected); in test()
59 assert((v[i] == std::basic_string<CharT, Traits>(v[j])) == expected); in test()
79 assert((std::basic_string<CharT, Traits>(abc) == abc0def) == false); in test()
80 assert((abc0def == std::basic_string<CharT, Traits>(abc)) == false); in test()
H A Dgreater_equal.pass.cpp38 typedef typename SV::traits_type Traits; in test() typedef
58 assert((std::basic_string<CharT, Traits>(v[i]) >= v[j]) == expected); in test()
59 assert((v[i] >= std::basic_string<CharT, Traits>(v[j])) == expected); in test()
79 assert((std::basic_string<CharT, Traits>(abc) >= abc0def) == false); in test()
80 assert((abc0def >= std::basic_string<CharT, Traits>(abc)) == true); in test()
H A Dless.pass.cpp38 typedef typename SV::traits_type Traits; in test() typedef
58 assert((std::basic_string<CharT, Traits>(v[i]) < v[j]) == expected); in test()
59 assert((v[i] < std::basic_string<CharT, Traits>(v[j])) == expected); in test()
79 assert((std::basic_string<CharT, Traits>(abc) < abc0def) == true); in test()
80 assert((abc0def < std::basic_string<CharT, Traits>(abc)) == false); in test()

12345