Home
last modified time | relevance | path

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

/freebsd-13.1/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DSimpleStreamChecker.cpp30 struct StreamState { struct
32 enum Kind { Opened, Closed } K;
33 StreamState(Kind InK) : K(InK) { } in StreamState() function
36 bool isOpened() const { return K == Opened; } in isOpened()
37 bool isClosed() const { return K == Closed; } in isClosed()
39 static StreamState getOpened() { return StreamState(Opened); } in getOpened()
40 static StreamState getClosed() { return StreamState(Closed); } in getClosed()
42 bool operator==(const StreamState &X) const { in operator ==()
45 void Profile(llvm::FoldingSetNodeID &ID) const { in Profile()
H A DStreamChecker.cpp85 struct StreamState { struct
87 const FnDescription *LastOperation;
91 enum KindTy {
95 } State;
99 StreamErrorState const ErrorState;
109 bool const FilePositionIndeterminate = false;
111 StreamState(const FnDescription *L, KindTy S, const StreamErrorState &ES, in StreamState() function
121 bool isOpened() const { return State == Opened; } in isOpened()
122 bool isClosed() const { return State == Closed; } in isClosed()
125 bool operator==(const StreamState &X) const { in operator ==()
[all …]