ClangTidy cleanups

1. NULL -> nullptr
2. foo.reset(new Bar) -> = foo = std::make_unique<Bar>()
3. Missing std library includes & prefixes

Change-Id: I260b261b484554be681ee5a7398126fdb3b3a789
This commit is contained in:
Sameer Agarwal
2022-02-02 13:17:29 -08:00
parent a35bd1bf90
commit ae65219e04
171 changed files with 1191 additions and 1148 deletions
+3 -3
View File
@@ -74,7 +74,7 @@ class CERES_EXPORT_INTERNAL InnerProductComputer {
//
// The user must ensure that the matrix m is valid for the life time
// of this object.
static InnerProductComputer* Create(
static std::unique_ptr<InnerProductComputer> Create(
const BlockSparseMatrix& m,
CompressedRowSparseMatrix::StorageType storage_type);
@@ -83,7 +83,7 @@ class CERES_EXPORT_INTERNAL InnerProductComputer {
//
// a = m(start_row_block : end_row_block, :);
// result = a' * a;
static InnerProductComputer* Create(
static std::unique_ptr<InnerProductComputer> Create(
const BlockSparseMatrix& m,
int start_row_block,
int end_row_block,
@@ -127,7 +127,7 @@ class CERES_EXPORT_INTERNAL InnerProductComputer {
void Init(CompressedRowSparseMatrix::StorageType storage_type);
CompressedRowSparseMatrix* CreateResultMatrix(
std::unique_ptr<CompressedRowSparseMatrix> CreateResultMatrix(
const CompressedRowSparseMatrix::StorageType storage_type,
int num_nonzeros);