]> granicus.if.org Git - clang/commitdiff
Remove stray ';' and convert tabs to spaces.
authorTed Kremenek <kremenek@apple.com>
Thu, 9 Sep 2010 02:57:48 +0000 (02:57 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 9 Sep 2010 02:57:48 +0000 (02:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113466 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Analysis/CFG.h
lib/Analysis/CFG.cpp

index 22f08cc3d5569e7a9fde9b396c127a35d1f3027f..14ed663307d37b586a5d368dcd0cfeb71a836238 100644 (file)
@@ -210,13 +210,13 @@ public:
   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 @@ public:
     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; }
index 3dae83b564f908b1cbc589d5849819308f5f7b64..5977de609062b7e8046cc922b1aee14c74789891 100644 (file)
@@ -1941,17 +1941,17 @@ unsigned CFG::getNumBlkExprs() {
 //===----------------------------------------------------------------------===//
 
 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;
       }
     }
   }