Lines Matching defs:StreamErrorState
45 struct StreamErrorState { struct
47 bool NoError = true;
49 bool FEof = false;
51 bool FError = false;
53 bool isNoError() const { return NoError && !FEof && !FError; } in isNoError()
54 bool isFEof() const { return !NoError && FEof && !FError; } in isFEof()
55 bool isFError() const { return !NoError && !FEof && FError; } in isFError()
57 bool operator==(const StreamErrorState &ES) const { in operator ==()
61 bool operator!=(const StreamErrorState &ES) const { return !(*this == ES); } in operator !=()
63 StreamErrorState operator|(const StreamErrorState &E) const { in operator |()
67 StreamErrorState operator&(const StreamErrorState &E) const { in operator &()
71 StreamErrorState operator~() const { return {!NoError, !FEof, !FError}; } in operator ~()
74 operator bool() const { return NoError || FEof || FError; } in operator bool()
76 void Profile(llvm::FoldingSetNodeID &ID) const { in Profile()