[cfe-commits] r113466 - in /cfe/trunk: include/clang/Analysis/CFG.h lib/Analysis/CFG.cpp

Ted Kremenek kremenek at apple.com
Wed Sep 8 19:57:48 PDT 2010


Author: kremenek
Date: Wed Sep  8 21:57:48 2010
New Revision: 113466

URL: http://llvm.org/viewvc/llvm-project?rev=113466&view=rev
Log:
Remove stray ';' and convert tabs to spaces.

Modified:
    cfe/trunk/include/clang/Analysis/CFG.h
    cfe/trunk/lib/Analysis/CFG.cpp

Modified: cfe/trunk/include/clang/Analysis/CFG.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Analysis/CFG.h?rev=113466&r1=113465&r2=113466&view=diff
==============================================================================
--- cfe/trunk/include/clang/Analysis/CFG.h (original)
+++ cfe/trunk/include/clang/Analysis/CFG.h Wed Sep  8 21:57:48 2010
@@ -210,13 +210,13 @@
   public:
     FilterOptions() {
       IgnoreDefaultsWithCoveredEnums = 0;
-    };
+    }
 
     unsigned IgnoreDefaultsWithCoveredEnums : 1;
   };
 
   static bool FilterEdge(const FilterOptions &F, const CFGBlock *Src,
-			 const CFGBlock *Dst);
+       const CFGBlock *Dst);
 
   template <typename IMPL, bool IsPred>
   class FilteredCFGBlockIterator {
@@ -226,8 +226,8 @@
     const CFGBlock *From;
    public:
     explicit FilteredCFGBlockIterator(const IMPL &i, const IMPL &e,
-				      const CFGBlock *from,
-				      const FilterOptions &f)
+              const CFGBlock *from,
+              const FilterOptions &f)
       : I(i), E(e), F(f), From(from) {}
 
     bool hasMore() const { return I != E; }

Modified: cfe/trunk/lib/Analysis/CFG.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/CFG.cpp?rev=113466&r1=113465&r2=113466&view=diff
==============================================================================
--- cfe/trunk/lib/Analysis/CFG.cpp (original)
+++ cfe/trunk/lib/Analysis/CFG.cpp Wed Sep  8 21:57:48 2010
@@ -1941,17 +1941,17 @@
 //===----------------------------------------------------------------------===//
 
 bool CFGBlock::FilterEdge(const CFGBlock::FilterOptions &F,
-			  const CFGBlock *From, const CFGBlock *To) {
+        const CFGBlock *From, const CFGBlock *To) {
 
   if (F.IgnoreDefaultsWithCoveredEnums) {
     // If the 'To' has no label or is labeled but the label isn't a
     // CaseStmt then filter this edge.
     if (const SwitchStmt *S =
-	dyn_cast_or_null<SwitchStmt>(From->getTerminator())) {
+  dyn_cast_or_null<SwitchStmt>(From->getTerminator())) {
       if (S->isAllEnumCasesCovered()) {
-	const Stmt *L = To->getLabel();
-	if (!L || !isa<CaseStmt>(L))
-	  return true;
+  const Stmt *L = To->getLabel();
+  if (!L || !isa<CaseStmt>(L))
+    return true;
       }
     }
   }





More information about the cfe-commits mailing list