Lines Matching +full:unused +full:- +full:variable
1 …%clang_cc1 -verify -Wused-but-marked-unused -Wno-objc-protocol-method-implementation -Wunused -Wun…
20 - (int)length;
24 …ess example call for test purposes".length; // expected-warning {{property access result unused - …
28 - (int)meth: (int)x : (int)y : (int)z ;
32 - (int) meth: (int)x: // expected-warning {{'x' used as the name of the previous parameter rather t…
33 … // expected-note {{introduce a parameter name to make 'x' part of the selector}} \
34 …// expected-note {{or insert whitespace before ':' to use 'x' as parameter name and have an empty …
36 (int)y: // expected-warning {{unused}} expected-warning {{'y' used as the name of the previous pa…
37 // expected-note {{introduce a parameter name to make 'y' part of the selector}} \
38 …// expected-note {{or insert whitespace before ':' to use 'y' as parameter name and have an empty …
39 (int) __attribute__((unused))z { return x; } argument
42 //===------------------------------------------------------------------------===
43 // The next test shows how clang accepted attribute((unused)) on ObjC
45 //===------------------------------------------------------------------------===
48 #define UNUSED_IVAR __attribute__((unused))
50 #error __attribute__((unused)) not supported on ivars
54 id y __attribute__((unused)); // no-warning
55 id x UNUSED_IVAR; // no-warning
60 static NSString *x = @"hi"; // expected-warning {{unused variable 'x'}}
64 - (void) a __attribute__((unused)); argument
65 - (void) b __attribute__((unused)); argument
72 - (void) b {}
73 - (void) a { [self b]; }
77 // unused variable warnings.
80 __attribute__((objc_precise_lifetime)) id y = x; // no-warning
115 - (void)method {
117 …self.getOrCreateGroup; // expected-warning {{property access result unused - getters should not be…
118 …self.group; // expected-warning {{property access result unused - getters should not be used for s…
123 - (id)getOrCreateGroup {