Home
last modified time | relevance | path

Searched refs:Foo (Results 1 – 25 of 1283) sorted by relevance

12345678910>>...52

/llvm-project-15.0.7/clang/test/Preprocessor/
H A Dmacro_with_initializer_list.cpp16 Foo operator+(const Foo);
28 EQ((Foo{1,2,3}),(Foo{1,2,3})); in test_EQ()
31 EQ(F, (Foo{1,2,3} + Foo{1,2,3})); in test_EQ()
39 EQ(Foo{1,2,3},Foo{1,2,3}); in test_EQ()
43 EQ(Foo{1,2,3} + Foo{1,2,3}, F); in test_EQ()
49 EQ(F, Foo{1,2,3} + Foo{1,2,3}); in test_EQ()
97 NE(Foo{1,2,3},Foo{1,2,3}); in test_NE()
169 M(F1, Foo(), Foo(), Foo(), Foo(), Foo(), Foo(), in test2()
170 Foo(), Foo(), Foo(), Foo(), Foo(), Foo()); in test2()
172 M(F2, Foo{1,2,3}, Foo{1,2,3}, Foo{1,2,3}, Foo{1,2,3}, Foo{1,2,3}, Foo{1,2,3}, in test2()
[all …]
/llvm-project-15.0.7/libcxx/test/libcxx/utilities/meta/
H A Dis_referenceable.pass.cpp22 struct Foo {}; struct
147 static_assert(( std::__is_referenceable<void (Foo::*)(int, float, Foo &)>::value), "");
148 static_assert(( std::__is_referenceable<void (Foo::*)(int, float, Foo &) const>::value), "");
150 static_assert(( std::__is_referenceable<void (Foo::*)(int, float, Foo &) &>::value), "");
151 static_assert(( std::__is_referenceable<void (Foo::*)(int, float, Foo &) const &>::value), "");
152 static_assert(( std::__is_referenceable<void (Foo::*)(int, float, Foo &) &&>::value), "");
153 static_assert(( std::__is_referenceable<void (Foo::*)(int, float, Foo &) const &&>::value), "");
183 static_assert(( std::__is_referenceable<void (Foo::*)(int, float, Foo &, ...)>::value), "");
184 static_assert(( std::__is_referenceable<void (Foo::*)(int, float, Foo &, ...) const>::value), "");
186 static_assert(( std::__is_referenceable<void (Foo::*)(int, float, Foo &, ...) &>::value), "");
[all …]
/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/modernize/
H A Dreturn-braced-init-list.cpp44 class Foo { class
46 Foo(Bar) {} in Foo() function in Foo
53 Foo m() { in m()
67 Foo f() { in f()
74 Foo f2() { in f2()
86 Foo f4() { in f4()
91 Foo f5() { in f5()
96 Foo f6() { in f6()
126 Foo f12() { in f12()
130 Foo f13() { in f13()
[all …]
/llvm-project-15.0.7/libcxx/test/libcxx/iterators/bounded_iter/
H A Ddereference.pass.cpp25 struct Foo { struct
32 Foo array[] = {Foo{40}, Foo{41}, Foo{42}, Foo{43}, Foo{44}}; in tests()
39 assert(*iter1 == Foo{40}); in tests()
43 assert(iter1[0] == Foo{40}); in tests()
44 assert(iter1[1] == Foo{41}); in tests()
45 assert(iter1[2] == Foo{42}); in tests()
46 assert(iter2[-1] == Foo{44}); in tests()
47 assert(iter2[-2] == Foo{43}); in tests()
54 Foo array[] = {Foo{0}, Foo{1}, Foo{2}, Foo{3}, Foo{4}}; in test_death()
73 tests<Foo*>(); in main()
[all …]
/llvm-project-15.0.7/llvm/test/tools/llvm-cxxfilt/
H A Ddelimiters.test39 CHECK: Foo"
40 CHECK: Foo#
41 CHECK: Foo%
42 CHECK: Foo&
43 CHECK: Foo'
44 CHECK: Foo(
45 CHECK: Foo)
46 CHECK: Foo*
47 CHECK: Foo+
48 CHECK: Foo,
[all …]
/llvm-project-15.0.7/clang/test/SemaCXX/
H A Ddiagnose_if.cpp173 struct Foo { struct
251 struct Foo { struct
300 struct Foo { struct
349 struct Foo { struct
386 struct Foo { struct
416 Foo(0)(); in run()
477 struct Foo { struct
481 constexpr const Foo &operator=(const Foo &) const in operator =() argument
486 constexpr const Foo &operator=(const Foo &&) const in operator =() argument
514 struct Foo { struct
[all …]
H A Dconstructor.cpp4 class Foo { class
5 Foo();
6 (Foo)(float) { }
7 explicit Foo(int); // expected-note {{previous declaration is here}}
8 Foo(const Foo&);
10 ((Foo))(INT); // expected-error{{cannot be redeclared}}
12 …Foo(Foo foo, int i = 17, int j = 42); // expected-error{{copy constructor must pass its first argu…
15 virtual Foo(double); // expected-error{{constructor cannot be declared 'virtual'}}
18 int Foo(int, int); // expected-error{{constructor cannot have a return type}}
20 volatile Foo(float); // expected-error{{constructor cannot have a return type}}
[all …]
H A Dpass-object-size.cpp4 int Foo(void *const p __attribute__((pass_object_size(0))));
10 static int Foo(void *const p __attribute__((pass_object_size(0))));
17 int Foo(void *const p __attribute__((pass_object_size(0))));
38 …A = &Foo; //expected-error{{cannot take address of function 'Foo' because parameter 1 has pass_obj… in Assigns()
39 …A = Foo; //expected-error{{cannot take address of function 'Foo' because parameter 1 has pass_obje… in Assigns()
56 int Foo(void *const __attribute__((pass_object_size(0)))) { in Foo() function
62 int Foo(void *const __attribute__((pass_object_size(0)))) { in Foo() function
80 struct Foo { struct
84 struct Bar : public Foo {
88 struct Baz : public Foo {
[all …]
H A Dwarn-sign-conversion.cpp11 template <typename T> struct Foo { struct
25 int c1 = 1 ? i : Foo<bool>::C; in doit_unnamed()
26 int c2 = 1 ? Foo<bool>::C : i; in doit_unnamed()
28 int d1a = 1 ? i : Foo<bool>::D; // expected-warning {{test1::Foo<bool>::(unnamed enum at }} in doit_unnamed() argument
29 int d1b = 1 ? i : Foo<bool>::D; // expected-warning {{warn-sign-conversion.cpp:13:5)' to 'int'}} in doit_unnamed()
31 int d2b = 1 ? Foo<bool>::D : i; // expected-warning {{warn-sign-conversion.cpp:13:5)' to 'int'}} in doit_unnamed()
33 int d3b = 1 ? B : Foo<bool>::D; // expected-warning {{warn-sign-conversion.cpp:13:5)' to 'int'}} in doit_unnamed()
35 int d4b = 1 ? Foo<bool>::D : B; // expected-warning {{warn-sign-conversion.cpp:13:5)' to 'int'}} in doit_unnamed()
53 template <typename T> struct Foo { struct
67 int c1 = 1 ? i : Foo<bool>::C; in doit_unnamed()
[all …]
/llvm-project-15.0.7/libcxx/test/std/algorithms/
H A Dranges_robust_against_omitting_invoke.pass.cpp24 struct Foo { struct
32 Foo val;
60 std::array in = {Bar{Foo{1}}, Bar{Foo{2}}, Bar{Foo{3}}}; in test_all()
61 std::array in2 = {Bar{Foo{4}}, Bar{Foo{5}}, Bar{Foo{6}}}; in test_all()
64 …std::array output = {Bar{Foo{7}}, Bar{Foo{8}}, Bar{Foo{9}}, Bar{Foo{10}}, Bar{Foo{11}}, Bar{Foo{12… in test_all()
68 Bar a{Foo{1}}; in test_all()
69 Bar b{Foo{2}}; in test_all()
70 Bar c{Foo{3}}; in test_all()
72 Foo x{2}; in test_all()
95 std::ranges::min(in, &Foo::binary_pred, &Bar::val); in test_all()
[all …]
/llvm-project-15.0.7/libcxx/test/libcxx/depr/depr.function.objects/
H A Dadaptors.depr_in_cxx11.verify.cpp22 struct Foo { struct
36 … typedef std::mem_fun_t<int, Foo> MFT0; // expected-warning {{'mem_fun_t<int, Foo>' is deprecated}} in main() argument
40 std::mem_fun<int, Foo>(&Foo::zero); // expected-warning {{'mem_fun<int, Foo>' is deprecated}} in main()
41 …std::mem_fun<int, Foo, int>(&Foo::identity); // expected-warning {{'mem_fun<int, Foo, int>' is dep… in main()
42 …std::mem_fun<int, Foo>(&Foo::const_zero); // expected-warning {{'mem_fun<int, Foo>' is deprecated}} in main()
43 …std::mem_fun<int, Foo, int>(&Foo::const_identity); // expected-warning {{'mem_fun<int, Foo, int>' … in main()
45 …typedef std::mem_fun_ref_t<int, Foo> MFR0; // expected-warning {{'mem_fun_ref_t<int, Foo>' is depr… in main()
49 …std::mem_fun_ref<int, Foo>(&Foo::zero); // expected-warning {{'mem_fun_ref<int, Foo>' is deprecate… in main()
50 …std::mem_fun_ref<int, Foo, int>(&Foo::identity); // expected-warning {{'mem_fun_ref<int, Foo, int>… in main()
51 …std::mem_fun_ref<int, Foo>(&Foo::const_zero); // expected-warning {{'mem_fun_ref<int, Foo>' is dep… in main()
[all …]
/llvm-project-15.0.7/llvm/test/Transforms/Inline/
H A Dinalloca-not-static.ll9 ; struct Foo {
10 ; Foo();
11 ; Foo(const Foo &o);
12 ; ~Foo();
24 %struct.Foo = type { i32 }
29 declare x86_thiscallcc %struct.Foo* @"\01??0Foo@@QAE@XZ"(%struct.Foo* returned) unnamed_addr
30 declare x86_thiscallcc void @"\01??1Foo@@QAE@XZ"(%struct.Foo*) unnamed_addr
43 %call = call x86_thiscallcc %struct.Foo* @"\01??0Foo@@QAE@XZ"(%struct.Foo* %0)
44 call void @h(<{ %struct.Foo }>* inalloca(<{ %struct.Foo }>) %argmem)
53 call x86_thiscallcc void @"\01??1Foo@@QAE@XZ"(%struct.Foo* %o)
[all …]
/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/zircon/
H A Dtemporary-objects.cpp7 class Foo { class
41 Foo F; in main()
42 Foo *F2 = new Foo(); in main()
43 new Foo(); in main()
44 Foo(); in main()
46 Foo F3 = Foo(); in main()
56 Foo F4(0); in main()
57 Foo *F5 = new Foo(0); in main()
58 new Foo(0); in main()
59 Foo(0); in main()
[all …]
/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/bugprone/
H A Deasily-swappable-parameters-ignore-default.cpp41 void f1(bool Foo, bool Bar) {} in f1() argument
42 void f2(IgnoredTypes::Bool Foo, IgnoredTypes::Bool Bar) {} in f2() argument
43 void f3(IgnoredTypes::_Bool Foo, IgnoredTypes::_Bool Bar) {} in f3() argument
44 void f4(IgnoredTypes::it Foo, IgnoredTypes::it Bar) {} in f4() argument
45 void f5(IgnoredTypes::It Foo, IgnoredTypes::It Bar) {} in f5() argument
46 void f6(IgnoredTypes::iterator Foo, IgnoredTypes::iterator Bar) {} in f6() argument
48 void f8(IgnoredTypes::inputit Foo, IgnoredTypes::inputit Bar) {} in f8() argument
49 void f9(IgnoredTypes::InputIt Foo, IgnoredTypes::InputIt Bar) {} in f9() argument
52 void f12(IgnoredTypes::bidirit Foo, IgnoredTypes::bidirit Bar) {} in f12() argument
53 void f13(IgnoredTypes::BidirIt Foo, IgnoredTypes::BidirIt Bar) {} in f13() argument
[all …]
H A Dunused-raii.cpp3 struct Foo { struct
4 Foo();
5 Foo(int);
6 Foo(int, int);
7 ~Foo();
16 Foo f;
30 Foo f();
108 Foo(42); in test()
114 Foo(); in test()
125 Foo{42}; in test()
[all …]
/llvm-project-15.0.7/llvm/test/DebugInfo/PDB/Inputs/
H A Devery-pointer.cpp12 struct Foo { struct
18 Foo *FooP = nullptr; argument
20 Foo F;
25 const Foo * CFooP = &F;
26 volatile Foo * VFooP = &F;
33 f<Foo*>(FooP); in main()
38 f<const Foo*>(CFooP); in main()
42 f<Foo&>(F); in main()
43 f<Foo&&>(static_cast<Foo&&>(F)); in main()
45 f(&Foo::X); in main()
[all …]
/llvm-project-15.0.7/clang/test/clang-rename/
H A DComplicatedClassType.cpp2 class Foo; /* Test 1 */ // CHECK: class Bar; /* Test 1 */
8 class Foo : public Baz { /* Test 2 */// CHECK: class Bar : public Baz { class
10 Foo(int value = 0) : x(value) {} // CHECK: Bar(int value = 0) : x(value) {} in Foo() function in Foo
12 Foo &operator++(int) { // CHECK: Bar &operator++(int) { in operator ++()
17 bool operator<(Foo const &rhs) { // CHECK: bool operator<(Bar const &rhs) { in operator <()
30 Foo *Pointer = 0; // CHECK: Bar *Pointer = 0; in main()
31 Foo Variable = Foo(10); // CHECK: Bar Variable = Bar(10); in main()
32 for (Foo it; it < Variable; it++) { // CHECK: for (Bar it; it < Variable; it++) { in main()
34 const Foo *C = new Foo(); // CHECK: const Bar *C = new Bar(); in main()
35 const_cast<Foo *>(C)->getValue(); // CHECK: const_cast<Bar *>(C)->getValue(); in main()
[all …]
H A DVariable.cpp3 int Foo; /* Test 1 */ // CHECK: int Bar;
5 int Foo; // CHECK: int Foo;
6 int Qux = Foo; // CHECK: int Qux = Foo;
7 int Baz = A::Foo; /* Test 2 */ // CHECK: Baz = A::Bar;
10 int Foo; // CHECK: int Foo; in fun() member
12 int Foo = 100; // CHECK: int Foo = 100; in fun() local
13 Baz = Foo; // CHECK: Baz = Foo; in fun()
16 Baz = Foo; // CHECK: Baz = Foo; in fun()
17 Foo = A::Foo /* Test 3 */ + Baz; // CHECK: Foo = A::Bar /* Test 3 */ + Baz; in fun()
18 A::Foo /* Test 4 */ = b.Foo; // CHECK: A::Bar /* Test 4 */ = b.Foo; in fun()
[all …]
/llvm-project-15.0.7/clang/test/utils/update_cc_test_checks/Inputs/
H A Dbasic-cplusplus.cpp.expected5 class Foo {
9 explicit Foo(int x);
10 ~Foo();
15 // CHECK-NEXT: store %class.Foo* [[THIS:%.*]], %class.Foo** [[THIS_ADDR]], align 8
17 // CHECK-NEXT: [[THIS1:%.*]] = load %class.Foo*, %class.Foo** [[THIS_ADDR]], align 8
34 // CHECK-NEXT: store %class.Foo* [[THIS:%.*]], %class.Foo** [[THIS_ADDR]], align 8
36 // CHECK-NEXT: [[THIS1:%.*]] = load %class.Foo*, %class.Foo** [[THIS_ADDR]], align 8
41 Foo::Foo(int x) : x(x) {}
45 // CHECK-NEXT: store %class.Foo* [[THIS:%.*]], %class.Foo** [[THIS_ADDR]], align 8
50 Foo::~Foo() {}
[all …]
H A Dexplicit-template-instantiation.cpp.expected5 struct Foo {
10 Foo(T x) : x(x) {}
11 ~Foo() {}
20 struct Foo<T> foo;
31 struct Baz : Foo<T> {
33 Baz(T x) : Foo<T>(x) {}
43 // CHECK-NEXT: store %struct.Foo* [[THIS:%.*]], %struct.Foo** [[THIS_ADDR]], align 8
45 // CHECK-NEXT: [[THIS1:%.*]] = load %struct.Foo*, %struct.Foo** [[THIS_ADDR]], align 8
53 // CHECK-NEXT: store %struct.Foo* [[THIS:%.*]], %struct.Foo** [[THIS_ADDR]], align 8
61 // CHECK-NEXT: store %struct.Foo* [[THIS:%.*]], %struct.Foo** [[THIS_ADDR]], align 8
[all …]
/llvm-project-15.0.7/clang/test/SemaTemplate/
H A Dms-delayed-default-template-args.cpp7 struct Foo { T x; }; argument
9 template struct Foo<>; variable
15 struct Foo { struct
27 struct Foo { struct
40 struct Foo { struct
43 template struct Foo<&g>; variable
50 struct Foo { struct
59 struct Foo { struct
79 struct Foo { T x; }; struct
85 struct Foo { T x; }; struct
[all …]
/llvm-project-15.0.7/mlir/test/mlir-pdll/Parser/
H A Dconstraint-failure.pdll14 Constraint Foo() { op<>; }
19 Constraint Foo() {
26 Constraint Foo() {
33 Constraint Foo() {
68 Constraint Foo() {
74 Constraint Foo() {
75 Constraint Foo() {};
85 Constraint Foo {}
90 Constraint Foo(10{}
95 Constraint Foo(arg{}
[all …]
/llvm-project-15.0.7/clang/test/CodeGen/
H A Dms-inline-asm.cpp6 struct Foo { struct
18 Foo::ptr = (int *)0xDEADBEEF; in t1() argument
27 __asm mov eax, Foo ::ptr in t1()
29 __asm mov eax, [Foo:: ptr] in t1()
37 __asm mov eax, offset Foo::ptr in t2()
48 __asm mov eax, LENGTH Foo::ptr in t3()
50 __asm mov eax, LENGTH Foo::arr in t3()
53 __asm mov eax, TYPE Foo::ptr in t3()
55 __asm mov eax, TYPE Foo::arr in t3()
58 __asm mov eax, SIZE Foo::ptr in t3()
[all …]
/llvm-project-15.0.7/clang/test/Analysis/
H A Dmore-dtors-cfg-output.cpp9 struct Foo { struct
10 Foo() = delete;
14 Foo(const Foo &) = delete;
17 Foo(const Foo &);
19 ~Foo();
23 Foo foo1, foo2;
27 Foo get_foo();
46 Foo x = get_foo(); in elided_assign()
62 Foo x(get_foo()); in elided_paren_init()
78 Foo x{get_foo()}; in elided_brace_init()
[all …]
/llvm-project-15.0.7/clang/test/CodeGenObjC/
H A Ddebug-info-category.m4 @interface Foo { interface
12 @implementation Foo implementation
23 @interface Foo (Bar) interface in Bar
24 + (id)zero:(Foo *)zeroend; argument
25 - (id)add:(Foo *)addend; argument
28 @implementation Foo (Bar) implementation in Bar
29 + (id)zero:(Foo *)zeroend { argument
32 - (id)add:(Foo *)addend { argument
37 // CHECK: ![[STRUCT:.*]] = !DICompositeType(tag: DW_TAG_structure_type, name: "Foo"
50 // CHECK: = distinct !DISubprogram(name: "-[Foo integer]"{{.*}} DISPFlagDefinition
[all …]

12345678910>>...52