Add & to auto to make static analyzer happy
authorSanggyu Lee <takepencil@naver.com>
Mon, 8 Jan 2024 04:54:23 +0000 (13:54 +0900)
committerChunseok Lee <chunseok.lee@samsung.com>
Mon, 8 Jan 2024 06:22:15 +0000 (15:22 +0900)
commitb0af54419e892853c00ab204acdee56d39c15b2b
tree5e5784c031bce36993093cc98a23fe22ea5b6dd3
parent4dbced9c5c7b5a2dfaf5e7f0f549eaa6f83fbc6a
Add & to auto to make static analyzer happy

It adds & to make static analyzer happy.
It may help remove copy for non-primitive type.
In addition, some variables of auto turned out not-used variables.
All un-used variables of auto are removed also.

ONE-DCO-1.0-Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
21 files changed:
runtime/onert/backend/cl_common/include/cl_common/BackendContext.h
runtime/onert/backend/cpu/KernelGenerator.cc
runtime/onert/backend/cpu/ops/DetectionPostProcessLayer.cc
runtime/onert/backend/gpu_cl/ClConstantInitializer.h
runtime/onert/backend/gpu_cl/KernelGenerator.cc
runtime/onert/backend/gpu_cl/operand/ICLTensor.cc
runtime/onert/backend/ruy/KernelGenerator.cc
runtime/onert/backend/xnnpack/KernelGenerator.cc
runtime/onert/core/include/backend/basic/BackendContextHelpers.h
runtime/onert/core/src/backend/basic/TensorBuilder.cc
runtime/onert/core/src/backend/builtin/TensorBuilder.cc
runtime/onert/core/src/compiler/HEScheduler.cc
runtime/onert/core/src/compiler/ShapeValidator.cc
runtime/onert/core/src/compiler/StaticShapeInferer.cc
runtime/onert/core/src/compiler/pass/PermutationInsertionPass.cc
runtime/onert/core/src/exec/DynamicShapeInferer.cc
runtime/onert/core/src/exec/Execution.cc
runtime/onert/core/src/exec/ExecutorBase.cc
runtime/onert/core/src/ir/Graph.cc
runtime/onert/core/src/ir/OperationValidator.cc
runtime/onert/frontend/nnapi/wrapper/ANeuralNetworksExecution.cc