Lines Matching defs:child
1109 class Child : public Base {
1116 Child *c;
1265 void Func(Foo* child) LOCKS_EXCLUDED(lock_) {
1270 child->Func(new_foo); // There shouldn't be any warning here as the
1271 // acquired lock is not in child.
1272 child->bar(7); // expected-warning {{calling function 'bar' requires exclusive lock on 'lock_'}}
1273 child->a_ = 5; // expected-warning {{writing variable 'a_' requires locking 'lock_' exclusively}}
1285 Foo *child = new Foo;
1286 x->Func(child);
1300 void Func(Foo* child) LOCKS_EXCLUDED(lock_);
1304 void Foo::Func(Foo* child) {
1309 child->lock_.Lock();
1310 child->Func(new_foo); // expected-warning {{cannot call function 'Func' while mutex 'lock_' is locked}}
1311 child->bar(7);
1312 child->a_ = 5;
1313 child->lock_.Unlock();
1326 Foo *child = new Foo;
1327 x->Func(child);
1372 class Child : public Base {
1379 Child *c;