[cfe-commits] r167187 - /cfe/trunk/lib/StaticAnalyzer/Checkers/SimpleStreamChecker.cpp

Jordan Rose jordan_rose at apple.com
Wed Oct 31 17:18:41 PDT 2012


Author: jrose
Date: Wed Oct 31 19:18:41 2012
New Revision: 167187

URL: http://llvm.org/viewvc/llvm-project?rev=167187&view=rev
Log:
[analyzer] Minor cleanup in SimpleStreamChecker's class definition.

No functionality change.

Modified:
    cfe/trunk/lib/StaticAnalyzer/Checkers/SimpleStreamChecker.cpp

Modified: cfe/trunk/lib/StaticAnalyzer/Checkers/SimpleStreamChecker.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Checkers/SimpleStreamChecker.cpp?rev=167187&r1=167186&r2=167187&view=diff
==============================================================================
--- cfe/trunk/lib/StaticAnalyzer/Checkers/SimpleStreamChecker.cpp (original)
+++ cfe/trunk/lib/StaticAnalyzer/Checkers/SimpleStreamChecker.cpp Wed Oct 31 19:18:41 2012
@@ -46,14 +46,14 @@
   }
 };
 
-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;
 
@@ -61,9 +61,9 @@
                          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();





More information about the cfe-commits mailing list