Lines Matching +full:unused +full:- +full:variable
1 // RUN: %clang_cc1 -fblocks -analyze -analyzer-checker=osx.cocoa.UnusedIvars -verify -Wno-objc-root…
3 //===--- BEGIN: Delta-debugging reduced headers. --------------------------===//
6 - (id)retain;
7 - (oneway void)release;
10 - (id)init;
14 //===--- END: Delta-debugging reduced headers. ----------------------------===//
16 // This test case tests the basic functionality of the unused ivar test.
19 int x; // expected-warning {{Instance variable 'x' in class 'TestA' is never used}}
24 // This test case tests whether the unused ivar check handles blocks that
25 // reference an instance variable. (<rdar://problem/7075531>)
28 id _ivar; // no-warning
34 - (id)ivar {
41 - (void)setIvar:(id)newValue {
47 //===----------------------------------------------------------------------===//
50 //===----------------------------------------------------------------------===//
53 - (id) getId;
58 id x; // no-warning
63 - (id) getId {
68 //===----------------------------------------------------------------------===//
69 // <rdar://problem/7254495> - ivars referenced by lexically nested functions
70 // should not be flagged as unused
71 //===----------------------------------------------------------------------===//
75 int x; // no-warning
81 return a->x;
85 //===----------------------------------------------------------------------===//
86 // <rdar://problem/7353683> - consult attribute((unused)) to silence warnings
87 // about unused instance variables
88 //===----------------------------------------------------------------------===//
92 id x __attribute__((unused));
98 //===----------------------------------------------------------------------===//
99 // <rdar://problem/8481311> Unused bitfield ivars trigger cause weird
100 // diagnostic: "Instance variable '' in class..."
101 //===----------------------------------------------------------------------===//
105 …unsigned bitfield:1; // expected-warning {{Instance variable 'bitfield' in class 'RDar8481311' is …
128 - (void)useWorkspace {