Lines Matching refs:var

16   T var;  in CONSUMABLE()  local
62 void baf0(const ConsumableClass<int> var);
63 void baf1(const ConsumableClass<int> &var);
64 void baf2(const ConsumableClass<int> *var);
66 void baf3(ConsumableClass<int> var);
67 void baf4(ConsumableClass<int> &var);
68 void baf5(ConsumableClass<int> *var);
69 void baf6(ConsumableClass<int> &&var);
141 ConsumableClass<int> var;
143 if (var.isValid()) {
144 *var;
146 …*var; // expected-warning {{invalid invocation of method 'operator*' on object 'var' while it is i…
149 if (!var.isValid()) {
150 …*var; // expected-warning {{invalid invocation of method 'operator*' on object 'var' while it is i…
152 *var;
155 if (var) {
158 …*var; // expected-warning {{invalid invocation of method 'operator*' on object 'var' while it is i…
161 if (var != nullptr) {
164 …*var; // expected-warning {{invalid invocation of method 'operator*' on object 'var' while it is i…
167 if (var == nullptr) {
168 …*var; // expected-warning {{invalid invocation of method 'operator*' on object 'var' while it is i…
382 ConsumableClass<int> var;
385 baf4(var);
387 if (!var) {
388 var = ConsumableClass<int>(42);
391 *var;
417 ConsumableClass<int> var;
419 testParamReturnTypestateCallee(true, var);
421 *var;
460 void baf3(ConsumableClass<int> var) {
461 *var;
464 void baf4(ConsumableClass<int> &var) {
465 …*var; // expected-warning {{invalid invocation of method 'operator*' on object 'var' while it is …
468 void baf6(ConsumableClass<int> &&var) {
469 *var;
473 ConsumableClass<int> var(42);
475 baf0(var);
476 *var;
478 baf1(var);
479 *var;
481 baf2(&var);
482 *var;
484 baf4(var);
485 …*var; // expected-warning {{invalid invocation of method 'operator*' on object 'var' while it is i…
487 var = ConsumableClass<int>(42);
488 baf5(&var);
489 …*var; // expected-warning {{invalid invocation of method 'operator*' on object 'var' while it is i…
491 var = ConsumableClass<int>(42);
492 baf6(static_cast<ConsumableClass<int>&&>(var));
493 …*var; // expected-warning {{invalid invocation of method 'operator*' on object 'var' while it is i…
497 ConsumableClass<int> var(42);
499 var.constCall();
500 *var;
502 var.nonconstCall();
503 *var;
515 ConsumableClass<int> var;
517 var = returnsUnconsumed();
518 *var;
520 var = returnsConsumed();
521 …*var; // expected-warning {{invalid invocation of method 'operator*' on object 'var' while it is i…
525 ConsumableClass<int> var(42);
527 *var;
529 baf4(var);
531 var.callableWhenUnknown();
552 ConsumableClass<int> var;
554 if (var.isValid()) {
558 …*var; // expected-warning {{invalid invocation of method 'operator*' on object 'var' while it is i…
560 if (var.isValid()) {
566 …*var; // expected-warning {{invalid invocation of method 'operator*' on object 'var' while it is i…
570 ConsumableClass<int> var(42);
572 *var;
574 var.consume();
576 …*var; // expected-warning {{invalid invocation of method 'operator*' on object 'var' while it is i…
578 var.unconsume();
580 *var;
584 ConsumableClass<int> var(nullptr);
586 …*var; // expected-warning {{invalid invocation of method 'operator*' on object 'var' while it is i…
590 ConsumableClass<int> var(42);
592 var.unconsumedCall();
593 var(6);
595var.unconsumedCall(); // expected-warning {{invalid invocation of method 'unconsumedCall' on objec…
599 ConsumableClass<int> var(42);
601 if (var) {
602 *var;
604 *var;
607 *var;