Searched refs:casts (Results 1 – 25 of 85) sorted by relevance
1234
9 …d*)arg; // expected-error{{C-style cast from 'id' to '__autoreleasing id *' casts away qualifiers}}10 …(void)(id*)arg; // expected-error{{C-style cast from 'id' to '__strong id *' casts away qualifiers…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}}[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
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
30 // OSAtomicCompareAndSwap64Barrier, which doesn't have special casts
324 // Test that we handle casts of string literals to arbitrary types.333 // Test that we handle casts *from* incomplete struct types.351 // Handle casts of function pointers (CodeTextRegions) to arbitrary pointer457 // This case tests that CastRegion handles casts involving BlockPointerTypes.493 // PR 4594 - This was a crash when handling casts in SimpleSValuator.519 // This resulted from not properly handling region casts to 'const void*'.863 // Handle casts from symbolic regions (packaged as integers) to doubles.890 // Handle casts of a function to a function pointer with a different return904 // Same as previous case, but handle casts to 'void'.
3 group c_cast "C-style casts"100 end # casts
64 This scheme checks that pointer casts are made to an object of the correct69 Bad casts are not in themselves control flow integrity violations, but they73 There are two types of bad cast that may be forbidden: bad casts75 ``-fsanitize=cfi-derived-cast``), and bad casts from a pointer of79 The difference between these two types of casts is that the first is defined123 its base. By default, casts to such classes are checked as if they were made
1 ; Extracted from test/CodeGen/Generic/vector-casts.ll: used to loop indefinitely.
5 ; CHECK: casts6 define void @casts() {
8 @C = global i32 trunc (i64 42 to i32) ; Integral casts
3 // test that we generate address space casts everywhere we need conversions of
116 void casts(int *ip) { in casts() function
6 ; without needing casts.
3 ; ScalarEvolution should be able to understand the loop and eliminate the casts.
6 ; value sufficient to fold away both sext casts.
46 ;; getelementptr containing casts