Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/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()
91 REGISTER_MAP_WITH_PROGRAMSTATE(StreamMap, SymbolRef, StreamState) in REGISTER_MAP_WITH_PROGRAMSTATE() argument
H A DStreamChecker.cpp98 struct StreamState { struct
101 const FnDescription *LastOperation;
104 enum KindTy {
108 } State;
110 StringRef getKindStr() const { in getKindStr()
124 StreamErrorState const ErrorState;
134 bool const FilePositionIndeterminate = false;
136 StreamState(const FnDescription *L, KindTy S, const StreamErrorState &ES, in StreamState() function
146 bool isOpened() const { return State == Opened; } in isOpened()
147 bool isClosed() const { return State == Closed; } in isClosed()
[all …]