Lines Matching full:variable
1 // RUN: %clang_cc1 -Wunused-variable -analyze -analyzer-checker=core,deadcode.DeadStores,deadcode.IdempotentOperations -fblocks -verify -Wno-unreachable-code -analyzer-opt-analyze-nested-blocks %s
2 // RUN: %clang_cc1 -Wunused-variable -analyze -analyzer-checker=core,deadcode.DeadStores,deadcode.IdempotentOperations -analyzer-store=region -analyzer-constraints=basic -fblocks -verify -Wno-unreachable-code -analyzer-opt-analyze-nested-blocks %s
3 // RUN: %clang_cc1 -Wunused-variable -analyze -analyzer-checker=core,deadcode.DeadStores,deadcode.IdempotentOperations -analyzer-store=region -analyzer-constraints=range -fblocks -verify -Wno-unreachable-code -analyzer-opt-analyze-nested-blocks %s
6 int k, y; // expected-warning{{unused variable 'k'}} expected-warning{{unused variable 'y'}}
8 long idx=abc+3*5; // expected-warning {{never read}} expected-warning{{unused variable 'idx'}}
13 char *d = b+1; // expected-warning {{never read}} expected-warning{{unused variable 'd'}}
41 int *p = &x; // expected-warning{{never read}} expected-warning{{unused variable 'p'}}
109 int x = y; // expected-warning{{unused variable 'x'}}
149 int z[count]; // expected-warning{{unused variable 'z'}}
404 int shouldLog = (argc > 1); // expected-warning{{Value stored to 'shouldLog' during its initialization is never read}} expected-warning{{unused variable 'shouldLog'}}
414 int z = x + y; // expected-warning{{Value stored to 'z' during its initialization is never read}} expected-warning{{unused variable 'z'}}
445 // This example shows that writing to a variable captured by a block means that it might