[Mlir-commits] [mlir] bf4480d - Apply clang-tidy fixes for readability-identifier-naming in SparseTensorRuntime.cpp (NFC)
Mehdi Amini
llvmlistbot at llvm.org
Wed Feb 14 10:12:41 PST 2024
Author: Mehdi Amini
Date: 2024-02-14T10:11:37-08:00
New Revision: bf4480d923c7ead1193006d20caffdbf8468aac0
URL: https://github.com/llvm/llvm-project/commit/bf4480d923c7ead1193006d20caffdbf8468aac0
DIFF: https://github.com/llvm/llvm-project/commit/bf4480d923c7ead1193006d20caffdbf8468aac0.diff
LOG: Apply clang-tidy fixes for readability-identifier-naming in SparseTensorRuntime.cpp (NFC)
Added:
Modified:
mlir/lib/ExecutionEngine/SparseTensorRuntime.cpp
Removed:
################################################################################
diff --git a/mlir/lib/ExecutionEngine/SparseTensorRuntime.cpp b/mlir/lib/ExecutionEngine/SparseTensorRuntime.cpp
index e7ac8f161875db..a5e75a77b4e47f 100644
--- a/mlir/lib/ExecutionEngine/SparseTensorRuntime.cpp
+++ b/mlir/lib/ExecutionEngine/SparseTensorRuntime.cpp
@@ -508,9 +508,9 @@ MLIR_SPARSETENSOR_FOREVERY_V(IMPL_DELCOO)
#undef IMPL_DELCOO
char *getTensorFilename(index_type id) {
- constexpr size_t BUF_SIZE = 80;
- char var[BUF_SIZE];
- snprintf(var, BUF_SIZE, "TENSOR%" PRIu64, id);
+ constexpr size_t bufSize = 80;
+ char var[bufSize];
+ snprintf(var, bufSize, "TENSOR%" PRIu64, id);
char *env = getenv(var);
if (!env)
MLIR_SPARSETENSOR_FATAL("Environment variable %s is not set\n", var);
More information about the Mlir-commits
mailing list