Searched refs:casts (Results 1 – 25 of 165) sorted by relevance
1234567
73 …ected-error{{reinterpret_cast from '__strong id const *' to '__strong id *' casts away qualifiers}}74 … expected-error{{reinterpret_cast from '__weak id const *' to '__weak id *' casts away qualifiers}}75 …xpected-error{{reinterpret_cast from '__strong id const *' to '__weak id *' casts away qualifiers}}76 …xpected-error{{reinterpret_cast from '__weak id const *' to '__strong id *' casts away qualifiers}}81 // C-style casts aren't allowed to change Objective-C ownership84 …)wip; // expected-error{{C-style cast from '__weak id *' to '__strong id *' casts away qualifiers}}85 …// expected-error{{C-style cast from '__weak id const *' to '__strong id *' casts away qualifiers}}86 …)sip; // expected-error{{C-style cast from '__strong id *' to '__weak id *' casts away qualifiers}}87 …// expected-error{{C-style cast from '__strong id const *' to '__weak id *' casts away qualifiers}}89 …// expected-error{{C-style cast from '__weak id *' to '__strong id const *' casts away qualifiers}}[all …]
4 // We don't currently have a way to write ARC/C++ bridge casts in terms of C++5 // casts, so ensure we don't emit an old-style-cast warning in these cases.
19 …ransfer id)CFCreateSomething(); // expected-warning {{'__bridge_transfer' casts have no effect whe…20 …fer NSString*)CFCreateString(); // expected-warning {{'__bridge_transfer' casts have no effect whe…27 …ed CFTypeRef)CreateSomething(); // expected-warning {{'__bridge_retained' casts have no effect whe…28 …d CFStringRef)CreateNSString(); // expected-warning {{'__bridge_retained' casts have no effect whe…38 #pragma clang diagnostic ignored "-Warc-bridge-casts-disallowed-in-nonarc"
21 /* All these casts should generate no warnings. */
1 ; Tests to make sure elimination of casts is working correctly22 ; These casts should be folded away.32 ; These casts should be folded away.42 ; These casts should be folded away.52 ; These casts should not be folded away.62 ; These casts should not be folded away.72 ; These casts should also be folded away.
1 ; Tests to make sure elimination of casts is working correctly
6 ; test1 - Eliminating the casts in this testcase (by narrowing the AND
28 function expose(obj, src, method, casts) { argument30 for (index in casts)31 arguments[index] = new (casts[index])(arguments[index]);
1 ; Tests to make sure elimination of casts is working correctly20 ; These casts should be folded away.30 ; These casts should also be folded away.
4 // Test function pointer casts.15 // Test casts from void* to function pointers.
4 // <rdar://problem/11405978> - Handle casts of vectors to structs, and loading
3 group c_cast "C-style casts"100 end # casts
126 This scheme checks that pointer casts are made to an object of the correct131 Bad casts are not in themselves control flow integrity violations, but they135 There are two types of bad cast that may be forbidden: bad casts137 ``-fsanitize=cfi-derived-cast``), and bad casts from a pointer of141 The difference between these two types of casts is that the first is defined182 its base. By default, casts to such classes are checked as if they were made
5 ; CHECK: casts6 define void @casts() {
1 ; Extracted from test/CodeGen/Generic/vector-casts.ll: used to loop indefinitely.
14 ; can get earlier expanded values invalidated when casts are used. This test35 ; Because of the PHIs the existing casts won't be at the desired location so a
1 ; The CBE should not emit code that casts the function pointer. This causes
14 --no-space-after-casts
24 # Windows C++ stdlib headers that contain bad unrelated casts.