Skip to content

Commit

Permalink
Address clang-tidy complaints
Browse files Browse the repository at this point in the history
  • Loading branch information
PetroZarytskyi committed Mar 13, 2024
1 parent aa6cedf commit 0044e43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Differentiator/VisitorBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -799,7 +799,7 @@ namespace clad {
CXXScopeSpec CSS;
CSS.Extend(m_Context, GetCladNamespace(), noLoc, noLoc);
LookupResult& Push = GetCladTapePush();
auto PushDRE =
Expr* PushDRE =
m_Sema.BuildDeclarationNameExpr(CSS, Push, /*ADL*/ false).get();
for (unsigned i = 0, e = numArgs; i < e; i++) {
QualType argTy = args[i]->getType();
Expand All @@ -810,7 +810,7 @@ namespace clad {
PushExpr = BuildOp(UO_AddrOf, BuildDeclRef(gradVar));
else
PushExpr = BuildDeclRef(gradVar);

Check warning on line 812 in lib/Differentiator/VisitorBase.cpp

View check run for this annotation

Codecov / codecov/patch

lib/Differentiator/VisitorBase.cpp#L812

Added line #L812 was not covered by tests
Expr* callArgs[] = {TapeRef, PushExpr};
std::array<Expr*, 2> callArgs = {TapeRef, PushExpr};
Stmt* PushStmt =
m_Sema
.ActOnCallExpr(getCurrentScope(), PushDRE, noLoc, callArgs, noLoc)
Expand Down

0 comments on commit 0044e43

Please sign in to comment.