Home
last modified time | relevance | path

Searched refs:Class (Results 1 – 25 of 1475) sorted by relevance

12345678910>>...59

/llvm-project/libcxx/test/std/utilities/meta/meta.unary/meta.unary.cat/
H A Dmember_function_pointer.pass.cpp49 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()
62 test_member_function_pointer<void (Class::*)(int) const>(); in main()
63 test_member_function_pointer<void (Class::*)(int, char) const>(); in main()
65 test_member_function_pointer<void (Class::*)() volatile>(); in main()
66 test_member_function_pointer<void (Class::*)(int) volatile>(); in main()
67 test_member_function_pointer<void (Class::*)(int, char) volatile>(); in main()
[all …]
/llvm-project/llvm/test/Demangle/
H A Dms-templates.test10 ??0?$Class@VTypename@@@@QAE@XZ
11 ; CHECK: __thiscall Class<class Typename>::Class<class Typename>(void)
12 ??0?$Class@VTypename@@@@QEAA@XZ
13 ; CHECK: __cdecl Class<class Typename>::Class<class Typename>(void)
15 ??0?$Class@$$CBVTypename@@@@QAE@XZ
16 ; CHECK: __thiscall Class<class Typename const>::Class<class Typename const>(void)
17 ??0?$Class@$$CBVTypename@@@@QEAA@XZ
18 ; CHECK: __cdecl Class<class Typename const>::Class<class Typename const>(void)
20 ??0?$Class@$$CCVTypename@@@@QAE@XZ
21 ; CHECK: __thiscall Class<class Typename volatile>::Class<class Typename volatile>(void)
[all …]
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/readability/
H A Doperators-representation-to-alternative.cpp53 struct Class { struct
55 Class operator~() const;
56 bool operator&&(const Class&) const;
57 Class operator&(const Class&) const;
58 bool operator||(const Class&) const;
59 Class operator|(const Class&) const;
60 Class operator^(const Class&) const;
61 Class& operator&=(const Class&) const;
62 Class& operator|=(const Class&) const;
63 Class& operator^=(const Class&) const;
[all …]
H A Doperators-representation-to-traditional.cpp53 struct Class { struct
55 Class operator~() const;
56 bool operator&&(const Class&) const;
57 Class operator&(const Class&) const;
58 bool operator||(const Class&) const;
59 Class operator|(const Class&) const;
60 Class operator^(const Class&) const;
61 Class& operator&=(const Class&) const;
62 Class& operator|=(const Class&) const;
63 Class& operator^=(const Class&) const;
[all …]
/llvm-project/clang/test/SemaCXX/
H A Dexpression-traits.cpp181 struct Class : BaseClass struct
212 Class(); argument
213 Class(int,int);
228 ASSERT_LVALUE(::Class::function); // qualified-id: function in expr_prim_4() argument
229 ASSERT_LVALUE(::Class::variable); // qualified-id: variable in expr_prim_4()
237 __is_lvalue_expr(::Class::NestedFuncTemplate); // qualified-id: template \ in expr_prim_4()
240 __is_lvalue_expr(::Class::NestedMemfunTemplate); // qualified-id: template \ in expr_prim_4()
243 __is_lvalue_expr(::Class::operator+); // operator-function-id: template \ in expr_prim_4()
269 ASSERT_LVALUE(Class::dataMember); in expr_prim_7() argument
270 ASSERT_LVALUE(Class::StaticMemberFunction); in expr_prim_7()
[all …]
/llvm-project/llvm/unittests/TextAPI/
H A DRecordTests.cpp38 ObjCIFSymbolKind::Class | ObjCIFSymbolKind::MetaClass; in TEST()
39 ObjCInterfaceRecord Class{"NSObject", RecordLinkage::Exported, in TEST() local
44 EXPECT_TRUE(Class.isExported()); in TEST()
45 EXPECT_EQ(Class.isExported(), ClassEH.isExported()); in TEST()
46 EXPECT_FALSE(Class.hasExceptionAttribute()); in TEST()
50 EXPECT_TRUE(Class.isCompleteInterface()); in TEST()
52 EXPECT_TRUE(Class.isExportedSymbol(ObjCIFSymbolKind::MetaClass)); in TEST()
58 ObjCInterfaceRecord Class{"NSObject", RecordLinkage::Rexported, in TEST() local
60 EXPECT_EQ(Class.getLinkageForSymbol(ObjCIFSymbolKind::EHType), in TEST()
62 EXPECT_EQ(Class.getLinkageForSymbol(ObjCIFSymbolKind::MetaClass), in TEST()
[all …]
/llvm-project/clang-tools-extra/clangd/refactor/tweaks/
H A DSpecialMembers.cpp24 std::string buildSpecialMemberDeclarations(const CXXRecordDecl &Class) { in buildSpecialMemberDeclarations() argument
30 for (const auto &M : Class.methods()) { in buildSpecialMemberDeclarations()
53 llvm::formatv(MemberPattern, Class.getName(), in buildSpecialMemberDeclarations()
54 llvm::formatv(ParmPattern, Class.getName())), in buildSpecialMemberDeclarations()
102 Class = const_cast<CXXRecordDecl *>(N->ASTNode.get<CXXRecordDecl>()); in prepare()
103 if (!Class || !Class->isThisDeclarationADefinition() || Class->isUnion()) in prepare()
107 NeedCopy = !Class->hasUserDeclaredCopyConstructor() || in prepare()
108 !Class->hasUserDeclaredCopyAssignment(); in prepare()
109 NeedMove = !Class->hasUserDeclaredMoveAssignment() || in prepare()
110 !Class->hasUserDeclaredMoveConstructor(); in prepare()
[all …]
H A DMemberwiseConstructor.cpp50 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()
114 auto Edit = insertDecl(Code, *Class, std::move(Anchors), AS_public); in apply()
175 return Visitor(Class->getASTContext()) in considerField()
225 OS << Class->getName() << "("; in buildCode()
[all …]
/llvm-project/llvm/lib/Transforms/ObjCARC/
H A DDependencyAnalysis.cpp37 ARCInstKind Class) { in CanAlterRefCount() argument
38 switch (Class) { in CanAlterRefCount()
69 ARCInstKind Class) { in CanDecrementRefCount() argument
70 // First perform a quick check if Class can not touch ref counts. in CanDecrementRefCount()
71 if (!CanDecrementRefCount(Class)) in CanDecrementRefCount()
75 return CanAlterRefCount(Inst, Ptr, PA, Class); in CanDecrementRefCount()
81 ProvenanceAnalysis &PA, ARCInstKind Class) { in CanUse() argument
84 if (Class == ARCInstKind::Call) in CanUse()
130 ARCInstKind Class = GetARCInstKind(Inst); in Depends() local
131 switch (Class) { in Depends()
142 ARCInstKind Class = GetARCInstKind(Inst); Depends() local
155 ARCInstKind Class = GetARCInstKind(Inst); Depends() local
185 ARCInstKind Class = GetBasicARCInstKind(Inst); Depends() local
[all...]
/llvm-project/clang/test/SemaObjC/
H A Dcomptypes-1.m25 Class obj_C = nil;
26 Class<MyProtocol> obj_CP = nil;
41 … = obj_C; // expected-warning {{incompatible pointer types assigning to 'MyClass *' from 'Class'}}
42 …/ expected-warning {{incompatible pointer types assigning to 'MyClass *' from 'Class<MyProtocol>'}}
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'}}
61 …ected-warning {{incompatible pointer types assigning to 'MyOtherClass *' from 'Class<MyProtocol>'}}
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…
[all …]
H A Dcompare-qualified-class.m13 Class <SomeProtocol> classA;
14 Class <SomeProtocol> classB;
15 Class <SomeProtocol, SomeProtocol1> classC;
16 Class <SomeProtocol1> classD;
18 Class c = (Class)0;;
27 …// expected-warning {{comparison of distinct pointer types ('Class<SomeProtocol>' and 'Class<SomeP…
/llvm-project/clang/test/SemaObjCXX/
H A Dcomptypes-1.mm25 Class obj_C = nil;
26 Class<MyProtocol> obj_CP = nil;
41 …_c = obj_C; // expected-error {{incompatible pointer types assigning to 'MyClass *' from 'Class'}}
42 … // expected-error {{incompatible pointer types assigning to 'MyClass *' from 'Class<MyProtocol>'}}
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'}}
61 …xpected-error {{incompatible pointer types assigning to 'MyOtherClass *' from 'Class<MyProtocol>'}}
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…
[all …]
/llvm-project/llvm/include/llvm/Analysis/
H A DObjCARCInstKind.h56 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/llvm/tools/llvm-pdbutil/
H A DPrettyTypeDumper.cpp104 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()
122 auto Layout = std::make_unique<ClassLayout>(std::move(Class)); in filterAndSortClassDefs()
182 const PDBSymbolTypeUDT &Class) { in printClassDecl() argument
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()
191 WithColor(Printer, PDB_ColorItem::Keyword).get() << Class.getUdtKind() << " "; in printClassDecl()
[all …]
/llvm-project/clang/include/clang/AST/
H A DTypeLocNodes.def14 // 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 DTypeProperties.td12 let Class = ComplexType in {
20 let Class = PointerType in {
28 let Class = CountAttributedType in {
47 let Class = AdjustedType in {
58 let Class = DecayedType in {
68 let Class = BlockPointerType in {
76 let Class = ReferenceType in {
82 let Class = LValueReferenceType in {
93 let Class = RValueReferenceType in {
99 let Class
[all...]
/llvm-project/clang/test/SemaTemplate/
H A Dtemp_class_spec.cpp219 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>
244 struct is_member_function_pointer<T (Class::*)() const> {
248 template<typename T, typename Class>
249 struct is_member_function_pointer<T (Class::*)() volatile> {
253 template<typename T, typename Class>
254 struct is_member_function_pointer<T (Class::*)() const volatile> {
[all …]
/llvm-project/clang/test/CodeGenCXX/
H A Dmangle-ms-templates.cpp22 class Class { class
24 Class() {} in Class() function in Class
70 Class<Typename> c1; in template_mangling()
74 Class<const Typename> c1_const; in template_mangling()
77 Class<volatile Typename> c1_volatile; in template_mangling()
80 Class<const volatile Typename> c1_cv; in template_mangling()
84 Class<Nested<Typename> > c2; in template_mangling()
88 Class<int * const> c_intpc; in template_mangling()
91 Class<int()> c_ft; in template_mangling()
94 Class<int[]> c_inti; in template_mangling()
[all …]
/llvm-project/llvm/include/llvm/IR/
H A DInstruction.def25 #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)
95 #define HANDLE_FUNCLETPAD_INST(num, opcode, Class)
97 #define HANDLE_FUNCLETPAD_INST(num, opcode, Class) HANDLE_INST(num, opcode, Class)
[all …]
/llvm-project/clang/test/CodeGenObjC/
H A Did-isa-codegen.m4 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
30 static Class MyClass;
32 Class Test(const void *inObject1) {
60 Class dynamicSubclass;
/llvm-project/llvm/include/llvm/DebugInfo/CodeView/
H A DCodeView.h53 #define CV_DEFINE_ENUM_CLASS_FLAGS_OPERATORS(Class) \ argument
54 inline Class operator|(Class a, Class b) { \
55 return static_cast<Class>(llvm::to_underlying(a) | \
58 inline Class operator&(Class a, Class b) { \
59 return static_cast<Class>(llvm::to_underlying(a) & \
62 inline Class operator~(Class a) { \
63 return static_cast<Class>(~llvm::to_underlying(a)); \
65 inline Class &operator|=(Class &a, Class b) { \
69 inline Class &operator&=(Class &a, Class b) { \
/llvm-project/llvm/lib/Analysis/
H A DObjCARCInstKind.cpp29 const ARCInstKind Class) { in operator <<() argument
30 switch (Class) { in operator <<()
226 ARCInstKind Class = GetFunctionClass(F); in GetARCInstKind() local
227 if (Class != ARCInstKind::CallOrUser) in GetARCInstKind()
228 return Class; in GetARCInstKind()
310 bool llvm::objcarc::IsUser(ARCInstKind Class) { in IsUser() argument
311 switch (Class) { in IsUser()
344 bool llvm::objcarc::IsRetain(ARCInstKind Class) { in IsRetain() argument
345 switch (Class) { in IsRetain()
380 bool llvm::objcarc::IsAutorelease(ARCInstKind Class) { in IsAutorelease() argument
[all …]
/llvm-project/lldb/test/Shell/SymbolFile/PDB/Inputs/
H A DClassLayoutTest.cpp74 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/llvm/test/TableGen/
H A Ddeftype.td8 class Class<int v> {
20 deftype ClassList = list<Class>;
33 // CHECK-NEXT: list<Class> defs = [anonymous_0, anonymous_1, anonymous_2];
44 ClassListAlias defs = [Class<1>, Class<2>, Class<3>];
53 // ERROR2: [[@LINE+1]]:9: error: type of this name 'Class' already exists
54 deftype Class = int;
58 // ERROR3: [[@LINE+1]]:22: error: cannot define type alias for class type 'Class'
59 deftype ClassAlias = Class;
/llvm-project/libcxx/test/std/utilities/meta/meta.unary.prop.query/
H A Dvoid_t.pass.cpp47 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()

12345678910>>...59