| /llvm-project-15.0.7/libcxx/test/std/utilities/meta/meta.unary/meta.unary.cat/ |
| H A D | member_function_pointer.pass.cpp | 49 class Class class 57 test_member_function_pointer<void (Class::*)()>(); in main() 58 test_member_function_pointer<void (Class::*)(int)>(); in main() 59 test_member_function_pointer<void (Class::*)(int, char)>(); in main() 61 test_member_function_pointer<void (Class::*)() const>(); in main() 69 test_member_function_pointer<void (Class::*)(...)>(); in main() 70 test_member_function_pointer<void (Class::*)(int, ...)>(); in main() 110 test_member_function_pointer<void (Class::*)() &>(); in main() 111 test_member_function_pointer<void (Class::*)(int) &>(); in main() 113 test_member_function_pointer<void (Class::*)(...) &>(); in main() [all …]
|
| /llvm-project-15.0.7/llvm/test/Demangle/ |
| H A D | ms-templates.test | 11 ; CHECK: __thiscall Class<class Typename>::Class<class Typename>(void) 13 ; CHECK: __cdecl Class<class Typename>::Class<class Typename>(void) 36 ; CHECK: __thiscall Class<int *const>::Class<int *const>(void) 38 ; CHECK: __cdecl Class<int *const>::Class<int *const>(void) 46 ; CHECK: __thiscall Class<int[]>::Class<int[]>(void) 48 ; CHECK: __cdecl Class<int[]>::Class<int[]>(void) 51 ; CHECK: __thiscall Class<int[5]>::Class<int[5]>(void) 53 ; CHECK: __cdecl Class<int[5]>::Class<int[5]>(void) 56 ; CHECK: __thiscall Class<int const[5]>::Class<int const[5]>(void) 58 ; CHECK: __cdecl Class<int const[5]>::Class<int const[5]>(void) [all …]
|
| /llvm-project-15.0.7/clang/test/SemaCXX/ |
| H A D | expression-traits.cpp | 180 struct Class : BaseClass struct 211 Class(); argument 212 Class(int,int); 342 ASSERT_RVALUE(Class()); in expr_type_conv_2() 364 Class lvalue; in expr_ref_4() 396 Class instance; in expr_dynamic_cast_2() 412 typedef Class D; in expr_dynamic_cast_5() 503 typedef Class MakeRValue; in expr_mptr_oper() 506 Class lvalue; in expr_mptr_oper() 529 Class classLvalue; in expr_cond() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/refactor/tweaks/ |
| H A D | SpecialMembers.cpp | 33 for (const auto &M : Class.methods()) { in buildSpecialMemberDeclarations() 56 llvm::formatv(MemberPattern, Class.getName(), in buildSpecialMemberDeclarations() 57 llvm::formatv(ParmPattern, Class.getName())), in buildSpecialMemberDeclarations() 106 if (!Class || !Class->isThisDeclarationADefinition()) in prepare() 110 NeedCopy = !Class->hasUserDeclaredCopyConstructor() || in prepare() 111 !Class->hasUserDeclaredCopyAssignment(); in prepare() 112 NeedMove = !Class->hasUserDeclaredMoveAssignment() || in prepare() 113 !Class->hasUserDeclaredMoveConstructor(); in prepare() 120 Inputs.AST->getSema().ForceDeclarationOfImplicitMembers(Class); in apply() 121 std::string Code = buildSpecialMemberDeclarations(*Class); in apply() [all …]
|
| H A D | MemberwiseConstructor.cpp | 50 Class = N->ASTNode.get<CXXRecordDecl>(); in prepare() 51 if (!Class || !Class->isThisDeclarationADefinition() || Class->isUnion() || in prepare() 52 Class->getDeclName().isEmpty()) in prepare() 55 dlog("MemberwiseConstructor for {0}?", Class->getName()); in prepare() 57 for (const CXXBaseSpecifier &Base : Class->bases()) { in prepare() 67 for (const CXXConstructorDecl *CCD : Class->ctors()) { in prepare() 75 for (const FieldDecl *D : Class->fields()) { in prepare() 175 return Visitor(Class->getASTContext()) in considerField() 225 OS << Class->getName() << "("; in buildCode() 233 OS << printType(ParamType, *Class, in buildCode() [all …]
|
| /llvm-project-15.0.7/llvm/include/llvm/Analysis/ |
| H A D | ObjCARCInstKind.h | 56 raw_ostream &operator<<(raw_ostream &OS, const ARCInstKind Class); 59 bool IsUser(ARCInstKind Class); 62 bool IsRetain(ARCInstKind Class); 65 bool IsAutorelease(ARCInstKind Class); 69 bool IsForwarding(ARCInstKind Class); 73 bool IsNoopOnNull(ARCInstKind Class); 77 bool IsNoopOnGlobal(ARCInstKind Class); 81 bool IsAlwaysTail(ARCInstKind Class); 85 bool IsNeverTail(ARCInstKind Class); 89 bool IsNoThrow(ARCInstKind Class); [all …]
|
| /llvm-project-15.0.7/llvm/lib/Transforms/ObjCARC/ |
| H A D | DependencyAnalysis.cpp | 38 switch (Class) { in CanAlterRefCount() 71 if (!CanDecrementRefCount(Class)) in CanDecrementRefCount() 84 if (Class == ARCInstKind::Call) in CanUse() 130 ARCInstKind Class = GetARCInstKind(Inst); in Depends() local 131 switch (Class) { in Depends() 137 return CanUse(Inst, Arg, PA, Class); in Depends() 142 ARCInstKind Class = GetARCInstKind(Inst); in Depends() local 143 switch (Class) { in Depends() 156 switch (Class) { in Depends() 186 switch (Class) { in Depends() [all …]
|
| /llvm-project-15.0.7/clang/test/SemaObjC/ |
| H A D | comptypes-1.m | 25 Class obj_C = nil; 26 Class<MyProtocol> obj_CP = nil; 41 … = obj_C; // expected-warning {{incompatible pointer types assigning to 'MyClass *' from 'Class'}} 51 …j_C; // expected-warning {{incompatible pointer types assigning to 'id<MyProtocol>' from 'Class'}} 52 …obj_p = obj_CP; // expected-warning {{assigning to 'id<MyProtocol>' from incompatible type 'Class<… 60 …j_C; // expected-warning {{incompatible pointer types assigning to 'MyOtherClass *' from 'Class'}} 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… 112 /* Comparisons between MyOtherClass * and Class types is a warning */ [all …]
|
| H A D | class-getter-using-dotsyntax.m | 4 typedef struct objc_class *Class; typedef 7 Class isa; 11 Class isa; 17 + (Class)retursClass; 32 + (Class)retursClass { 33 Class version;
|
| H A D | compare-qualified-class.m | 14 Class <SomeProtocol> classA; 15 Class <SomeProtocol> classB; 16 Class <SomeProtocol, SomeProtocol1> classC; 17 Class <SomeProtocol1> classD; 19 Class c = (Class)0;; 28 …// expected-warning {{comparison of distinct pointer types ('Class<SomeProtocol>' and 'Class<SomeP…
|
| /llvm-project-15.0.7/clang/test/SemaObjCXX/ |
| H A D | comptypes-1.mm | 25 Class obj_C = nil; 26 Class<MyProtocol> obj_CP = nil; 41 …_c = obj_C; // expected-error {{incompatible pointer types assigning to 'MyClass *' from 'Class'}} 51 …obj_C; // expected-error {{incompatible pointer types assigning to 'id<MyProtocol>' from 'Class'}} 52 …obj_p = obj_CP; // expected-error {{assigning to 'id<MyProtocol>' from incompatible type 'Class<My… 60 …obj_C; // expected-error {{incompatible pointer types assigning to 'MyOtherClass *' from 'Class'}} 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… 112 /* Comparisons between MyOtherClass * and Class types is a warning */ [all …]
|
| /llvm-project-15.0.7/llvm/tools/llvm-pdbutil/ |
| H A D | PrettyTypeDumper.cpp | 104 while (auto Class = E.getNext()) { in filterAndSortClassDefs() local 112 if (Class->getUnmodifiedTypeId() != 0) { in filterAndSortClassDefs() 117 if (Printer.IsTypeExcluded(Class->getName(), Class->getLength())) { in filterAndSortClassDefs() 183 if (Class.getUnmodifiedTypeId() != 0) { in printClassDecl() 184 if (Class.isConstType()) in printClassDecl() 186 if (Class.isVolatileType()) in printClassDecl() 188 if (Class.isUnalignedType()) in printClassDecl() 249 for (auto &Class : Filtered) in start() local 250 dumpClassLayout(*Class); in start() 253 if (Printer.IsTypeExcluded(Class->getName(), Class->getLength())) in start() [all …]
|
| /llvm-project-15.0.7/clang/include/clang/AST/ |
| H A D | TypeLocNodes.def | 14 // TYPELOC(Class, Base) - A TypeLoc subclass. If UNQUAL_TYPELOC is 17 // UNQUAL_TYPELOC(Class, Base, Type) - An UnqualTypeLoc subclass. 19 // ABSTRACT_TYPELOC(Class) - Refers to TypeSpecLoc and DeclaratorLoc. 24 # define UNQUAL_TYPELOC(Class, Base) TYPELOC(Class, Base) 28 # define ABSTRACT_TYPELOC(Class, Base) UNQUAL_TYPELOC(Class, Base) 32 #define TYPE(Class, Base) UNQUAL_TYPELOC(Class, Base##Loc) 33 #define ABSTRACT_TYPE(Class, Base) ABSTRACT_TYPELOC(Class, Base##Loc)
|
| H A D | TypeProperties.td | 12 let Class = ComplexType in { 20 let Class = PointerType in { 28 let Class = AdjustedType in { 39 let Class = DecayedType in { 93 let Class = ArrayType in { 165 let Class = VectorType in { 227 let Class = MatrixType in { 365 let Class = UsingType in { 444 let Class = AutoType in { 495 let Class = TagType in { [all …]
|
| /llvm-project-15.0.7/llvm/test/tools/obj2yaml/ELF/ |
| H A D | mips-eflags.yaml | 13 Class: ELFCLASS32 35 Class: ELFCLASS32 43 Class: ELFCLASS32 51 Class: ELFCLASS32 59 Class: ELFCLASS32 108 Class: ELFCLASS32 116 Class: ELFCLASS32 124 Class: ELFCLASS32 132 Class: ELFCLASS32 140 Class: ELFCLASS32 [all …]
|
| /llvm-project-15.0.7/clang/test/CodeGenCXX/ |
| H A D | mangle-ms-templates.cpp | 7 class Class { class 9 Class() {} in Class() function in Class 55 Class<Typename> c1; in template_mangling() 59 Class<const Typename> c1_const; in template_mangling() 69 Class<Nested<Typename> > c2; in template_mangling() 73 Class<int * const> c_intpc; in template_mangling() 76 Class<int()> c_ft; in template_mangling() 79 Class<int[]> c_inti; in template_mangling() 82 Class<int[5]> c_int5; in template_mangling() 85 Class<const int[5]> c_intc5; in template_mangling() [all …]
|
| /llvm-project-15.0.7/llvm/include/llvm/DebugInfo/CodeView/ |
| H A D | CodeView.h | 52 #define CV_DEFINE_ENUM_CLASS_FLAGS_OPERATORS(Class) \ argument 53 inline Class operator|(Class a, Class b) { \ 54 return static_cast<Class>( \ 55 static_cast<std::underlying_type<Class>::type>(a) | \ 56 static_cast<std::underlying_type<Class>::type>(b)); \ 58 inline Class operator&(Class a, Class b) { \ 59 return static_cast<Class>( \ 60 static_cast<std::underlying_type<Class>::type>(a) & \ 63 inline Class operator~(Class a) { \ 67 inline Class &operator|=(Class &a, Class b) { \ [all …]
|
| /llvm-project-15.0.7/clang/test/SemaTemplate/ |
| H A D | temp_class_spec.cpp | 219 template<typename T, typename Class> 220 struct is_member_pointer<T Class::*> { 238 template<typename T, typename Class> 239 struct is_member_function_pointer<T (Class::*)()> { 243 template<typename T, typename Class> 248 template<typename T, typename Class> 253 template<typename T, typename Class> 258 template<typename T, typename Class, typename A1> 263 template<typename T, typename Class, typename A1> 268 template<typename T, typename Class, typename A1> [all …]
|
| /llvm-project-15.0.7/llvm/test/tools/yaml2obj/ELF/ |
| H A D | header-osabi.yaml | 13 Class: ELFCLASS64 20 Class: ELFCLASS64 31 Class: ELFCLASS64 43 Class: ELFCLASS64 57 Class: ELFCLASS64 64 Class: ELFCLASS64 76 Class: ELFCLASS64 88 Class: ELFCLASS64 100 Class: ELFCLASS64 112 Class: ELFCLASS64 [all …]
|
| /llvm-project-15.0.7/llvm/include/llvm/IR/ |
| H A D | Instruction.def | 25 #define HANDLE_TERM_INST(num, opcode, Class) 27 #define HANDLE_TERM_INST(num, opcode, Class) HANDLE_INST(num, opcode, Class) 41 #define HANDLE_UNARY_INST(num, opcode, Class) HANDLE_INST(num, opcode, Class) 55 #define HANDLE_BINARY_INST(num, opcode, Class) HANDLE_INST(num, opcode, Class) 67 #define HANDLE_MEMORY_INST(num, opcode, Class) 69 #define HANDLE_MEMORY_INST(num, opcode, Class) HANDLE_INST(num, opcode, Class) 81 #define HANDLE_CAST_INST(num, opcode, Class) 83 #define HANDLE_CAST_INST(num, opcode, Class) HANDLE_INST(num, opcode, Class) 97 #define HANDLE_FUNCLETPAD_INST(num, opcode, Class) HANDLE_INST(num, opcode, Class) 111 #define HANDLE_OTHER_INST(num, opcode, Class) HANDLE_INST(num, opcode, Class) [all …]
|
| /llvm-project-15.0.7/llvm/test/Linker/ |
| H A D | replaced-function-matches-first-subprogram.ll | 6 ; template <class T> struct Class { 11 ; int foo() { return Class<int>().foo(); } 14 ; template struct Class<int>; 16 %struct.Class = type { i8 } 21 %tmp = alloca %struct.Class, align 1 22 %call = call i32 @_ZN5ClassIiE3fooEv(%struct.Class* %tmp), !dbg !14 26 ; CHECK: define weak_odr i32 @_ZN5ClassIiE3fooEv(%struct.Class* %this){{.*}} !dbg ![[SP2:[0-9]+]] { 29 define linkonce_odr i32 @_ZN5ClassIiE3fooEv(%struct.Class* %this) align 2 !dbg !7 { 31 %this.addr = alloca %struct.Class*, align 8 32 store %struct.Class* %this, %struct.Class** %this.addr, align 8 [all …]
|
| /llvm-project-15.0.7/lldb/test/Shell/SymbolFile/PDB/Inputs/ |
| H A D | ClassLayoutTest.cpp | 74 class Class : public Base { // Test base class. class 78 Class() : m_public(), m_private(), m_protected() {} in Class() function in MemberTest::Class 79 explicit Class(int a) { m_public = a; } // Test first reference of m_public. in Class() function in MemberTest::Class 80 ~Class() {} in ~Class() 87 inline bool operator==(const Class &rhs) const // Test operator. in operator ==() 111 MemberTest::Class C1; in main() 112 MemberTest::Class::StaticMemberFunc(1, 10, 2); in main()
|
| /llvm-project-15.0.7/clang/test/CodeGenObjC/ |
| H A D | id-isa-codegen.m | 4 typedef struct objc_class *Class; typedef 7 Class isa; 11 + (Class) class; 13 + (unsigned char) isSubclassOfClass:(Class)aClass ; argument 17 + (Class) class {return 0;} 18 + (unsigned char) isSubclassOfClass:(Class)aClass {return 0;} argument 31 static Class MyClass; 33 Class Test(const void *inObject1) { 63 Class dynamicSubclass;
|
| /llvm-project-15.0.7/libcxx/test/std/utilities/meta/meta.unary.prop.query/ |
| H A D | void_t.pass.cpp | 47 class Class class 50 ~Class(); 61 test1<Class>(); in main() 62 test1<Class[]>(); in main() 63 test1<Class[5]>(); in main() 68 test2<Class&, bool>(); in main() 71 ASSERT_SAME_TYPE(void, std::void_t<int, double const &, Class, volatile int[], void>); in main()
|
| /llvm-project-15.0.7/llvm/lib/Analysis/ |
| H A D | ObjCARCInstKind.cpp | 30 switch (Class) { in operator <<() 311 switch (Class) { in IsUser() 345 switch (Class) { in IsRetain() 381 switch (Class) { in IsAutorelease() 416 switch (Class) { in IsForwarding() 451 switch (Class) { in IsNoopOnNull() 486 switch (Class) { in IsNoopOnGlobal() 522 switch (Class) { in IsAlwaysTail() 561 switch (Class) { in IsNeverTail() 598 switch (Class) { in IsNoThrow() [all …]
|