File tree Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Original file line number Diff line number Diff line change @@ -161,21 +161,6 @@ class DeclVisitor : public RecursiveASTVisitor<DeclVisitor> {
161161 return nullptr ;
162162 }
163163
164- // / Return true if there is a side effect inside a specified statement.
165- const Stmt * findSideEffect (const Stmt &S) {
166- if (!isa<CallExpr>(S) &&
167- !(isa<BinaryOperator>(S) && cast<BinaryOperator>(S).isAssignmentOp ()) &&
168- !(isa<UnaryOperator>(S) &&
169- cast<UnaryOperator>(S).isIncrementDecrementOp ())) {
170- for (auto Child : make_range (S.child_begin (), S.child_end ()))
171- if (Child)
172- if (auto SideEffect = findSideEffect (*Child))
173- return SideEffect;
174- return nullptr ;
175- }
176- return &S;
177- }
178-
179164 bool isInPragma = false ;
180165 bool waitingForVar = true ;
181166 std::map<NamedDecl *, DeclarationInfo> mDeadDecls ;
You can’t perform that action at this time.
0 commit comments