Lines Matching defs:Bar
693 LRBar Bar;
697 Bar.aa_elr_fun();
703 Bar.aa_elr_fun_s();
709 Bar.aa_elr_fun_s();
732 Bar.le_fun();
744 Bar.aa_elr_fun_s();
749 Bar.aa_elr_fun_s();
754 Bar.aa_elr_fun_s();
758 Bar.aa_elr_fun(); // \
764 Bar.aa_elr_fun(); // \
770 Bar.aa_elr_fun_s(); // \
793 Bar.le_fun(); // \
800 Bar.le_fun(); // \
825 class Bar {
833 Bar b1;
835 int Bar::func1()
850 class Bar {
858 Bar b1, *b3;
900 static int bar(int i) EXCLUSIVE_LOCKS_REQUIRED(mu1);
901 static int bar(int i) {
913 bar(3);
971 class Bar {
986 Bar bar;
987 bar.Test1();
997 struct Bar { Foo &func () {return getFoo();} };
1001 Bas() & Bar().func() << "" << "";
1002 Bas() & Bar().func() << "";
1075 class Bar {
1090 Bar<T> bar_;
1106 class Bar {
1131 Bar *bar;
1135 bar->func();
1185 void bar() LOCKS_EXCLUDED(mu_, mu1);
1202 void Foo::bar()
1220 f1.bar(); // expected-warning {{cannot call function 'bar' while mutex 'f1.mu_' is locked}}
1226 f2->bar(); // expected-warning {{cannot call function 'bar' while mutex 'f2->mu_' is locked}}
1238 class Bar {
1248 Bar *b1, *b2;
1268 class Bar {
1276 Bar b1, *b3;
1317 child->bar(7); // \
1318 // expected-warning {{calling function 'bar' requires exclusive lock on 'child->lock_'}} \
1326 void bar(int y) EXCLUSIVE_LOCKS_REQUIRED(lock_) {
1350 void bar(int y) EXCLUSIVE_LOCKS_REQUIRED(lock_);
1360 child->bar(7);
1367 void Foo::bar(int y) {
1642 void bar() {
1796 class Bar {
1855 Bar b;
1967 bool bar();
1974 if (bar()) {
2224 class Bar {
2236 Foo& getBarFoo(Bar &bar, int c) { return bar.getFoo2(c); }
2241 Bar bar;
2246 bar.getFoo().mu_.Lock();
2247 bar.getFoo().a = 0;
2248 bar.getFoo().mu_.Unlock();
2250 (bar.getFoo().mu_).Lock(); // test parenthesis
2251 bar.getFoo().a = 0;
2252 (bar.getFoo().mu_).Unlock();
2254 bar.getFoo2(a).mu_.Lock();
2255 bar.getFoo2(a).a = 0;
2256 bar.getFoo2(a).mu_.Unlock();
2258 bar.getFoo3(a, b).mu_.Lock();
2259 bar.getFoo3(a, b).a = 0;
2260 bar.getFoo3(a, b).mu_.Unlock();
2262 getBarFoo(bar, a).mu_.Lock();
2263 getBarFoo(bar, a).a = 0;
2264 getBarFoo(bar, a).mu_.Unlock();
2266 bar.getFoo2(10).mu_.Lock();
2267 bar.getFoo2(10).a = 0;
2268 bar.getFoo2(10).mu_.Unlock();
2270 bar.getFoo2(a + 1).mu_.Lock();
2271 bar.getFoo2(a + 1).a = 0;
2272 bar.getFoo2(a + 1).mu_.Unlock();
2278 bar.getFoo().mu_.Lock();
2279 bar.getFooey().a = 0; // \
2280 // expected-warning {{writing variable 'a' requires locking 'bar.getFooey().mu_' exclusively}} \
2281 // expected-note {{found near match 'bar.getFoo().mu_'}}
2282 bar.getFoo().mu_.Unlock();
2284 bar.getFoo2(a).mu_.Lock();
2285 bar.getFoo2(b).a = 0; // \
2286 // expected-warning {{writing variable 'a' requires locking 'bar.getFoo2(b).mu_' exclusively}} \
2287 // expected-note {{found near match 'bar.getFoo2(a).mu_'}}
2288 bar.getFoo2(a).mu_.Unlock();
2290 bar.getFoo3(a, b).mu_.Lock();
2291 bar.getFoo3(a, c).a = 0; // \
2292 // expected-warning {{writing variable 'a' requires locking 'bar.getFoo3(a,c).mu_' exclusively}} \
2293 // expected-note {{'bar.getFoo3(a,b).mu_'}}
2294 bar.getFoo3(a, b).mu_.Unlock();
2296 getBarFoo(bar, a).mu_.Lock();
2297 getBarFoo(bar, b).a = 0; // \
2298 // expected-warning {{writing variable 'a' requires locking 'getBarFoo(bar,b).mu_' exclusively}} \
2299 // expected-note {{'getBarFoo(bar,a).mu_'}}
2300 getBarFoo(bar, a).mu_.Unlock();
2380 class Bar : public Foo {
2383 void bar() EXCLUSIVE_LOCKS_REQUIRED(getMu());
2384 void bar2(Bar* g) EXCLUSIVE_LOCKS_REQUIRED(getMu(this), g->getMu());
2386 static void sbar(Bar* g) EXCLUSIVE_LOCKS_REQUIRED(g->getMu());
2387 static void sbar2(Bar* g) EXCLUSIVE_LOCKS_REQUIRED(getFooMu(g));
2394 void test2(Bar* b1, Bar* b2) {
2396 b1->bar(); // expected-warning {{calling function 'bar' requires exclusive lock on 'b1->mu_'}}
2399 Bar::sbar(b1); // expected-warning {{calling function 'sbar' requires exclusive lock on 'b1->mu_'}}
2400 Bar::sbar2(b1); // expected-warning {{calling function 'sbar2' requires exclusive lock on 'b1->mu_'}}
2405 b1->bar();
2415 Bar::sbar(b1);
2416 Bar::sbar2(b1);
2424 void test3(Bar* b1, Bar* b2) {
2427 b1->bar();
2433 Bar::sbar(b1);
2434 Bar::sbar2(b1);
2776 class Bar {
2786 void Bar::test0() {
2793 void Bar::test1() {
2802 void Bar::test2() {
2811 void Bar::test3() {
3186 class Bar : public Foo {
3188 void bar(Foo* f) {
3212 void bar(Inner* i);
3231 void Base::bar(Inner* i) {
3370 class Bar {
3374 Bar(Foo* f) : foo(f) { }
3387 void Bar::test() {
3413 class Bar {
3417 Bar() LOCKS_EXCLUDED(mu_) { }
3418 ~Bar() LOCKS_EXCLUDED(mu_) { }
3431 Bar::mu_.Lock();
3433 Bar b; // expected-warning {{cannot call function 'Bar' while mutex 'mu_' is locked}}
3435 } // expected-warning {{cannot call function '~Bar' while mutex 'mu_' is locked}}
3436 Bar::mu_.Unlock();
3848 class Bar {
3912 void bar() EXCLUSIVE_LOCKS_REQUIRED(getMutex1());