Lines Matching refs:Status

695     Status {
699 static Status OK;
701 Status() RETURN_TYPESTATE(consumed);
702 Status(int c) RETURN_TYPESTATE(unconsumed);
704 Status(const Status &other);
705 Status(Status &&other);
707 Status& operator=(const Status &other) CALLABLE_WHEN("unknown", "consumed");
708 Status& operator=(Status &&other) CALLABLE_WHEN("unknown", "consumed");
710 bool operator==(const Status &other) const SET_TYPESTATE(consumed);
714 // Status& markAsChecked() { return *this; }
718 ~Status() CALLABLE_WHEN("unknown", "consumed");
725 Status doSomething();
726 void handleStatus(const Status& s RETURN_TYPESTATE(consumed));
727 void handleStatusRef(Status& s);
728 void handleStatusPtr(Status* s);
729 void handleStatusUnmarked(const Status& s);
733 void checkStat(const Status& s);
737 doSomething(); // expected-warning {{invalid invocation of method '~Status' on a temporary object while it is in the 'unconsumed' state}}
749 Status s = doSomething();
750 } // expected-warning {{invalid invocation of method '~Status' on object 's' while it is in the 'unconsumed' state}}
753 bool b = false || doSomething(); // expected-warning {{invalid invocation of method '~Status' on a temporary object while it is in the 'unconsumed' state}}
756 Status testSimpleTemporariesReturn0() {
760 Status testSimpleTemporariesReturn1() {
761 Status s = doSomething();
766 Status s = doSomething();
771 Status s = doSomething();
776 Status s1 = doSomething();
779 Status s2 = doSomething();
782 Status s3 = doSomething();
785 Status s4 = doSomething();
790 Status s;
792 } // expected-warning {{invalid invocation of method '~Status' on object 's' while it is in the 'unconsumed' state}}
797 Status s = doSomething();
800 } // expected-warning {{invalid invocation of method '~Status' on object 's' while it is in the 'unconsumed' state}}
805 Status s = doSomething();
814 Status s = doSomething();
821 Status s = doSomething();
828 Status s(doSomething()); // Test the copy constructor.
833 Status s1 = doSomething(); // Test the copy constructor.
834 Status s2 = s1;
835 } // expected-warning {{invalid invocation of method '~Status' on object 's2' while it is in the 'unconsumed' state}}
838 Status s1 = doSomething(); // Test the copy constructor.
839 Status s2(s1);
845 Status s1 = doSomething();
846 Status s2 = static_cast<Status&&>(s1);
847 } // expected-warning {{invalid invocation of method '~Status' on object 's2' while it is in the 'unconsumed' state}}
851 Status s1 = doSomething();
852 Status s2 = static_cast<Status&&>(s1);
858 Status s1 = doSomething();
859 Status s2;
861 } // expected-warning {{invalid invocation of method '~Status' on object 's2' while it is in the 'unconsumed' state}}
865 Status s1 = doSomething();
866 Status s2;
873 Status s1 = doSomething();
874 Status s2;
875 s2 = static_cast<Status&&>(s1);
876 } // expected-warning {{invalid invocation of method '~Status' on object 's2' while it is in the 'unconsumed' state}}
880 Status s1 = doSomething();
881 Status s2;
882 s2 = static_cast<Status&&>(s1);
887 Status s1 = doSomething();
888 Status s2 = doSomething();
894 Status testReturnAutocast() {
895 Status s = doSomething();
908 Status s = (doSomething());
917 if ((doSomething()) == Status::OK)