| /llvm-project/libcxx/test/libcxx/type_traits/ |
| H A D | is_always_bitcastable.compile.pass.cpp | 55 types::for_each(Types1{}, []<class T>() { in check() 56 types::for_each(Types2{}, []<class U>() { in check() 74 using integral_8 = types::type_list<char8_t, std::int8_t, std::uint8_t>; in test() 75 using chars = types::type_list<char, unsigned char, signed char>; in test() 77 check<true, types::concatenate_t<integral_8, chars>>(); in test() 84 using integral_16 = types::type_list<char16_t, std::int16_t, std::uint16_t>; in test() 86 check<true, types::concatenate_t<integral_16, types::type_list<wchar_t>>>(); in test() 92 using integral_32 = types::type_list<char32_t, std::int32_t, std::uint32_t>; in test() 94 check<true, types::concatenate_t<integral_32, types::type_list<wchar_t>>>(); in test() 100 using integral_64 = types::type_list<std::int64_t, std::uint64_t>; in test() [all …]
|
| /llvm-project/libc/include/ |
| H A D | CMakeLists.txt | 12 add_subdirectory(llvm-libc-types) 38 .llvm-libc-types.locale_t 47 .llvm-libc-types.ino_t 48 .llvm-libc-types.DIR 49 .llvm-libc-types.struct_dirent 58 .llvm-libc-types.mode_t 59 .llvm-libc-types.struct_flock 60 .llvm-libc-types.struct_flock64 61 .llvm-libc-types.off64_t 62 .llvm-libc-types [all...] |
| /llvm-project/clang/lib/Driver/ |
| H A D | Types.cpp | 18 using namespace clang::driver::types; 49 const char *types::getTypeName(ID Id) { in getInfo() 53 types::ID types::getPreprocessedType(ID Id) { in getTypeName() 70 types::ID types::getPrecompiledType(ID Id) { in isPreprocessedHeaderUnitType() 80 const char *types::getTypeTempSuffix(ID Id, bool CLStyle) { in getPrecompiledType() 97 bool types::onlyPrecompileType(ID Id) { in getTypeTempSuffix() 102 bool types::canTypeBeUserSpecified(ID Id) { in onlyPrecompileType() 103 static const clang::driver::types in onlyPrecompileType() [all...] |
| /llvm-project/libcxx/test/std/algorithms/alg.nonmodifying/alg.equal/ |
| H A D | equal.pass.cpp | 95 types::for_each(TypeList(), Test<UnderlyingType, Iter1>()); in operator ()() 127 …types::for_each(types::cpp17_input_iterator_list<int*>(), TestIter2<int, types::cpp17_input_iterat… in test() 128 types::for_each( in test() 129 …types::cpp17_input_iterator_list<char*>(), TestIter2<char, types::cpp17_input_iterator_list<char*>… in test() 130 types::for_each(types::cpp17_input_iterator_list<AddressCompare*>(), in test() 131 TestIter2<AddressCompare, types::cpp17_input_iterator_list<AddressCompare*> >()); in test() 133 types::for_each(types::integral_types(), TestNarrowingEqualTo()); in test() 136 types::for_each( in test() 137 types::cpp17_input_iterator_list<trivially_equality_comparable*>{}, in test() 138 …TestIter2<trivially_equality_comparable, types::cpp17_input_iterator_list<trivially_equality_compa… in test() [all …]
|
| /llvm-project/llvm/test/Assembler/ |
| H A D | disubroutinetype.ll | 13 ; CHECK: !4 = !DISubroutineType(types: !1) 14 ; CHECK: !5 = !DISubroutineType(types: !2) 15 ; CHECK: !6 = !DISubroutineType(types: !3) 16 ; CHECK: !7 = !DISubroutineType(flags: DIFlagLValueReference, types: !3) 17 !4 = !DISubroutineType(types: !1) 18 !5 = !DISubroutineType(types: !2) 19 !6 = !DISubroutineType(types: !3) 20 !7 = !DISubroutineType(flags: DIFlagLValueReference, types: !3) 22 ; CHECK: !8 = !DISubroutineType(types: null) 23 !8 = !DISubroutineType(types: null) [all …]
|
| /llvm-project/libcxx/test/support/test.support/ |
| H A D | type_algorithms.pass.cpp | 17 static_assert(std::is_same<types::concatenate_t<types::type_list<> >, types::type_list<> >::value, … 18 static_assert(std::is_same<types::concatenate_t<types::type_list<int> >, types::type_list<int> >::v… 20 …std::is_same<types::concatenate_t<types::type_list<int>, types::type_list<long> >, types::type_lis… 23 …std::is_same<types::concatenate_t<types::type_list<int>, types::type_list<long>, types::type_list<… 24 types::type_list<int, long, long long> >::value, 60 types::for_each(types::type_list<NumT<0>, NumT<1>, NumT<2> >(), ApplyAllTest(is_called_array)); in test_for_each()
|
| /llvm-project/flang/test/Lower/HLFIR/ |
| H A D | function-return-destroy.f90 | 36 use types 39 use types 50 use types 53 use types 70 use types 73 use types 86 use types 89 use types 100 use types 103 use types [all …]
|
| H A D | local-end-of-scope-component-dealloc.f90 | 8 module types module 21 end module types 24 use types 32 use types 42 use types 50 use types 60 use types 68 use types 78 use types 86 use types [all...] |
| H A D | structure-constructor.f90 | 4 module types module 30 end module types 33 use types 62 use types 91 use types 127 use types 171 use types 212 use types 310 use types 344 use types [all...] |
| /llvm-project/clang/lib/Tooling/ |
| H A D | InterpolatingCompilationDatabase.cpp | 66 namespace types = clang::driver::types; 93 types::ID guessType(StringRef Filename, bool *Certain = nullptr) { in guessType() 96 types::lookupTypeForExtension(path::extension(Filename).substr(1)); in guessType() 98 *Certain = Lang != types::TY_CHeader && Lang != types::TY_INVALID; in guessType() 104 static types::ID foldType(types::ID Lang) { in foldType() 106 case types::TY_C: in foldType() 107 case types::TY_CHeader: in foldType() 108 return types::TY_C; in foldType() 109 case types::TY_ObjC: in foldType() 110 case types::TY_ObjCHeader: in foldType() [all …]
|
| /llvm-project/libcxx/test/std/ranges/range.utility/range.utility.conv/ |
| H A D | to_std_containers.pass.cpp | 83 using sequence_containers = types::type_list< 91 using associative_sets = types::type_list< 97 using associative_maps = types::type_list< 103 using unordered_sets = types::type_list< 109 using unordered_maps = types::type_list< 115 using container_adaptors = types::type_list< 122 using sequences_and_sets = types::concatenate_t<sequence_containers<T>, associative_sets<T>, unorde… 125 using all_containers = types::concatenate_t< 145 types::for_each(sequence_containers<int>{}, []<class From>() { in test() 146 types::for_each(sequence_containers<int>{}, []<class To>() { in test() [all …]
|
| /llvm-project/clang-tools-extra/test/clang-tidy/checkers/bugprone/ |
| H A D | undefined-memory-manipulation.cpp | 13 namespace types { namespace 61 void f(types::NoDef *s) { in f() 84 using Copy2 = types::Copy; 85 typedef types::Move Move2; 89 types::Plain p; // TriviallyCopyable for variety in notTriviallyCopyable() 90 types::Destruct d; in notTriviallyCopyable() 91 types::Copy c; in notTriviallyCopyable() 92 types::Move m; in notTriviallyCopyable() 93 types::VirtualFunc vf; in notTriviallyCopyable() 94 types::VirtualBase vb; in notTriviallyCopyable() [all …]
|
| /llvm-project/mlir/test/python/dialects/ |
| H A D | pdl_ops.py | 34 op0 = OperationOp(attributes={"attr": attr}, types=[ty]) 78 op1 = OperationOp(args=[input1], types=[ty]) 81 op2 = OperationOp(args=[input2], types=[ty]) 108 op1 = OperationOp(args=[input1], types=[ty]) 111 op2 = OperationOp(args=[input2], types=[ty]) 135 root = OperationOp(types=[ty1, ty2]) 139 newOp = OperationOp(name="foo.op", types=[ty1, ty3]) 159 root = OperationOp(types=[ty1, ty2]) 162 newOp = OperationOp(name="foo.op", types=[ty1, ty2]) 179 types = TypesOp() [all …]
|
| /llvm-project/libc/hdr/types/ |
| H A D | CMakeLists.txt | 8 libc.include.llvm-libc-types.div_t 19 libc.include.llvm-libc-types.ldiv_t 30 libc.include.llvm-libc-types.lldiv_t 39 libc.include.llvm-libc-types.sigset_t 47 libc.include.llvm-libc-types.struct_epoll_event 57 libc.include.llvm-libc-types.struct_flock 67 libc.include.llvm-libc-types.struct_flock64 77 libc.include.llvm-libc-types.struct_f_owner_ex 85 libc.include.llvm-libc-types.struct_timespec 93 libc.include.llvm-libc-types [all...] |
| /llvm-project/lldb/test/API/functionalities/type_types/ |
| H A D | TestFindTypes.py | 45 types = api.FindTypes("a::Foo") 46 self.assertEqual(types.GetSize(), 1) 47 type_str0 = str(types.GetTypeAtIndex(0)) 53 types = api.FindTypes("Foo") 54 self.assertEqual(types.GetSize(), 2) 55 type_str0 = str(types.GetTypeAtIndex(0)) 56 type_str1 = str(types.GetTypeAtIndex(1)) 58 …self.assertEqual(set([str(t).split('\n')[0] for t in types]), set(["typedef Foo", "struct Foo {"])) 63 types = api.FindTypes("::Foo") 64 self.assertEqual(types.GetSize(), 1) [all …]
|
| /llvm-project/llvm/test/tools/llvm-objdump/MachO/ |
| H A D | macho-objc-meta-data.test | 28 OBJC2_64BIT_EXE: types 0x100001b48 v16@0:8 31 OBJC2_64BIT_EXE: types 0x100001b50 v24@0:8@16 70 OBJC2_64BIT_EXE: types 0x100001b50 v24@0:8@16 73 OBJC2_64BIT_EXE: types 0x100001b50 v24@0:8@16 152 OBJC2_64BIT_OBJ: types 0x102e v24@0:8@16 155 OBJC2_64BIT_OBJ: types 0x102e v24@0:8@16 233 OBJC2_32BIT_EXE: types 0x562b c16@0:4@8@12 236 OBJC2_32BIT_EXE: types 0x5608 v12@0:4@8 239 OBJC2_32BIT_EXE: types 0x5608 v12@0:4@8 242 OBJC2_32BIT_EXE: types 0x5608 v12@0:4@8 [all …]
|
| /llvm-project/clang/test/SemaObjC/ |
| H A D | comptypes-1.m | 40 …obj_c = obj_cp; // expected-warning {{incompatible pointer types assigning to 'MyClass *' from 'My… 41 …obj_c = obj_C; // expected-warning {{incompatible pointer types assigning to 'MyClass *' from 'Cl… 42 …obj_c = obj_CP; // expected-warning {{incompatible pointer types assigning to 'MyClass *' from 'Cl… 51 …obj_p = obj_C; // expected-warning {{incompatible pointer types assigning to 'id<MyProtocol>' fro… 58 …obj_cp = obj_c; // expected-warning {{incompatible pointer types assigning to 'MyOtherClass *' fr… 60 …obj_cp = obj_C; // expected-warning {{incompatible pointer types assigning to 'MyOtherClass *' fr… 61 …obj_cp = obj_CP; // expected-warning {{incompatible pointer types assigning to 'MyOtherClass *' fr… 64 …obj_C = obj_p; // expected-warning {{incompatible pointer types assigning to 'Class' from 'id<My… 65 …obj_C = obj_c; // expected-warning {{incompatible pointer types assigning to 'Class' from 'MyCla… 66 …obj_C = obj_cp; // expected-warning {{incompatible pointer types assigning to 'Class' from 'MyOth… [all …]
|
| /llvm-project/clang/test/SemaObjCXX/ |
| H A D | comptypes-1.mm | 40 …obj_c = obj_cp; // expected-error {{incompatible pointer types assigning to 'MyClass *' from 'MyOt… 41 …obj_c = obj_C; // expected-error {{incompatible pointer types assigning to 'MyClass *' from 'Clas… 42 …obj_c = obj_CP; // expected-error {{incompatible pointer types assigning to 'MyClass *' from 'Clas… 51 …obj_p = obj_C; // expected-error {{incompatible pointer types assigning to 'id<MyProtocol>' from … 58 …obj_cp = obj_c; // expected-error {{incompatible pointer types assigning to 'MyOtherClass *' from… 60 …obj_cp = obj_C; // expected-error {{incompatible pointer types assigning to 'MyOtherClass *' from… 61 …obj_cp = obj_CP; // expected-error {{incompatible pointer types assigning to 'MyOtherClass *' from… 64 …obj_C = obj_p; // expected-error {{incompatible pointer types assigning to 'Class' from 'id<MyPr… 65 …obj_C = obj_c; // expected-error {{incompatible pointer types assigning to 'Class' from 'MyClass… 66 …obj_C = obj_cp; // expected-error {{incompatible pointer types assigning to 'Class' from 'MyOther… [all …]
|
| H A D | parameterized_classes_subst.mm | 109 …ip = [stringSet firstObject]; // expected-error{{incompatible pointer types assigning to 'int *' f… 110 …ip = [mutStringSet firstObject]; // expected-error{{incompatible pointer types assigning to 'int *… 111 …ip = [widgetSet firstObject]; // expected-error{{incompatible pointer types assigning to 'int *' f… 112 …ip = [untypedMutSet firstObject]; // expected-error{{incompatible pointer types assigning to 'int … 113 …ip = [mutStringArraySet firstObject]; // expected-error{{incompatible pointer types assigning to '… 114 …ip = [set firstObject]; // expected-error{{incompatible pointer types assigning to 'int *' from 'i… 115 …ip = [mutSet firstObject]; // expected-error{{incompatible pointer types assigning to 'int *' from… 116 …ip = [mutArraySet firstObject]; // expected-error{{incompatible pointer types assigning to 'int *'… 117 …ip = [block firstObject]; // expected-error{{incompatible pointer types assigning to 'int *' from … 119 …ip = [stringSet findObject:@"blah"]; // expected-error{{incompatible pointer types assigning to 'i… [all …]
|
| /llvm-project/clang-tools-extra/docs/clang-tidy/checks/bugprone/ |
| H A D | swapped-arguments.rst | 7 It analyzes the types of the arguments being passed to a function and compares 8 them to the expected types of the corresponding parameters. If there is a 24 - Conversions from floating-point types to boolean or integral types 25 - Conversions from integral types to boolean or floating-point types 26 - Conversions from boolean to integer types or floating-point types 29 It is important to note that for most argument swaps, the types need to match 32 Implicit casts from other integral types are also accepted. Similarly, when 34 floating-point types are considered acceptable. 36 To avoid confusion, swaps where both swapped arguments are of integral types or 37 both are of floating-point types do not trigger the warning. In such cases, it's [all …]
|
| /llvm-project/libcxx/test/std/algorithms/alg.modifying.operations/alg.move/ |
| H A D | pstl.move.pass.cpp | 83 types::for_each(types::forward_iterator_list<int*>{}, types::apply_type_identity{[](auto v) { in main() 85 types::for_each( in main() 86 types::forward_iterator_list<int*>{}, in main() 87 … TestIteratorWithPolicies< types::partial_instantiation<TestInt, Iter>::template apply>{}); in main() 90 types::for_each( in main() 91 types::forward_iterator_list<MovedToTester*>{}, types::apply_type_identity{[](auto v) { in main() 93 types::for_each( in main() 94 types::forward_iterator_list<MovedToTester*>{}, in main() 95 … TestIteratorWithPolicies< types::partial_instantiation<TestNonTrivial, Iter>::template apply>{}); in main()
|
| H A D | move.pass.cpp | 63 types::for_each( in operator ()() 64 …types::concatenate_t<types::cpp17_input_iterator_list<int*>, types::type_list<cpp17_output_iterato… in operator ()() 89 types::for_each(types::concatenate_t<types::cpp17_input_iterator_list<std::unique_ptr<int>*>, in operator ()() 90 … types::type_list<cpp17_output_iterator<std::unique_ptr<int>*> > >(), in operator ()() 96 types::for_each(types::cpp17_input_iterator_list<int*>(), TestOutIters()); in test() 98 types::for_each(types::cpp17_input_iterator_list<std::unique_ptr<int>*>(), Test1OutIters()); in test()
|
| /llvm-project/libcxx/test/std/algorithms/alg.modifying.operations/alg.copy/ |
| H A D | pstl.copy.pass.cpp | 88 types::for_each(types::forward_iterator_list<int*>{}, types::apply_type_identity{[](auto v) { in main() 90 types::for_each( in main() 91 types::forward_iterator_list<int*>{}, in main() 92 … TestIteratorWithPolicies< types::partial_instantiation<TestInt, Iter>::template apply>{}); in main() 95 types::for_each( in main() 96 types::forward_iterator_list<CopiedToTester*>{}, types::apply_type_identity{[](auto v) { in main() 98 types::for_each( in main() 99 types::forward_iterator_list<CopiedToTester*>{}, in main() 100 … TestIteratorWithPolicies< types::partial_instantiation<TestNonTrivial, Iter>::template apply>{}); in main()
|
| /llvm-project/clang/include/clang/Driver/ |
| H A D | Action.h | 106 types::ID Type; 135 Action(ActionClass Kind, types::ID Type) : Action(Kind, ActionList(), Type) {} in Action() 136 Action(ActionClass Kind, Action *Input, types::ID Type) in Action() 140 Action(ActionClass Kind, const ActionList &Inputs, types::ID Type) in Action() 149 types::ID getType() const { return Type; } 236 InputAction(const llvm::opt::Arg &Input, types::ID Type, 362 OffloadAction(const DeviceDependences &DDeps, types::ID Ty); 404 JobAction(ActionClass Kind, Action *Input, types::ID Type); 405 JobAction(ActionClass Kind, const ActionList &Inputs, types::ID Type); 418 PreprocessJobAction(Action *Input, types [all...] |
| /llvm-project/libcxx/test/std/algorithms/alg.modifying.operations/alg.transform/ |
| H A D | pstl.transform.binary.pass.cpp | 66 types::for_each( in main() 67 types::forward_iterator_list<int*>{}, types::apply_type_identity{[](auto v) { in main() 69 types::for_each( in main() 70 types::forward_iterator_list<int*>{}, types::apply_type_identity{[](auto v2) { in main() 72 types::for_each( in main() 73 types::forward_iterator_list<int*>{}, in main() 74 … TestIteratorWithPolicies<types::partial_instantiation<Test, Iter2, Iter3>::template apply>{}); in main()
|