Home
last modified time | relevance | path

Searched full:id (Results 1 – 25 of 6908) sorted by relevance

12345678910>>...277

/llvm-project/clang/test/SemaObjCXX/
H A Dobjc-weak-type-traits.mm12 struct HasStrong { id obj; };
13 struct HasWeak { __weak id obj; };
14 struct HasUnsafeUnretained { __unsafe_unretained id obj; };
17 TRAIT_IS_TRUE(__has_nothrow_assign, __strong id);
18 TRAIT_IS_TRUE(__has_nothrow_assign, __weak id);
19 TRAIT_IS_TRUE(__has_nothrow_assign, __autoreleasing id);
20 TRAIT_IS_TRUE(__has_nothrow_assign, __unsafe_unretained id);
26 TRAIT_IS_TRUE(__has_nothrow_copy, __strong id);
27 TRAIT_IS_TRUE(__has_nothrow_copy, __weak id);
28 TRAIT_IS_TRUE(__has_nothrow_copy, __autoreleasing id);
[all …]
H A Darc-type-traits.mm16 struct HasStrong { id obj; };
17 struct HasWeak { __weak id obj; };
18 struct HasUnsafeUnretained { __unsafe_unretained id obj; };
21 TRAIT_IS_TRUE(__has_nothrow_assign, __strong id);
22 TRAIT_IS_TRUE(__has_nothrow_assign, __weak id);
23 TRAIT_IS_TRUE(__has_nothrow_assign, __autoreleasing id);
24 TRAIT_IS_TRUE(__has_nothrow_assign, __unsafe_unretained id);
30 TRAIT_IS_TRUE(__has_nothrow_copy, __strong id);
31 TRAIT_IS_TRUE(__has_nothrow_copy, __weak id);
32 TRAIT_IS_TRUE(__has_nothrow_copy, __autoreleasing id);
[all …]
H A Darc-type-conversion.mm3 void * cvt(id arg) // expected-note{{candidate function not viable: cannot convert argument of inco…
7 (void)(id)arg;
8 …(void)(__autoreleasing id*)arg; // expected-error{{cast of an Objective-C pointer to '__autoreleas…
9 …(void)(id*)arg; // expected-error{{cast of an Objective-C pointer to '__strong id *' is disallowed…
11 (void)(__autoreleasing id**)voidp_val;
16 (void)(__strong id**)(0);
19 …cted-error{{cannot initialize return object of type 'void *' with an lvalue of type '__strong id'}}
34 void static_casts(id arg) {
36 …(void)static_cast<int*>(arg); // expected-error {{cannot cast from type 'id' to pointer type 'int …
37 (void)static_cast<id>(arg);
[all …]
H A Darc-overloading.mm4 int &f0(id __strong const *); // expected-note{{candidate function not viable: 1st argument ('__wea…
7 id __strong *sip;
8 id __strong const *csip;
9 id __weak *wip;
10 id __autoreleasing *aip;
11 id __unsafe_unretained *uip;
21 int &f1(id __strong const *);
22 float &f1(id __weak const *);
25 id __strong *sip;
26 id __strong const *csip;
[all …]
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines/
H A Dnarrowing-conversions-bitfields.cpp
/llvm-project/clang/lib/Driver/
H A DTypes.cpp23 ID PreprocessedType;
28 constexpr PhasesBitSet(std::initializer_list<phases::ID> Phases) {
29 for (auto Id : Phases)
30 Bits |= 1 << Id;
32 bool contains(phases::ID Id) const { return Bits & (1 << Id); } in PhasesBitSet() local
37 #define TYPE(NAME, ID, PP_TYPE, TEMP_SUFFIX, ...) \
44 static const TypeInfo &getInfo(unsigned id) {
45 assert(id >
40 TYPE(NAME,ID,PP_TYPE,TEMP_SUFFIX,...) global() argument
47 getInfo(unsigned id) getInfo() argument
52 getTypeName(ID Id) getTypeName() argument
56 getPreprocessedType(ID Id) getPreprocessedType() argument
64 isPreprocessedModuleType(ID Id) isPreprocessedModuleType() argument
68 isPreprocessedHeaderUnitType(ID Id) isPreprocessedHeaderUnitType() argument
73 getPrecompiledType(ID Id) getPrecompiledType() argument
83 getTypeTempSuffix(ID Id,bool CLStyle) getTypeTempSuffix() argument
100 onlyPrecompileType(ID Id) onlyPrecompileType() argument
105 canTypeBeUserSpecified(ID Id) canTypeBeUserSpecified() argument
117 appendSuffixForType(ID Id) appendSuffixForType() argument
122 canLipoType(ID Id) canLipoType() argument
129 isAcceptedByClang(ID Id) isAcceptedByClang() argument
162 isAcceptedByFlang(ID Id) isAcceptedByFlang() argument
176 isDerivedFromC(ID Id) isDerivedFromC() argument
217 isObjC(ID Id) isObjC() argument
230 isOpenCL(ID Id) isOpenCL() argument
232 isCXX(ID Id) isCXX() argument
255 isLLVMIR(ID Id) isLLVMIR() argument
268 isCuda(ID Id) isCuda() argument
280 isHIP(ID Id) isHIP() argument
292 isHLSL(ID Id) isHLSL() argument
294 isSrcFile(ID Id) isSrcFile() argument
373 types::ID Id = (types::ID) (i + 1); lookupTypeForTypeSpecifier() local
386 getCompilationPhases(ID Id,phases::ID LastPhase) getCompilationPhases() argument
398 getCompilationPhases(const clang::driver::Driver & Driver,llvm::opt::DerivedArgList & DAL,ID Id) getCompilationPhases() argument
402 lookupCXXTypeForCType(ID Id) lookupCXXTypeForCType() argument
418 lookupHeaderTypeForSourceType(ID Id) lookupHeaderTypeForSourceType() argument
[all...]
/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVInstrInfo.td18 def ASSIGN_TYPE: Pseudo<(outs ID:$dst_id), (ins ID:$src_id, TYPE:$src_ty)>;
19 def DECL_TYPE: Pseudo<(outs ID:$dst_id), (ins ID:$src_id, TYPE:$src_ty)>;
35 : Op<opCode, (outs ID:$dst), (ins TYPE:$src_ty, ID:$src, ID:$src2),
91 : Op<opCode, (outs ID:$dst), (ins TYPE:$type, ID:$src),
102 def OpUndef: Op<1, (outs ID
[all...]
/llvm-project/llvm/test/CodeGen/AMDGPU/
H A Dshrink-vop3-carry-out.mir22 - { id: 0, class: sgpr_64 }
23 - { id: 1, class: sreg_32_xm0 }
24 - { id: 2, class: sgpr_32 }
25 - { id: 3, class: vgpr_32 }
26 - { id: 4, class: sreg_64_xexec }
27 - { id: 5, class: sreg_64_xexec }
28 - { id: 6, class: sreg_32 }
29 - { id: 7, class: sreg_32 }
30 - { id: 8, class: sreg_32_xm0 }
31 - { id
[all...]
H A Dfold-immediate-output-mods.mir11 - { id: 0, class: sgpr_64 }
12 - { id: 1, class: sreg_32_xm0 }
13 - { id: 2, class: sgpr_32 }
14 - { id: 3, class: vgpr_32 }
15 - { id: 4, class: sreg_64_xexec }
16 - { id: 5, class: sreg_64_xexec }
17 - { id: 6, class: sreg_64_xexec }
18 - { id: 7, class: sreg_32 }
19 - { id: 8, class: sreg_32 }
20 - { id
[all...]
H A Dsdwa-scalar-ops.mir101 - { id: 0, class: sreg_64 }
102 - { id: 1, class: sreg_64 }
103 - { id: 2, class: vgpr_32 }
104 - { id: 3, class: sgpr_128 }
105 - { id: 4, class: sgpr_64 }
106 - { id: 5, class: sreg_32_xm0 }
107 - { id: 6, class: sgpr_32 }
108 - { id: 7, class: sreg_64 }
109 - { id: 8, class: sreg_64 }
110 - { id: 9, class: sreg_64_xexec }
[all …]
H A Dclamp-omod-special-case.mir10 - { id: 0, class: sgpr_64 }
11 - { id: 1, class: sreg_32_xm0 }
12 - { id: 2, class: sgpr_32 }
13 - { id: 3, class: vgpr_32 }
14 - { id: 4, class: sreg_64_xexec }
15 - { id: 5, class: sreg_64_xexec }
16 - { id: 6, class: sreg_32 }
17 - { id: 7, class: sreg_32 }
18 - { id: 8, class: sreg_32_xm0 }
19 - { id: 9, class: sreg_64 }
[all …]
/llvm-project/llvm/test/CodeGen/SystemZ/
H A DRAbasic-invalid-LR-update.mir23 # CHECK: id: 114, class
31 - { id: 0, class: vr128bit }
32 - { id: 1, class: vr128bit }
33 - { id: 2, class: vr128bit }
34 - { id: 3, class: vr64bit }
35 - { id: 4, class: gr64bit }
36 - { id: 5, class: vr128bit }
37 - { id: 6, class: grx32bit }
38 - { id: 7, class: vr128bit }
39 - { id: 8, class: vr128bit }
[all …]
H A Dclear-liverange-spillreg.mir28 - { id: 0, class: addr64bit }
29 - { id: 1, class: addr64bit }
30 - { id: 2, class: grx32bit }
31 - { id: 3, class: grx32bit }
32 - { id: 4, class: gr32bit }
33 - { id: 5, class: gr32bit }
34 - { id: 6, class: addr64bit }
35 - { id: 7, class: addr64bit }
36 - { id: 8, class: gr64bit }
37 - { id: 9, class: grx32bit }
[all …]
/llvm-project/polly/lib/External/isl/
H A Disl_id.c15 #define EL_BASE id
31 isl_ctx *isl_id_get_ctx(__isl_keep isl_id *id) in isl_id_get_ctx() argument
33 return id ? id->ctx : NULL; in isl_id_get_ctx()
36 void *isl_id_get_user(__isl_keep isl_id *id) in isl_id_get_user() argument
38 return id ? id->user : NULL; in isl_id_get_user()
41 const char *isl_id_get_name(__isl_keep isl_id *id) in isl_id_get_name() argument
43 return id ? id->name : NULL; in isl_id_get_name()
49 isl_id *id; in id_alloc() local
53 id = isl_calloc_type(ctx, struct isl_id); in id_alloc()
54 if (!id) in id_alloc()
[all …]
/llvm-project/clang/test/SemaObjC/
H A Darc-type-conversion.m4 CFTypeRef CFBridgingRetain(id X);
5 id CFBridgingRelease(CFTypeRef);
7 void * cvt(id arg)
11 (void)(id)arg;
12 …(void)(__autoreleasing id*)arg; // expected-error {{cast of an Objective-C pointer to '__autorelea…
13 …(void)(id*)arg; // expected-error {{cast of an Objective-C pointer to '__strong id *' is disallowe…
15 (void)(__autoreleasing id**)voidp_val;
18 …cvt((void*)arg); // expected-error {{cast of Objective-C pointer type 'id' to C pointer type 'void…
19 …mplicit conversion of C pointer type 'void *' to Objective-C pointer type 'id' requires a bridged …
24 (void)(__strong id**)(0);
[all …]
H A Dmrc-weak.m5 @property (weak) id wa; // expected-note {{property declared here}}
6 @property (weak) id wb;
7 @property (weak) id wc; // expected-note {{property declared here}}
8 @property (weak) id wd;
9 @property (unsafe_unretained) id ua;
10 @property (unsafe_unretained) id ub; // expected-note {{property declared here}}
11 @property (unsafe_unretained) id uc;
12 @property (unsafe_unretained) id ud;
13 @property (strong) id sa;
14 @property (strong) id sb; // expected-note {{property declared here}}
[all …]
H A Dcocoa-api-usage.m.fixed11 + (id)alloc;
15 + (id)stringWithString:(NSString *)string;
16 - (id)initWithString:(NSString *)aString;
20 - (id)objectAtIndex:(unsigned long)index;
21 - (id)objectAtIndexedSubscript:(int)index;
25 + (id)array;
26 + (id)arrayWithObject:(id)anObject;
27 + (id)arrayWithObjects:(const id [])objects count:(unsigned long)cnt;
28 + (id)arrayWithObjects:(id)firstObj, ...;
29 + (id)arrayWithArray:(NSArray *)array;
[all …]
H A Dcocoa-api-usage.m11 + (id)alloc;
15 + (id)stringWithString:(NSString *)string;
16 - (id)initWithString:(NSString *)aString;
20 - (id)objectAtIndex:(unsigned long)index;
21 - (id)objectAtIndexedSubscript:(int)index;
25 + (id)array;
26 + (id)arrayWithObject:(id)anObject; argument
27 + (id)arrayWithObjects:(const id [])objects count:(unsigned long)cnt; argument
28 + (id)arrayWithObjects:(id)firstObj, ...; argument
29 + (id)arrayWithArray:(NSArray *)array;
[all …]
H A Dattr-designated-init.m9 -(id)init NS_DESIGNATED_INITIALIZER; // expected-error {{only applies to init methods of interface … argument
15 -(id)init NS_DESIGNATED_INITIALIZER; argument
16 +(id)init NS_DESIGNATED_INITIALIZER; // expected-error {{only applies to init methods of interface … argument
20 -(id)init2 NS_DESIGNATED_INITIALIZER; // expected-error {{only applies to init methods of interface… argument
24 -(id)init3 NS_DESIGNATED_INITIALIZER; category
29 -(id)init NS_DESIGNATED_INITIALIZER { return 0; } // expected-error {{only applies to init methods … argument
30 +(id)init { return 0; }
31 -(id)init3 { return 0; }
32 -(id)init4 NS_DESIGNATED_INITIALIZER { return 0; } // expected-error {{only applies to init methods… argument
38 -(id)initB1 NS_DESIGNATED_INITIALIZER; // expected-note 6 {{method marked as designated initializer… argument
[all …]
/llvm-project/clang/include/clang/Driver/
H A DTypes.h23 enum ID { enum
25 #define TYPE(NAME, ID, PP_TYPE, TEMP_SUFFIX, ...) TY_##ID, argument
31 /// getTypeName - Return the name of the type for \p Id.
32 const char *getTypeName(ID Id);
34 /// getPreprocessedType - Get the ID of the type for this input when
37 ID getPreprocessedType(ID Id);
39 /// getPrecompiledType - Get the ID of the type for this input when
42 ID getPrecompiledType(ID Id);
46 const char *getTypeTempSuffix(ID Id, bool CLStyle = false);
49 bool onlyPrecompileType(ID Id);
[all …]
/llvm-project/clang/test/ARCMT/
H A Dobjcmt-instancetype.m10 + (id)alloc;
14 + (id)stringWithString:(NSString *)string;
15 - (id)initWithString:(NSString *)aString;
19 + (id)stringWithString:(NSString *)string { return 0; };
24 - (id)objectAtIndex:(unsigned long)index;
25 - (id)objectAtIndexedSubscript:(int)index;
29 + (id)array;
30 + (id)arrayWithObject:(id)anObject; argument
31 + (id)arrayWithObjects:(const id [])objects count:(unsigned long)cnt; argument
32 + (id)arrayWithObjects:(id)firstObj, ...; argument
[all …]
H A Dobjcmt-subscripting-literals.m.result12 + (id)alloc;
19 + (id)stringWithString:(NSString *)string;
20 - (id)initWithString:(NSString *)aString;
24 - (id)objectAtIndex:(unsigned long)index;
28 - (id)objectAtIndexedSubscript:(unsigned)idx;
32 + (id)array;
33 + (id)arrayWithObject:(id)anObject;
34 + (id)arrayWithObjects:(const id [])objects count:(unsigned long)cnt;
35 + (id)arrayWithObjects:(id)firstObj, ...;
36 + (id)arrayWithArray:(NSArray *)array;
[all …]
H A Dobjcmt-subscripting-literals-in-arc.m.result12 + (id)alloc;
19 + (id)stringWithString:(NSString *)string;
20 - (id)initWithString:(NSString *)aString;
24 - (id)objectAtIndex:(unsigned long)index;
28 - (id)objectAtIndexedSubscript:(unsigned)idx;
32 + (id)array;
33 + (id)arrayWithObject:(id)anObject;
34 + (id)arrayWithObjects:(const id [])objects count:(unsigned long)cnt;
35 + (id)arrayWithObjects:(id)firstObj, ...;
36 + (id)arrayWithArray:(NSArray *)array;
[all …]
/llvm-project/llvm/test/CodeGen/ARM/GlobalISel/
H A Darm-regbankselect.mir112 # CHECK: - { id: 0, class: gprb, preferred-register: '', flags: [ ] }
113 # CHECK: - { id: 1, class: gprb, preferred-register: '', flags: [ ] }
114 # CHECK: - { id: 2, class: gprb, preferred-register: '', flags: [ ] }
117 - { id: 0, class: _ }
118 - { id: 1, class: _ }
119 - { id: 2, class: _ }
138 # CHECK: - { id: 0, class: gprb, preferred-register: '', flags: [ ] }
139 # CHECK: - { id: 1, class: gprb, preferred-register: '', flags: [ ] }
140 # CHECK: - { id: 2, class: gprb, preferred-register: '', flags: [ ] }
143 - { id
[all...]
/llvm-project/clang/lib/Serialization/
H A DASTCommon.cpp30 unsigned ID = 0; in TypeIdxFromBuiltin()
33 ID = PREDEF_TYPE_VOID_ID; in TypeIdxFromBuiltin()
36 ID = PREDEF_TYPE_BOOL_ID; in TypeIdxFromBuiltin()
39 ID = PREDEF_TYPE_CHAR_U_ID; in TypeIdxFromBuiltin()
42 ID = PREDEF_TYPE_UCHAR_ID; in TypeIdxFromBuiltin()
45 ID = PREDEF_TYPE_USHORT_ID; in TypeIdxFromBuiltin()
48 ID = PREDEF_TYPE_UINT_ID; in TypeIdxFromBuiltin()
51 ID = PREDEF_TYPE_ULONG_ID; in TypeIdxFromBuiltin()
54 ID = PREDEF_TYPE_ULONGLONG_ID; in TypeIdxFromBuiltin()
57 ID in TypeIdxFromBuiltin()
27 unsigned ID = 0; TypeIdxFromBuiltin() local
216 IMAGE_TYPE(ImgType,Id,SingletonId,Access,Suffix) TypeIdxFromBuiltin() argument
221 EXT_OPAQUE_TYPE(ExtType,Id,Ext) TypeIdxFromBuiltin() argument
241 SVE_TYPE(Name,Id,SingletonId) TypeIdxFromBuiltin() argument
246 PPC_VECTOR_TYPE(Name,Id,Size) TypeIdxFromBuiltin() argument
251 RVV_TYPE(Name,Id,SingletonId) TypeIdxFromBuiltin() argument
256 WASM_TYPE(Name,Id,SingletonId) TypeIdxFromBuiltin() argument
261 AMDGPU_TYPE(Name,Id,SingletonId) TypeIdxFromBuiltin() argument
[all...]

12345678910>>...277