Lines Matching refs:Bar
741 LRBar Bar;
745 Bar.aa_elr_fun();
751 Bar.aa_elr_fun_s();
757 Bar.aa_elr_fun_s();
780 Bar.le_fun();
792 Bar.aa_elr_fun_s();
797 Bar.aa_elr_fun_s();
802 Bar.aa_elr_fun_s();
806 Bar.aa_elr_fun(); // \
812 Bar.aa_elr_fun(); // \
818 Bar.aa_elr_fun_s(); // \
841 Bar.le_fun(); // \
848 Bar.le_fun(); // \
873 class Bar {
881 Bar b1;
883 int Bar::func1()
898 class Bar {
906 Bar b1, *b3;
948 static int bar(int i) EXCLUSIVE_LOCKS_REQUIRED(mu1);
949 static int bar(int i) {
961 bar(3);
1019 class Bar {
1034 Bar bar;
1035 bar.Test1();
1045 struct Bar { Foo &func () {return getFoo();} };
1049 Bas() & Bar().func() << "" << "";
1050 Bas() & Bar().func() << "";
1123 class Bar {
1138 Bar<T> bar_;
1154 class Bar {
1179 Bar *bar;
1183 bar->func();
1233 void bar() LOCKS_EXCLUDED(mu_, mu1);
1250 void Foo::bar()
1268 f1.bar(); // expected-warning {{cannot call function 'bar' while mutex 'f1.mu_' is held}}
1274 f2->bar(); // expected-warning {{cannot call function 'bar' while mutex 'f2->mu_' is held}}
1286 class Bar {
1296 Bar *b1, *b2;
1316 class Bar {
1324 Bar b1, *b3;
1365 child->bar(7); // \
1366 // expected-warning {{calling function 'bar' requires holding mutex 'child->lock_' exclusively}} \
1374 void bar(int y) EXCLUSIVE_LOCKS_REQUIRED(lock_) {
1398 void bar(int y) EXCLUSIVE_LOCKS_REQUIRED(lock_);
1408 child->bar(7);
1415 void Foo::bar(int y) {
1696 void bar() {
1850 class Bar {
1909 Bar b;
2021 bool bar();
2028 if (bar()) {
2278 class Bar {
2290 Foo& getBarFoo(Bar &bar, int c) { return bar.getFoo2(c); }
2295 Bar bar;
2300 bar.getFoo().mu_.Lock();
2301 bar.getFoo().a = 0;
2302 bar.getFoo().mu_.Unlock();
2304 (bar.getFoo().mu_).Lock(); // test parenthesis
2305 bar.getFoo().a = 0;
2306 (bar.getFoo().mu_).Unlock();
2308 bar.getFoo2(a).mu_.Lock();
2309 bar.getFoo2(a).a = 0;
2310 bar.getFoo2(a).mu_.Unlock();
2312 bar.getFoo3(a, b).mu_.Lock();
2313 bar.getFoo3(a, b).a = 0;
2314 bar.getFoo3(a, b).mu_.Unlock();
2316 getBarFoo(bar, a).mu_.Lock();
2317 getBarFoo(bar, a).a = 0;
2318 getBarFoo(bar, a).mu_.Unlock();
2320 bar.getFoo2(10).mu_.Lock();
2321 bar.getFoo2(10).a = 0;
2322 bar.getFoo2(10).mu_.Unlock();
2324 bar.getFoo2(a + 1).mu_.Lock();
2325 bar.getFoo2(a + 1).a = 0;
2326 bar.getFoo2(a + 1).mu_.Unlock();
2336 Bar bar;
2341 bar.getFoo().mu_.Lock();
2342 bar.getFooey().a = 0; // \
2343 // expected-warning {{writing variable 'a' requires holding mutex 'bar.getFooey().mu_' exclusively}} \
2344 // expected-note {{found near match 'bar.getFoo().mu_'}}
2345 bar.getFoo().mu_.Unlock();
2347 bar.getFoo2(a).mu_.Lock();
2348 bar.getFoo2(b).a = 0; // \
2349 // expected-warning {{writing variable 'a' requires holding mutex 'bar.getFoo2(b).mu_' exclusively}} \
2350 // expected-note {{found near match 'bar.getFoo2(a).mu_'}}
2351 bar.getFoo2(a).mu_.Unlock();
2353 bar.getFoo3(a, b).mu_.Lock();
2354 bar.getFoo3(a, c).a = 0; // \
2355 // expected-warning {{writing variable 'a' requires holding mutex 'bar.getFoo3(a, c).mu_' exclusively}} \
2356 // expected-note {{found near match 'bar.getFoo3(a, b).mu_'}}
2357 bar.getFoo3(a, b).mu_.Unlock();
2359 getBarFoo(bar, a).mu_.Lock();
2360 getBarFoo(bar, b).a = 0; // \
2361 // expected-warning {{writing variable 'a' requires holding mutex 'getBarFoo(bar, b).mu_' exclusively}} \
2362 // expected-note {{found near match 'getBarFoo(bar, a).mu_'}}
2363 getBarFoo(bar, a).mu_.Unlock();
2443 class Bar : public Foo {
2446 void bar() EXCLUSIVE_LOCKS_REQUIRED(getMu());
2447 void bar2(Bar* g) EXCLUSIVE_LOCKS_REQUIRED(getMu(this), g->getMu());
2449 static void sbar(Bar* g) EXCLUSIVE_LOCKS_REQUIRED(g->getMu());
2450 static void sbar2(Bar* g) EXCLUSIVE_LOCKS_REQUIRED(getFooMu(g));
2457 void test2(Bar* b1, Bar* b2) {
2459 b1->bar(); // expected-warning {{calling function 'bar' requires holding mutex 'b1->mu_' exclusively}}
2462 Bar::sbar(b1); // expected-warning {{calling function 'sbar' requires holding mutex 'b1->mu_' exclusively}}
2463 Bar::sbar2(b1); // expected-warning {{calling function 'sbar2' requires holding mutex 'b1->mu_' exclusively}}
2468 b1->bar();
2478 Bar::sbar(b1);
2479 Bar::sbar2(b1);
2487 void test3(Bar* b1, Bar* b2) {
2490 b1->bar();
2496 Bar::sbar(b1);
2497 Bar::sbar2(b1);
2839 class Bar {
2849 void Bar::test0() {
2856 void Bar::test1() {
2865 void Bar::test2() {
2874 void Bar::test3() {
3211 class Bar : public Foo {
3213 void bar(Foo* f) {
3237 void bar(Inner* i);
3256 void Base::bar(Inner* i) {
3395 class Bar {
3399 Bar(Foo* f) : foo(f) { }
3412 void Bar::test() {
3438 class Bar {
3442 Bar() LOCKS_EXCLUDED(mu_) { }
3443 ~Bar() LOCKS_EXCLUDED(mu_) { }
3456 Bar::mu_.Lock();
3458 Bar b; // expected-warning {{cannot call function 'Bar' while mutex 'mu_' is held}}
3460 } // expected-warning {{cannot call function '~Bar' while mutex 'mu_' is held}}
3461 Bar::mu_.Unlock();
3894 class Bar {
3958 void bar() EXCLUSIVE_LOCKS_REQUIRED(getMutex1());
4564 class Bar {
4585 bar();
4589 void bar() {
4604 Bar b;
4776 class Bar {
5120 class Bar {
5122 Bar() : a(0) { }
5131 Bar bar;
5132 const Bar cbar;
5134 int a = TS_UNCHECKED_READ(bar.a); // nowarn
5135 TS_UNCHECKED_READ(bar.a) = 1; // nowarn
5137 int b = TS_UNCHECKED_READ(bar.foo).a; // nowarn
5138 TS_UNCHECKED_READ(bar.foo).a = 1; // nowarn