Home
last modified time | relevance | path

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

/llvm-project-15.0.7/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.cpp86 struct StreamState { struct
88 const FnDescription *LastOperation;
92 enum KindTy {
96 } State;
100 StreamErrorState const ErrorState;
110 bool const FilePositionIndeterminate = false;
112 StreamState(const FnDescription *L, KindTy S, const StreamErrorState &ES, in StreamState() function
122 bool isOpened() const { return State == Opened; } in isOpened()
123 bool isClosed() const { return State == Closed; } in isClosed()
126 bool operator==(const StreamState &X) const { in operator ==()
[all …]