Home
last modified time | relevance | path

Searched defs:StreamState (Results 1 – 2 of 2) sorted by relevance

/openbsd-src/gnu/llvm/clang/lib/StaticAnalyzer/Checkers/
H A DSimpleStreamChecker.cpp31 struct StreamState { struct
33 enum Kind { Opened, Closed } K;
34 StreamState(Kind InK) : K(InK) { } in StreamState() function
37 bool isOpened() const { return K == Opened; } in isOpened()
38 bool isClosed() const { return K == Closed; } in isClosed()
40 static StreamState getOpened() { return StreamState(Opened); } in getOpened()
41 static StreamState getClosed() { return StreamState(Closed); } in getClosed()
43 bool operator==(const StreamState &X) const { in operator ==()
46 void Profile(llvm::FoldingSetNodeID &ID) const { in Profile()
90 REGISTER_MAP_WITH_PROGRAMSTATE(StreamMap, SymbolRef, StreamState) in REGISTER_MAP_WITH_PROGRAMSTATE() argument
H A DStreamChecker.cpp88 struct StreamState { struct
91 const FnDescription *LastOperation;
94 enum KindTy {
98 } State;
102 StreamErrorState const ErrorState;
112 bool const FilePositionIndeterminate = false;
114 StreamState(const FnDescription *L, KindTy S, const StreamErrorState &ES, in StreamState() argument
124 bool isOpened() const { return State == Opened; } in isOpened()
125 bool isClosed() const { return State == Closed; } in isClosed()
126 bool isOpenFailed() const { return State == OpenFailed; } in isOpenFailed()
[all …]