From 067ab71806280196ed8f34578b361d3a544dc69d Mon Sep 17 00:00:00 2001 From: "petro.zarytskyi" Date: Wed, 13 Mar 2024 23:29:20 +0200 Subject: [PATCH] Address clang-tidy complaints --- lib/Differentiator/VisitorBase.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Differentiator/VisitorBase.cpp b/lib/Differentiator/VisitorBase.cpp index 32a5e99a2..86ea4e9cc 100644 --- a/lib/Differentiator/VisitorBase.cpp +++ b/lib/Differentiator/VisitorBase.cpp @@ -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(); @@ -808,7 +808,7 @@ namespace clad { Expr* PushExpr = BuildDeclRef(gradVar); if (!isCladArrayType(argTy)) PushExpr = BuildOp(UO_AddrOf, PushExpr); - Expr* callArgs[] = {TapeRef, PushExpr}; + std::array callArgs = {TapeRef, PushExpr}; Stmt* PushStmt = m_Sema .ActOnCallExpr(getCurrentScope(), PushDRE, noLoc, callArgs, noLoc)