Lines Matching refs:p

6   int *p;  member
9 reset(p - 1); in foo()
12 while (in != p) // Loop must be entered. in reset()
20 littleX.p = in; in test()
32 Base *p = d; in checkPolymorphicUse() local
33 ++p; // expected-warning{{Pointer arithmetic on a pointer to base class is dangerous}} in checkPolymorphicUse()
38 char *p = (char*)&l; in checkBitCasts() local
39 p = p+2; in checkBitCasts()
44 int *p = t; in checkBasicarithmetic() local
45 ++p; in checkBasicarithmetic()
47 p = &a; in checkBasicarithmetic()
48 …++p; // expected-warning{{Pointer arithmetic on non-array variables relies on memory layout, which… in checkBasicarithmetic()
49 p = p + 2; // expected-warning{{}} in checkBasicarithmetic()
50 p = 2 + p; // expected-warning{{}} in checkBasicarithmetic()
51 p += 2; // expected-warning{{}} in checkBasicarithmetic()
52 a += p[2]; // expected-warning{{}} in checkBasicarithmetic()
53 p = i*0 + p; in checkBasicarithmetic()
54 p = p + i*0; in checkBasicarithmetic()
55 p += i*0; in checkBasicarithmetic()
58 void checkArithOnSymbolic(int*p) { in checkArithOnSymbolic() argument
59 ++p; in checkArithOnSymbolic()
60 p = p + 2; in checkArithOnSymbolic()
61 p = 2 + p; in checkArithOnSymbolic()
62 p += 2; in checkArithOnSymbolic()
63 (void)p[2]; in checkArithOnSymbolic()
72 int * p = s.t; in arrayInStruct() local
73 ++p; in arrayInStruct()
75 p = sp->t; in arrayInStruct()
76 ++p; in arrayInStruct()
81 int *p = new int; in checkNew() local
82 p[1] = 1; // expected-warning{{}} in checkNew()
113 bool ptrAsIntegerSubtractionNoCrash(__UINTPTR_TYPE__ x, char *p) { in ptrAsIntegerSubtractionNoCrash() argument
114 __UINTPTR_TYPE__ y = (__UINTPTR_TYPE__)p - 1; in ptrAsIntegerSubtractionNoCrash()
119 bool integerAsPtrSubtractionNoCrash(char *p, __UINTPTR_TYPE__ m) { in integerAsPtrSubtractionNoCrash() argument
120 auto n = p - reinterpret_cast<char*>((__UINTPTR_TYPE__)1); in integerAsPtrSubtractionNoCrash()
134 int parse(parse_t *p) { in parse() argument
135 unsigned copy = p->bits2; in parse()