From: Ted Kremenek Date: Thu, 9 Sep 2010 02:57:48 +0000 (+0000) Subject: Remove stray ';' and convert tabs to spaces. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=be39a566a914df8561d7a1e9654708297f0908c1;p=clang Remove stray ';' and convert tabs to spaces. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113466 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Analysis/CFG.h b/include/clang/Analysis/CFG.h index 22f08cc3d5..14ed663307 100644 --- a/include/clang/Analysis/CFG.h +++ b/include/clang/Analysis/CFG.h @@ -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 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; } diff --git a/lib/Analysis/CFG.cpp b/lib/Analysis/CFG.cpp index 3dae83b564..5977de6090 100644 --- a/lib/Analysis/CFG.cpp +++ b/lib/Analysis/CFG.cpp @@ -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(From->getTerminator())) { + dyn_cast_or_null(From->getTerminator())) { if (S->isAllEnumCasesCovered()) { - const Stmt *L = To->getLabel(); - if (!L || !isa(L)) - return true; + const Stmt *L = To->getLabel(); + if (!L || !isa(L)) + return true; } } }