Skip to content

Commit

Permalink
Fix clang-tidy comments
Browse files Browse the repository at this point in the history
  • Loading branch information
kchristin22 committed Sep 24, 2024
1 parent d02f3be commit e9cf25d
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions lib/Differentiator/ReverseModeVisitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1493,9 +1493,7 @@ Expr* getArraySizeExpr(const ArrayType* AT, ASTContext& context,
m_Context.getTranslationUnitDecl());

FunctionDecl* atomicAddFunc = nullptr;
for (LookupResult::iterator it = lookupResult.begin();
it != lookupResult.end(); it++) {
NamedDecl* decl = *it;
for (auto decl : lookupResult) {
// FIXME: check for underlying types of the pointers
if (dyn_cast<FunctionDecl>(decl)->getReturnType() ==
result->getType()) {
Expand Down Expand Up @@ -2314,9 +2312,7 @@ Expr* getArraySizeExpr(const ArrayType* AT, ASTContext& context,
m_Context.getTranslationUnitDecl());

FunctionDecl* atomicAddFunc = nullptr;
for (LookupResult::iterator it = lookupResult.begin();
it != lookupResult.end(); it++) {
NamedDecl* decl = *it;
for (auto decl : lookupResult) {
// FIXME: check for underlying types of the pointers
if (dyn_cast<FunctionDecl>(decl)->getReturnType() ==
derivedE->getType()) {
Expand Down

0 comments on commit e9cf25d

Please sign in to comment.