Home
last modified time | relevance | path

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

/netbsd-src/external/apache2/llvm/dist/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() argument
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.cpp81 struct StreamState { struct
83 const FnDescription *LastOperation;
87 enum KindTy {
91 } State;
95 StreamErrorState const ErrorState;
105 bool const FilePositionIndeterminate = false;
107 StreamState(const FnDescription *L, KindTy S, const StreamErrorState &ES, in StreamState() argument
117 bool isOpened() const { return State == Opened; } in isOpened()
118 bool isClosed() const { return State == Closed; } in isClosed()
119 bool isOpenFailed() const { return State == OpenFailed; } in isOpenFailed()
[all …]