Home
last modified time | relevance | path

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 Dmisplaced-const.c5 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 Doverloaded-builtin-operators.cpp143 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 Daddress-space-conversion.cpp27 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 Dconditional.c23 const int* cip; in test5() local
25 cip = 0 ? vp : cip; in test5()
/llvm-project-15.0.7/clang/test/Sema/
H A Dconditional-expr.c22 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 Dformat-strings-scanf.c175 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 Dformat-strings.c706 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 Dinstantiate-method.cpp71 void test_converts_to(ConvertsTo<int> ci, ConvertsTo<int *> cip) { in test_converts_to() argument
73 int *ip = cip; in test_converts_to()