| /llvm-project-15.0.7/clang/test/Modules/Inputs/ |
| H A D | cxx-many-overloads.h | 3 void f(X<0>); 4 void f(X<1>); 5 void f(X<2>); 6 void f(X<3>); 7 void f(X<4>); 8 void f(X<5>); 9 void f(X<6>); 10 void f(X<7>); 11 void f(X<8>); 12 void f(X<9>); [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/misc/ |
| H A D | redundant-expression.cpp | 19 if (X - X) return 1; in TestSimpleEquivalent() 21 if (X / X) return 1; in TestSimpleEquivalent() 23 if (X % X) return 1; in TestSimpleEquivalent() 26 if (X & X) return 1; in TestSimpleEquivalent() 28 if (X | X) return 1; in TestSimpleEquivalent() 30 if (X ^ X) return 1; in TestSimpleEquivalent() 33 if (X < X) return 1; in TestSimpleEquivalent() 116 if (X && X++ && X) return 1; in Valid() 219 LT(X, X); in TestMacro() 221 COND(X < Y, X, X); in TestMacro() [all …]
|
| /llvm-project-15.0.7/clang/test/SemaCXX/ |
| H A D | type_pack_element.cpp | 27 static_assert(__is_same(TypePackElement<0, X<0>, X<1>, X<2>, X<3>, X<4>>, X<0>), ""); 28 static_assert(__is_same(TypePackElement<1, X<0>, X<1>, X<2>, X<3>, X<4>>, X<1>), ""); 29 static_assert(__is_same(TypePackElement<2, X<0>, X<1>, X<2>, X<3>, X<4>>, X<2>), ""); 30 static_assert(__is_same(TypePackElement<3, X<0>, X<1>, X<2>, X<3>, X<4>>, X<3>), ""); 33 static_assert(__is_same(TypePackElement<0, X<0>, X<1>, X<2>, X<3>, X<4>, X<5>>, X<0>), ""); 34 static_assert(__is_same(TypePackElement<1, X<0>, X<1>, X<2>, X<3>, X<4>, X<5>>, X<1>), ""); 35 static_assert(__is_same(TypePackElement<2, X<0>, X<1>, X<2>, X<3>, X<4>, X<5>>, X<2>), ""); 36 static_assert(__is_same(TypePackElement<3, X<0>, X<1>, X<2>, X<3>, X<4>, X<5>>, X<3>), ""); 37 static_assert(__is_same(TypePackElement<4, X<0>, X<1>, X<2>, X<3>, X<4>, X<5>>, X<4>), ""); 38 static_assert(__is_same(TypePackElement<5, X<0>, X<1>, X<2>, X<3>, X<4>, X<5>>, X<5>), ""); [all …]
|
| H A D | cxx0x-defaulted-functions.cpp | 70 struct X { X(); X(const Y&); }; struct 84 X x = X(); in f() 124 X(X&&) = delete; // expected-note {{here}} 130 X::X(const X&) = default; // expected-error {{redefinition}} 131 X::X(X&&) = default; // expected-error {{redefinition}} 132 X &X::operator=(const X&) = default; // expected-error {{redefinition}} 133 X &X::operator=(X&&) = default; // expected-error {{redefinition}} 154 X(); 156 X::X() = default; // expected-note {{here}} 222 X(); [all …]
|
| H A D | cxx1z-lambda-star-this.cpp | 82 struct X { struct 84 X(const volatile X &); 187 struct X { struct 209 auto L = X{}.foo(); in main() 216 struct X { struct 218 X(); 219 X(const X &); 220 X(X &) = delete; 227 X x; in main() 249 [this](auto X) { in member_foo() argument [all …]
|
| H A D | overloaded-operator-decl.cpp | 2 struct X { struct 3 X(); 4 X(int); 7 X operator+(X, X); 8 X operator-(X, X) { X x; return x; } in operator -() argument 19 void f(X x) { in f() 23 X operator+(int, float); // expected-error{{overloaded 'operator+' must have at least one parameter… 25 X operator*(X, X = 5); // expected-error{{parameter of overloaded 'operator*' cannot have a default… 27 X operator/(X, X, ...); // expected-error{{overloaded 'operator/' cannot be variadic}} 29 X operator%(Y); // expected-error{{overloaded 'operator%' must be a binary operator (has 1 paramete… [all …]
|
| /llvm-project-15.0.7/clang/test/CodeGenCXX/ |
| H A D | nrvo.cpp | 7 class X { class 9 X(); 10 X(const X&); 11 X(const volatile X &); 12 ~X(); 78 X x; in test0() 179 X x; in test1() 353 X x; in test2() 354 X y; in test2() 479 X x; in test3() [all …]
|
| H A D | mangle-extreme.cpp | 3 struct X { }; struct 38 X*********, in f() 39 X********, in f() 40 X*******, in f() 41 X******, in f() 42 X*****, in f() 43 X****, in f() 44 X***, in f() 45 X**, in f() 46 X*, in f() [all …]
|
| H A D | mangle-ms-md5.cpp | 7 #define X2(X) C2(X, X) argument 8 #define X4(X) X2(X2(X)) argument 22 C4(X, X2(X), X4(X), X8(X)), \ 23 C4(X16(X), X32(X), X64(X), X128(X))), \ 24 C4(X256(X), X512(X), X1024(X), X2048(X))) 57 C4(X, X4(X), X4(X), X8(X)), \ 58 C4(X8(X), X32(X), X64(X), X128(X))), \ 59 C4(X256(X), X512(X), X1024(X), X2048(X))) 68 C4(X2(X), X4(X), X4(X), X8(X)), \ 69 C4(X8(X), X32(X), X64(X), X128(X))), \ [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/PowerPC/MCTargetDesc/ |
| H A D | PPCMCTargetDesc.h | 127 #define PPC_REGS0_7(X) \ argument 129 X##0, X##1, X##2, X##3, X##4, X##5, X##6, X##7 \ 132 #define PPC_REGS0_31(X) \ argument 134 X##0, X##1, X##2, X##3, X##4, X##5, X##6, X##7, X##8, X##9, X##10, X##11, \ 135 X##12, X##13, X##14, X##15, X##16, X##17, X##18, X##19, X##20, X##21, \ 136 X##22, X##23, X##24, X##25, X##26, X##27, X##28, X##29, X##30, X##31 \ 141 Z, X##1, X##2, X##3, X##4, X##5, X##6, X##7, X##8, X##9, X##10, X##11, \ 142 X##12, X##13, X##14, X##15, X##16, X##17, X##18, X##19, X##20, X##21, \ 143 X##22, X##23, X##24, X##25, X##26, X##27, X##28, X##29, X##30, X##31 \ 162 static const MCPhysReg XRegs[32] = PPC_REGS0_31(PPC::X); \ [all …]
|
| /llvm-project-15.0.7/clang/test/CXX/special/class.inhctor/ |
| H A D | p2.cpp | 20 A a0 { X<0>{} }; 21 A a0i = { X<0>{} }; 25 A a1 { X<1>{} }; 30 A a2 { X<2>{} }; 35 A a3 { X<3>{} }; 45 B b0 { X<0>{} }; 50 B b1 { X<1>{} }; 55 B b2 { X<2>{} }; 120 constexpr UsingTemplateCtors uct1{ X<0>{}, X<0>{} }; 123 constexpr UsingTemplateCtors uct4{ X<1>{}, X<1>{} }; [all …]
|
| /llvm-project-15.0.7/clang/test/CodeGen/ |
| H A D | 2004-08-06-LargeStructTest.c | 4 #define A(X) int X; argument 5 #define B(X) A(X##0) A(X##1) A(X##2) A(X##3) A(X##4) A(X##5) A(X##6) A(X##7) \ argument 6 A(X##8) A(X##9) A(X##A) A(X##B) A(X##C) A(X##D) A(X##E) A(X##F) 7 #define C(X) B(X##0) B(X##1) B(X##2) B(X##3) B(X##4) B(X##5) B(X##6) B(X##7) \ argument 8 B(X##8) B(X##9) B(X##A) B(X##B) B(X##C) B(X##D) B(X##E) B(X##F)
|
| H A D | nrvo-tracking.cpp | 4 X(); 5 X(const X &); 6 X(X &&); 20 L(1, t, X); 28 L(2, t, X&); 88 F(1, t, X); 157 B(1, X); 165 B(2, X&); 261 X t3() { in t3() 270 X t4() { in t4() [all …]
|
| /llvm-project-15.0.7/clang/test/SemaTemplate/ |
| H A D | generic-lambda.cpp | 14 template <class T1> X<X<X<T1>>> t1() { in t1() 15 return []<class T2>(T2) -> X<X<T2>> { in t1() 17 static X<X<T2>> f() { in t1() 26 }(X<T1>()); in t1() 28 template X<X<X<int>>> t1<int>(); 43 }(X<T1>()); 46 static_assert(is_same<decltype(t2<int>()), X<X<X<int>>>>); 48 template<class T1> C1<X<X<T1>>> auto t3() { 58 }(X<T1>()); 60 template C1<X<X<int>>> auto t3<int>(); [all …]
|
| H A D | nested-template.cpp | 34 template<typename X> 38 void f(X, Y); 43 void Outer<X>::Inner0<Y>::f(X, Y) { in f() argument 51 void g(X, Y); 56 void Outer<X>::Inner1<Y>::ReallyInner::g(X, Y) { in g() argument 61 X Outer<X>::Inner1<Y>::foo(Y) { in foo() 62 return X(); in foo() 68 X Outer<X>::Inner1<Y>::bar(Z) { in bar() 69 return X(); in bar() 75 X* Outer<X>::Inner1<Y>::bar(Z) { in bar() [all …]
|
| H A D | pack-deduction.cpp | 3 template<typename ...T> struct X {}; struct 11 int a1 = f1(X<int, int, double>(), X<double, int, double>()); 12 int a2 = f1(X<int, int>()); 13 int a3 = f1(X<int>(), X<double>()); // expected-error {{no matching}} 14 int a4 = f1(X<int, int>(), X<int>()); // expected-error {{no matching}} 15 int a5 = f1(X<int>(), X<int, int>()); // expected-error {{no matching}} 16 …int a6 = f1(X<int, int, int>(), X<int, int, int>(), X<int, int, int, int>()); // expected-error {{… 18 int b1 = f2(P<X<int, double>, int>(), P<X<int, double>, double>()); 19 …int b2 = f2(P<X<int, double>, int>(), P<X<int, double>, double>(), P<X<int, double>, char>()); // … 55 template <class...> struct X; [all …]
|
| /llvm-project-15.0.7/flang/test/Semantics/ |
| H A D | resolve54.f90 | 7 function F1A(X) 8 real :: F1A, X local 10 function F1B(X) 11 integer :: F1B, X local 19 function F2A(X) 20 real :: F2A, X local 24 real :: X, Y local 65 real :: X, Y local 74 real :: X, Y local 88 real :: X local [all …]
|
| /llvm-project-15.0.7/openmp/libomptarget/plugins/amdgpu/impl/ |
| H A D | msgpack.def | 15 X(nil, 1, read_zero, 0xc0, 0xc0) 16 X(never_used, 1, read_zero, 0xc1, 0xc1) 17 X(f, 1, read_via_mask_0x1, 0xc2, 0xc2) 18 X(t, 1, read_via_mask_0x1, 0xc3, 0xc3) 25 X(float32, 5, read_zero, 0xca, 0xca) 26 X(float64, 9, read_zero, 0xcb, 0xcb) 35 X(fixext1, 3, read_zero, 0xd4, 0xd4) 36 X(fixext2, 4, read_zero, 0xd5, 0xd5) 37 X(fixext4, 6, read_zero, 0xd6, 0xd6) 38 X(fixext8, 10, read_zero, 0xd7, 0xd7) [all …]
|
| /llvm-project-15.0.7/clang/test/Parser/ |
| H A D | cxx2a-spaceship.cpp | 3 template<int> struct X {}; struct 5 X<1> operator<<(X<0>, X<0>); 6 X<2> operator<=>(X<0>, X<1>); 7 X<2> operator<=>(X<1>, X<0>); 8 X<3> operator<(X<0>, X<2>); 9 X<3> operator<(X<2>, X<0>); 11 void f(X<0> x0, X<1> x1) { in f() 12 X<2> a = x0 <=> x0 << x0; in f() 14 X<3> c = x0 < x0 <=> x1; in f() 15 X<3> d = x1 <=> x0 < x0; in f() [all …]
|
| H A D | cxx-member-initializers.cpp | 19 X(); 20 X(int); 23 struct A : X<0> { 33 struct B : X<0> { 44 struct C : X<0> { 50 struct D : X<0> { 57 E(X<0>) : X<(0)>{} {} in E() 58 E(X<1>) : X<int{}>{} {} in E() 59 E(X<2>) : X<(0)>() {} in E() 60 E(X<3>) : X<int{}>() {} in E() [all …]
|
| /llvm-project-15.0.7/clang/unittests/Analysis/FlowSensitive/ |
| H A D | DataflowAnalysisContextTest.cpp | 32 EXPECT_NE(&X, &Y); in TEST_F() 38 auto &XAndX = Context.getOrCreateConjunction(X, X); in TEST_F() 39 EXPECT_EQ(&XAndX, &X); in TEST_F() 61 auto &XOrX = Context.getOrCreateDisjunction(X, X); in TEST_F() 62 EXPECT_EQ(&XOrX, &X); in TEST_F() 96 auto &XImpliesX = Context.getOrCreateImplication(X, X); in TEST_F() 118 auto &XIffX = Context.getOrCreateIff(X, X); in TEST_F() 224 EXPECT_TRUE(Context.equivalentBoolValues(X, X)); in TEST_F() 236 Context.equivalentBoolValues(Context.getOrCreateDisjunction(X, X), X)); in TEST_F() 245 Context.getOrCreateDisjunction(X, False), X)); in TEST_F() [all …]
|
| H A D | SolverTest.cpp | 50 auto X = Ctx.atom(); in TEST() local 54 solve({X}), in TEST() 60 auto X = Ctx.atom(); in TEST() local 71 auto X = Ctx.atom(); in TEST() local 80 auto X = Ctx.atom(); in TEST() local 93 auto X = Ctx.atom(); in TEST() local 103 auto X = Ctx.atom(); in TEST() local 114 auto X = Ctx.atom(); in TEST() local 136 auto XOrX = Ctx.disj(X, X); in TEST() 155 auto XAndX = Ctx.conj(X, X); in TEST() [all …]
|
| /llvm-project-15.0.7/clang/test/Analysis/ |
| H A D | errno.c | 51 if (X > 0) { in testRange() 74 if (X == 0) { in testErrnoCheck0() 81 if (X == 0) { in testErrnoCheck0() 87 if (X == 0) { in testErrnoCheck0() 99 if (X == 1) { in testErrnoCheck1() 104 if (X == 1) { in testErrnoCheck1() 115 if (X == 2) { in testErrnoCheck2() 120 if (X == 2) { in testErrnoCheck2() 129 if (X == 2) { in testErrnoCheck3() 135 if (X == 2) { in testErrnoCheck3() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/readability/ |
| H A D | else-after-return.cpp | 116 return X; in declInConditionUsedInElse() 134 if (int X = g(); X != 0) { // comment-13 in varInitAndCondition() local 137 return X; in varInitAndCondition() 146 if (int X = g(); X != 0) { in varInitAndConditionUnusedInElse() local 147 return X; in varInitAndConditionUnusedInElse() 156 int X; in initAndCondition() local 157 if (X = g(); X != 0) { in initAndCondition() 158 return X; in initAndCondition() 168 if (int X = g(); X != 0) { in varInitAndConditionUnusedInElseWithDecl() local 184 return X ? X : Y; in varInitAndCondVarUsedInElse() [all …]
|
| H A D | simplify-bool-expr-demorgan.cpp | 19 bool X; in foo() local 21 X = !(A1 && A2); in foo() 22 X = !(A1 || A2); in foo() 28 X = !(!A1 || A2); in foo() 29 X = !(A1 || !A2); in foo() 30 X = !(!A1 || !A2); in foo() 38 X = !(!A1 && A2); in foo() 39 X = !(A1 && !A2); in foo() 40 X = !(!A1 && !A2); in foo() 58 X = !(A1 && A2 == A3); in foo() [all …]
|