[Mlir-commits] [mlir] 221f785 - Apply clang-tidy fixes for readability-identifier-naming in BytecodeWriter.cpp (NFC)
Mehdi Amini
llvmlistbot at llvm.org
Mon Aug 29 17:11:28 PDT 2022
Author: Mehdi Amini
Date: 2022-08-30T00:10:45Z
New Revision: 221f7853b9939f05288e4aac23ec04bc438dead3
URL: https://github.com/llvm/llvm-project/commit/221f7853b9939f05288e4aac23ec04bc438dead3
DIFF: https://github.com/llvm/llvm-project/commit/221f7853b9939f05288e4aac23ec04bc438dead3.diff
LOG: Apply clang-tidy fixes for readability-identifier-naming in BytecodeWriter.cpp (NFC)
Added:
Modified:
mlir/lib/Bytecode/Writer/BytecodeWriter.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Bytecode/Writer/BytecodeWriter.cpp b/mlir/lib/Bytecode/Writer/BytecodeWriter.cpp
index 7a420e448beca..5f34d9bb7a08f 100644
--- a/mlir/lib/Bytecode/Writer/BytecodeWriter.cpp
+++ b/mlir/lib/Bytecode/Writer/BytecodeWriter.cpp
@@ -162,9 +162,9 @@ class EncodingEmitter {
/// A simple raw_ostream wrapper around a EncodingEmitter. This removes the need
/// to go through an intermediate buffer when interacting with code that wants a
/// raw_ostream.
-class raw_emitter_ostream : public raw_ostream {
+class RawEmitterOstream : public raw_ostream {
public:
- explicit raw_emitter_ostream(EncodingEmitter &emitter) : emitter(emitter) {
+ explicit RawEmitterOstream(EncodingEmitter &emitter) : emitter(emitter) {
SetUnbuffered();
}
@@ -468,7 +468,7 @@ void BytecodeWriter::writeAttrTypeSection(EncodingEmitter &emitter) {
// If the entry was not emitted using the dialect interface, emit it using
// the textual format.
if (!hasCustomEncoding) {
- raw_emitter_ostream(attrTypeEmitter) << entryValue;
+ RawEmitterOstream(attrTypeEmitter) << entryValue;
attrTypeEmitter.emitByte(0);
}
More information about the Mlir-commits
mailing list