}
};
-class SimpleStreamChecker: public Checker<check::PostStmt<CallExpr>,
- check::PreStmt<CallExpr>,
- check::DeadSymbols > {
+class SimpleStreamChecker : public Checker<check::PostStmt<CallExpr>,
+ check::PreStmt<CallExpr>,
+ check::DeadSymbols > {
mutable IdentifierInfo *IIfopen, *IIfclose;
- mutable OwningPtr<BugType> DoubleCloseBugType;
- mutable OwningPtr<BugType> LeakBugType;
+ OwningPtr<BugType> DoubleCloseBugType;
+ OwningPtr<BugType> LeakBugType;
void initIdentifierInfo(ASTContext &Ctx) const;
const CallExpr *Call,
CheckerContext &C) const;
- void reportLeaks(SymbolVector LeakedStreams,
- CheckerContext &C,
- ExplodedNode *ErrNode) const;
+ void reportLeaks(SymbolVector LeakedStreams,
+ CheckerContext &C,
+ ExplodedNode *ErrNode) const;
public:
SimpleStreamChecker();