Skip to content

Commit dd5696c

Browse files
committed
Apply clang-tidy fixes for readability-identifier-naming in BytecodeTest.cpp (NFC)
1 parent e13bbd1 commit dd5696c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

mlir/unittests/Bytecode/BytecodeTest.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
using namespace llvm;
2424
using namespace mlir;
2525

26-
StringLiteral IRWithResources = R"(
26+
StringLiteral irWithResources = R"(
2727
module @TestDialectResources attributes {
2828
bytecode.test = dense_resource<resource> : tensor<4xi32>
2929
} {}
@@ -42,7 +42,7 @@ TEST(Bytecode, MultiModuleWithResource) {
4242
Builder builder(&context);
4343
ParserConfig parseConfig(&context);
4444
OwningOpRef<Operation *> module =
45-
parseSourceString<Operation *>(IRWithResources, parseConfig);
45+
parseSourceString<Operation *>(irWithResources, parseConfig);
4646
ASSERT_TRUE(module);
4747

4848
// Write the module to bytecode
@@ -53,15 +53,15 @@ TEST(Bytecode, MultiModuleWithResource) {
5353

5454
// Create copy of buffer which is aligned to requested resource alignment.
5555
constexpr size_t kAlignment = 0x20;
56-
size_t buffer_size = buffer.size();
57-
buffer.reserve(buffer_size + kAlignment - 1);
56+
size_t bufferSize = buffer.size();
57+
buffer.reserve(bufferSize + kAlignment - 1);
5858
size_t pad = ~(uintptr_t)buffer.data() + 1 & kAlignment - 1;
5959
buffer.insert(0, pad, ' ');
60-
StringRef aligned_buffer(buffer.data() + pad, buffer_size);
60+
StringRef alignedBuffer(buffer.data() + pad, bufferSize);
6161

6262
// Parse it back
6363
OwningOpRef<Operation *> roundTripModule =
64-
parseSourceString<Operation *>(aligned_buffer, parseConfig);
64+
parseSourceString<Operation *>(alignedBuffer, parseConfig);
6565
ASSERT_TRUE(roundTripModule);
6666

6767
// FIXME: Parsing external resources does not work on big-endian

0 commit comments

Comments
 (0)