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 {
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; }
//===----------------------------------------------------------------------===//
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;
}
}
}