Home | History | Annotate | Download | only in SemaCXX

Lines Matching defs:Cell

1891 class Cell {
1934 Cell<int> cell;
1935 cell.data = 0; // \
1936 // expected-warning {{writing variable 'data' requires holding mutex 'cell.mu_' exclusively}}
1937 cell.foo();
1938 cell.mu_.Lock();
1939 cell.fooEx();
1940 cell.mu_.Unlock();
3540 struct Cell {
3548 void elr(Cell<T>* c) __attribute__((exclusive_locks_required(c->mu_)));
3554 void Foo::elr(Cell<T>* c1) { }
3557 Cell<int> cell;
3558 elr(&cell); // \
3559 // expected-warning {{calling function 'elr' requires holding mutex 'cell.mu_' exclusively}}
3564 void globalELR(Cell<T>* c) __attribute__((exclusive_locks_required(c->mu_)));
3567 void globalELR(Cell<T>* c1) { }
3570 Cell<int> cell;
3571 globalELR(&cell); // \
3572 // expected-warning {{calling function 'globalELR' requires holding mutex 'cell.mu_' exclusively}}
3577 void globalELR2(Cell<T>* c) __attribute__((exclusive_locks_required(c->mu_)));
3581 void globalELR2(Cell<T>* c2);
3584 void globalELR2(Cell<T>* c3) { }
3588 void globalELR2(Cell<T>* c4);
3591 Cell<int> cell;
3592 globalELR2(&cell); // \
3593 // expected-warning {{calling function 'globalELR2' requires holding mutex 'cell.mu_' exclusively}}
3600 void elr(Cell<T>* c) __attribute__((exclusive_locks_required(c->mu_)));
3604 void FooT<T>::elr(Cell<T>* c1) { }
3607 Cell<int> cell;
3609 foo.elr(&cell); // \
3610 // expected-warning {{calling function 'elr' requires holding mutex 'cell.mu_' exclusively}}
3872 class Cell {
3874 Cell(int i);
3885 Cell c GUARDED_BY(cell_mu_);
3886 Cell* cp PT_GUARDED_BY(cell_mu_);
3912 foo.c = Cell(0); // expected-warning {{writing variable 'foo' requires holding mutex 'mu_'}} \
3917 foop->c = Cell(0); // expected-warning {{writing the value pointed to by 'foop' requires holding mutex 'mu_'}} \
3922 (*foop).c = Cell(0); // expected-warning {{writing the value pointed to by 'foop' requires holding mutex 'mu_'}} \
4230 class Cell {
4241 Cell* c GUARDED_BY(mu1) PT_GUARDED_BY(mu2);
4243 Cell sc[10] GUARDED_BY(mu1);
4328 SmartPtr<Cell> sq GUARDED_BY(mu1) PT_GUARDED_BY(mu2);