| /llvm-project-15.0.7/libcxx/test/libcxx/containers/associative/ |
| H A D | tree_key_value_traits.pass.cpp | 20 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 D | key_value_traits.pass.cpp | 20 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 D | HashTableTest.cpp | 50 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 D | quoted.pass.cpp | 22 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 D | ranges_destroy_at.pass.cpp | 69 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 D | ranges_destroy.pass.cpp | 61 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 D | ranges_destroy_n.pass.cpp | 54 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 D | IntervalMap.h | 629 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 D | CommentParser.cpp | 40 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 D | ConstantInitBuilder.h | 344 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 D | string_alloc.pass.cpp | 66 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 D | HashTable.h | 218 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 D | SSAUpdaterImpl.h | 34 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 D | failed.pass.cpp | 21 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 D | addressable_functions.sh.cpp | 109 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 D | promise_type.pass.cpp | 51 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 D | promise_type.pass.cpp | 53 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 D | iterator.pass.cpp | 32 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 D | StorageUniquerSupport.h | 73 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 D | types.pass.cpp | 41 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 D | types.pass.cpp | 43 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 D | BinaryItemStream.h | 33 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 D | equal.pass.cpp | 38 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 D | greater_equal.pass.cpp | 38 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 D | less.pass.cpp | 38 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()
|