Home
last modified time | relevance | path

Searched refs:Bar (Results 1 – 25 of 426) sorted by relevance

12345678910>>...18

/llvm-project-15.0.7/clang/test/SemaCXX/
H A Dwarn-range-loop-analysis.cpp22 struct Bar { struct
27 Bar(Foo); argument
28 Bar(int);
134 for (Bar x : A) {} in test1()
187 for (Bar x : B) {} in test2()
192 Container<Bar> C; in test3()
206 for (Bar x : C) {} in test3()
226 Container<Bar&> D; in test4()
392 for (Bar x: H) {} in test8()
397 Bar I[2] = {1,2}; in test9()
[all …]
H A Dzero-length-arrays.cpp13 class Bar { class
23 Bar(): foo_count(0) { } in Bar() function in Bar
24 ~Bar() { } in ~Bar()
28 Bar b; in testBar()
29 Bar b2(b); in testBar()
/llvm-project-15.0.7/libcxx/test/std/algorithms/
H A Dranges_robust_against_omitting_invoke.pass.cpp31 struct Bar { struct
33 Bar create() const { return Bar(); } in create() argument
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()
83 test(std::ranges::mismatch, in, in2, &Foo::binary_pred, &Bar::val, &Bar::val); in test_all()
84 test(std::ranges::equal, in, in2, &Foo::binary_pred, &Bar::val, &Bar::val); in test_all()
[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 …]
/llvm-project-15.0.7/clang/test/Analysis/
H A Dmore-dtors-cfg-output.cpp29 struct Bar { struct
30 Bar();
31 Bar(const Bar &);
32 ~Bar();
33 Bar &operator=(const Bar &);
36 Bar get_bar();
39 Bar foo1, foo2;
54 Bar x = (const Bar &)get_bar(); in nonelided_assign()
70 Bar x((const Bar &)get_bar()); in nonelided_paren_init()
86 Bar x{(const Bar &)get_bar()}; in nonelided_brace_init()
[all …]
H A Dmember-expr.cpp9 Bar = 1 enumerator
14 clang_analyzer_eval(Baz.Bar == Foo::Bar); // expected-warning{{TRUE}} in testEnumVal()
18 clang_analyzer_eval(Baz.Bar == Foo::Bar); // expected-warning{{TRUE}} in testEnumRef()
22 clang_analyzer_eval(Baz->Bar == Foo::Bar); // expected-warning{{TRUE}} in testEnumPtr()
H A Dsymbol-escape.cpp14 C *Bar = new C(); in simple_escape_in_bitwise_op() local
15 Bar = reinterpret_cast<C *>(reinterpret_cast<uintptr_t>(Bar) & 0x1); in simple_escape_in_bitwise_op()
16 (void)Bar; in simple_escape_in_bitwise_op()
19 return Bar; in simple_escape_in_bitwise_op()
/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/zircon/
H A Dtemporary-objects.cpp18 class Bar { class
20 Bar() = default;
29 class Bar { class
31 Bar() = default;
49 Bar(); in main()
50 NS::Bar(); in main()
64 Bar(0); in main()
65 NS::Bar(0); in main()
75 Bar(); in f()
77 Bar(0); in f()
[all …]
/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/modernize/
H A Dreturn-braced-init-list.cpp42 Bar b0;
54 Bar bm; in m()
68 Bar b1; in f()
75 Bar b2; in f2()
80 Bar b3; in f3()
87 Bar b4; in f4()
92 Bar b5; in f5()
97 Bar b6; in f6()
107 Bar f8() { in f8()
111 Bar f9() { in f9()
[all …]
/llvm-project-15.0.7/clang/test/AST/
H A Dast-dump-recovery.cpp171 struct Bar { Bar(); }; in InvalidInitalizer() struct
175 Bar a1(1); in InvalidInitalizer()
179 Bar a2(x); in InvalidInitalizer()
184 Bar a3{x}; in InvalidInitalizer()
199 Bar b1 = 1; in InvalidInitalizer()
203 Bar b2 = {1}; in InvalidInitalizer()
207 Bar b3 = Bar(x); in InvalidInitalizer()
212 Bar b4 = Bar{x}; in InvalidInitalizer()
217 Bar b5 = Bar(invalid()); in InvalidInitalizer()
223 Bar b6 = Bar{invalid()}; in InvalidInitalizer()
[all …]
/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/readability/
H A Dredundant-smartptr-get.cpp25 struct Bar { struct
30 Bar* operator->();
31 Bar& operator*();
32 Bar* get();
42 Bar* get();
45 Bar* get();
71 Bar& b = *BarPtr().get(); in Positive()
76 Bar& b2 = *std::unique_ptr<Bar>().get(); in Positive()
91 std::unique_ptr<Bar>* up; in Positive()
189 testTemplate2<Bar>(); in instantiate()
[all …]
/llvm-project-15.0.7/openmp/libomptarget/test/mapping/
H A Ddata_member_ref.cpp26 Foo<View> Bar(V); in main() local
33 printf("Host %d.\n", Bar.VRef.Data); in main()
34 #pragma omp target map(Bar.VRef) in main()
37 printf("Device %d.\n", Bar.VRef.Data); in main()
40 printf("Device %d.\n", Bar.VRef.Data); in main()
43 printf("Host %d %d.\n", Bar.VRef.Data, V.Data); in main()
46 printf("Host %d.\n", Bar.VRef.Data); in main()
47 #pragma omp target map(Bar) map(Bar.VRef) in main()
50 printf("Device %d.\n", Bar.VRef.Data); in main()
53 printf("Device %d.\n", Bar.VRef.Data); in main()
[all …]
/llvm-project-15.0.7/clang/test/Index/
H A Dobjc-typeargs-protocols.m8 @protocol Bar protocol
19 Foo<Bar> *c;
20 Foo<TestA *, TestB *><Bar> *d;
21 id<Bar> e;
26Bar> *] [typekind=ObjCObjectPointer] [basetype=Foo] [basekind=ObjCInterface] [protocols=ObjCProtoc…
27Bar> *] [typekind=ObjCObjectPointer] [basetype=Foo] [basekind=ObjCInterface] [typeargs= [TestA *] …
28 …id<Bar>] [typekind=ObjCObjectPointer] [basetype=id] [basekind=ObjCId] [protocols=ObjCProtocolDecl=
/llvm-project-15.0.7/clang/test/SemaTemplate/
H A Dms-delayed-default-template-args.cpp37 template <typename T> struct Bar { T x; }; argument
39 template <Bar<Qux> *P>
42 Bar<int> g;
48 template <typename T> struct Bar { T x; }; argument
49 template <typename T = Bar<Weber>> // expected-error {{use of undeclared identifier 'Weber'}}
58 template <typename T = ns::Bar> // expected-error {{use of undeclared identifier 'ns'}}
62 namespace ns { typedef int Bar; } typedef
92 template <typename T> struct Bar { T x; }; argument
94 template <Bar<Xylophone> *P> // expected-error {{use of undeclared identifier 'Xylophone'}}
99 Bar<Xylophone> g;
/llvm-project-15.0.7/clang/test/CodeCompletion/
H A Dctor-signature.cpp23 struct Bar { struct
25 Bar(int);
27 Bar(double, double);
30 Bar(std::initializer_list<char> C);
33 template <typename T> Bar(T *Pointer);
36 auto b1 = Bar{};
38 Bar b2{};
40 static int consumeBar(Bar) { return 0; } in consumeBar() argument
/llvm-project-15.0.7/llvm/unittests/ExecutionEngine/Orc/
H A DCoreAPIsTest.cpp179 if (Name == Bar) in TEST_F()
209 auto Err = JD.remove({Foo, Bar, Baz, Qux}); in TEST_F()
218 auto Err = JD.remove({Foo, Bar, Baz}); in TEST_F()
230 auto Err = JD.remove({Foo, Bar, Baz}); in TEST_F()
279 SymbolLookupSet({Foo, Bar, Baz}, in TEST_F()
287 EXPECT_EQ(SymbolFlags.count(Bar), 1U) in TEST_F()
339 {{Baz, {Bar, BazSym.getFlags()}}, {Bar, {Foo, BarSym.getFlags()}}}))); in TEST_F()
408 SymbolLookupSet({Foo, Bar, Baz}, in TEST_F()
1082 SymbolLookupSet({Foo, Bar}) in TEST_F()
1147 SymbolNameSet Names({Foo, Bar}); in TEST_F()
[all …]
/llvm-project-15.0.7/llvm/test/tools/dsymutil/X86/
H A Dmodules.m7 module Bar {
8 header "Bar.h"
12 clang -D BAR_H -E -o Bar.h modules.m
47 struct Bar { struct
71 @import Bar; argument
72 typedef struct Bar Bar; struct
85 struct Bar {
88 typedef struct Bar Bar; typedef
89 Bar odr_violation = { 42 };
124 Bar bar;
[all …]
/llvm-project-15.0.7/llvm/test/Transforms/GlobalOpt/
H A Devaluate-call.ll3 ; %struct.Bar* bitcast (%struct.Foo* (%struct.Foo*)* @_ZL3fooP3Foo to %struct.Bar* (%struct.Bar*)…
6 ; void bitcast (void (%struct.Foo*)* @_ZL3bazP3Foo to void (%struct.Bar*)*)(%struct.Bar* @gBar)
12 ; CHECK: @gBar = local_unnamed_addr global %struct.Bar { i32 2 }
22 %struct.Bar = type { i32 }
26 @gBar = global %struct.Bar zeroinitializer, align 4
56 …%5 = call %struct.Bar* bitcast (%struct.Foo* (%struct.Foo*)* @_ZL3fooP3Foo to %struct.Bar* (%struc…
57 %6 = getelementptr inbounds %struct.Bar, %struct.Bar* %5, i32 0, i32 0
60 call void bitcast (void (%struct.Foo*)* @_ZL3bazP3Foo to void (%struct.Bar*)*)(%struct.Bar* @gBar)
/llvm-project-15.0.7/clang/test/utils/update_cc_test_checks/Inputs/
H A Dexplicit-template-instantiation.cpp.expected18 struct Bar {
23 Bar(T x) : foo(x) {}
24 ~Bar() {}
130 // CHECK-NEXT: store %struct.Bar* [[THIS:%.*]], %struct.Bar** [[THIS_ADDR]], align 8
132 // CHECK-NEXT: [[THIS1:%.*]] = load %struct.Bar*, %struct.Bar** [[THIS_ADDR]], align 8
140 // CHECK-NEXT: store %struct.Bar* [[THIS:%.*]], %struct.Bar** [[THIS_ADDR]], align 8
141 // CHECK-NEXT: [[THIS1:%.*]] = load %struct.Bar*, %struct.Bar** [[THIS_ADDR]], align 8
148 // CHECK-NEXT: store %struct.Bar* [[THIS:%.*]], %struct.Bar** [[THIS_ADDR]], align 8
149 // CHECK-NEXT: [[THIS1:%.*]] = load %struct.Bar*, %struct.Bar** [[THIS_ADDR]], align 8
158 // CHECK-NEXT: store %struct.Bar* [[THIS:%.*]], %struct.Bar** [[THIS_ADDR]], align 8
[all …]
/llvm-project-15.0.7/clang/test/CodeGen/
H A Dms-inline-asm.cpp10 struct Bar { struct
19 Foo::Bar::ptr = (int *)0xDEADBEEF; in t1() argument
28 __asm mov eax, Foo :: Bar :: ptr in t1()
38 __asm mov eax, offset Foo::Bar::ptr in t2()
49 __asm mov eax, LENGTH Foo::Bar::ptr in t3()
51 __asm mov eax, LENGTH Foo::Bar::arr in t3()
54 __asm mov eax, TYPE Foo::Bar::ptr in t3()
56 __asm mov eax, TYPE Foo::Bar::arr in t3()
59 __asm mov eax, SIZE Foo::Bar::ptr in t3()
61 __asm mov eax, SIZE Foo::Bar::arr in t3()
/llvm-project-15.0.7/clang/test/VFS/Inputs/
H A Dbar-headers.yaml7 'name': "VDIR/Bar.framework/Headers",
12 'external-contents': "OUT_DIR/Bar.framework/Headers/A.h"
17 'external-contents': "OUT_DIR/Bar.framework/Headers/B.h"
22 'external-contents': "OUT_DIR/Bar.framework/Headers/C.h"
28 'name': "VDIR/Bar.framework/Modules",
33 'external-contents': "OUT_DIR/Bar.framework/Modules/module.modulemap"
/llvm-project-15.0.7/lldb/test/API/lang/cpp/std-function-step-into-callable/
H A Dmain.cpp7 struct Bar { struct
27 Bar bar1 ; in main() argument
29 std::function<int (const Bar&, int)> f5 = &Bar::add_num; in main()
30 std::function<int(Bar const&)> f_mem = &Bar::num_; in main()
/llvm-project-15.0.7/clang/test/CodeGenCXX/
H A Dunion-dtor.cpp11 struct Bar { struct
12 Bar();
13 ~Bar();
20 Bar bar;
28 Bar bar;
/llvm-project-15.0.7/clang/test/FixIt/
H A Dfixit.cpp219 …template<typename> typename Bar, // expected-warning {{template template parameter using 'typename…
226 enum Bar { X, Y }; enum in ShadowedTagType::Foo
227 void SetBar(Bar bar);
228 Bar Bar(); // expected-note 2 {{enum 'Bar' is hidden by a non-type declaration of 'Bar' here}}
230 Bar bar_; // expected-error {{must use 'enum' tag to refer to type 'Bar' in this scope}}
232 void Foo::SetBar(Bar bar) { bar_ = bar; } // expected-error {{must use 'enum' tag to refer to type … in SetBar()
268 namespace Bar { namespace
440 struct Bar {
441 ~Bar();
444 void bar(Bar *o) {
[all …]
/llvm-project-15.0.7/llvm/test/Analysis/TypeBasedAliasAnalysis/
H A Dplacement-tbaa.ll6 ; struct Bar { void *p; };
11 ; Bar *b = new (f) Bar;
24 %struct.Bar = type { i8* }
31 %b = alloca %struct.Bar*, align 8
55 %6 = bitcast i8* %5 to %struct.Bar*
59 %7 = phi %struct.Bar* [ %6, %new.notnull ], [ null, %for.body ]
60 store %struct.Bar* %7, %struct.Bar** %b, align 8, !tbaa !4
61 %8 = load %struct.Bar*, %struct.Bar** %b, align 8, !tbaa !4
62 %p = getelementptr inbounds %struct.Bar, %struct.Bar* %8, i32 0, i32 0

12345678910>>...18