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());

Check warning on line 1493 in lib/Differentiator/ReverseModeVisitor.cpp

View check run for this annotation

Codecov / codecov/patch

lib/Differentiator/ReverseModeVisitor.cpp#L1491-L1493

Added lines #L1491 - L1493 were not covered by tests

FunctionDecl* atomicAddFunc = nullptr;
for (LookupResult::iterator it = lookupResult.begin();
it != lookupResult.end(); it++) {
NamedDecl* decl = *it;
for (auto decl : lookupResult) {

Check warning on line 1496 in lib/Differentiator/ReverseModeVisitor.cpp

View check run for this annotation

Codecov / codecov/patch

lib/Differentiator/ReverseModeVisitor.cpp#L1495-L1496

Added lines #L1495 - L1496 were not covered by tests
// 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());

Check warning on line 2312 in lib/Differentiator/ReverseModeVisitor.cpp

View check run for this annotation

Codecov / codecov/patch

lib/Differentiator/ReverseModeVisitor.cpp#L2310-L2312

Added lines #L2310 - L2312 were not covered by tests

FunctionDecl* atomicAddFunc = nullptr;
for (LookupResult::iterator it = lookupResult.begin();
it != lookupResult.end(); it++) {
NamedDecl* decl = *it;
for (auto decl : lookupResult) {

Check warning on line 2315 in lib/Differentiator/ReverseModeVisitor.cpp

View check run for this annotation

Codecov / codecov/patch

lib/Differentiator/ReverseModeVisitor.cpp#L2314-L2315

Added lines #L2314 - L2315 were not covered by tests
// 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.