Searched refs:cip (Results 1 – 8 of 8) sorted by relevance
| /llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/misc/ |
| H A D | misplaced-const.c | 5 typedef const int *cip; typedef 13 const cip i2 = 0; // const applies to both pointer and pointee. in func() 27 const cip i2, in func2() 36 const cip i2;
|
| /llvm-project-15.0.7/clang/test/SemaCXX/ |
| H A D | overloaded-builtin-operators.cpp | 143 void test_with_ptrs(VolatileIntPtr vip, ConstIntPtr cip, ShortRef sr, in test_with_ptrs() argument 145 const int& cir1 = cip[sr]; in test_with_ptrs() 146 const int& cir2 = sr[cip]; in test_with_ptrs() 149 bool b1 = (vip == cip); in test_with_ptrs() 150 long p1 = vip - cip; in test_with_ptrs() 168 int const &icr2 = 17[cip]; in test_with_ptrs()
|
| H A D | address-space-conversion.cpp | 27 const int *cip, in test_const_cast() argument 46 (void)const_cast<int_ptr>(cip); in test_const_cast()
|
| /llvm-project-15.0.7/clang/test/CodeGen/ |
| H A D | conditional.c | 23 const int* cip; in test5() local 25 cip = 0 ? vp : cip; in test5()
|
| /llvm-project-15.0.7/clang/test/Sema/ |
| H A D | conditional-expr.c | 22 const int *cip; in foo() local 23 vp = (0 ? vp : cip); // expected-warning {{discards qualifiers}} in foo() 24 vp = (0 ? cip : vp); // expected-warning {{discards qualifiers}} in foo()
|
| H A D | format-strings-scanf.c | 175 void test_qualifiers(const int *cip, volatile int* vip, in test_qualifiers() argument 178 …scanf("%d", cip); // expected-warning{{format specifies type 'int *' but the argument has type 'co… in test_qualifiers() 179 …scanf("%n", cip); // expected-warning{{format specifies type 'int *' but the argument has type 'co… in test_qualifiers()
|
| H A D | format-strings.c | 706 void test_qualifiers(volatile int *vip, const int *cip, in test_qualifiers() argument 708 …printf("%n", cip); // expected-warning{{format specifies type 'int *' but the argument has type 'c… in test_qualifiers() 712 printf("%p", cip); // No warning. in test_qualifiers() 724 void test_qualifiers(volatile int *vip, const int *cip, in test_qualifiers() argument 726 …printf("%n", cip); // expected-warning{{format specifies type 'int *' but the argument has type 'c… in test_qualifiers() 732 printf("%p", cip); // No warning. in test_qualifiers()
|
| /llvm-project-15.0.7/clang/test/SemaTemplate/ |
| H A D | instantiate-method.cpp | 71 void test_converts_to(ConvertsTo<int> ci, ConvertsTo<int *> cip) { in test_converts_to() argument 73 int *ip = cip; in test_converts_to()
|