[all-commits] [llvm/llvm-project] 459a82: [llvm][unittests] Don't call raw_string_ostream::f...

Youngsuk Kim via All-commits all-commits at lists.llvm.org
Fri Sep 13 17:00:13 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 459a82e6890ff41e30d486f36c8c7ec22628bb7a
      https://github.com/llvm/llvm-project/commit/459a82e6890ff41e30d486f36c8c7ec22628bb7a
  Author: JOE1994 <joseph942010 at gmail.com>
  Date:   2024-09-13 (Fri, 13 Sep 2024)

  Changed paths:
    M llvm/unittests/ADT/RewriteBufferTest.cpp
    M llvm/unittests/DebugInfo/DWARF/DWARFDebugFrameTest.cpp
    M llvm/unittests/DebugInfo/DWARF/DWARFDebugLineTest.cpp
    M llvm/unittests/DebugInfo/DWARF/DWARFFormValueTest.cpp
    M llvm/unittests/DebugInfo/GSYM/GSYMTest.cpp
    M llvm/unittests/IR/ConstantsTest.cpp
    M llvm/unittests/IR/ManglerTest.cpp
    M llvm/unittests/IR/MetadataTest.cpp
    M llvm/unittests/IR/ModuleSummaryIndexTest.cpp
    M llvm/unittests/MC/MCInstPrinter.cpp
    M llvm/unittests/MIR/MachineMetadata.cpp
    M llvm/unittests/Object/SymbolicFileTest.cpp
    M llvm/unittests/ProfileData/InstrProfTest.cpp
    M llvm/unittests/ProfileData/MemProfTest.cpp
    M llvm/unittests/Support/CommandLineTest.cpp
    M llvm/unittests/Support/CrashRecoveryTest.cpp
    M llvm/unittests/Support/ErrorTest.cpp
    M llvm/unittests/Support/FormatVariadicTest.cpp
    M llvm/unittests/Support/LEB128Test.cpp
    M llvm/unittests/Support/ModRefTest.cpp
    M llvm/unittests/Support/NativeFormatTests.cpp
    M llvm/unittests/Support/RISCVAttributeParserTest.cpp
    M llvm/unittests/Support/SourceMgrTest.cpp
    M llvm/unittests/Support/VirtualFileSystemTest.cpp
    M llvm/unittests/Support/YAMLIOTest.cpp
    M llvm/unittests/Target/RISCV/RISCVInstrInfoTest.cpp
    M llvm/unittests/Transforms/Vectorize/VPlanTest.cpp
    M llvm/unittests/XRay/FDRProducerConsumerTest.cpp
    M llvm/unittests/XRay/FDRRecordPrinterTest.cpp
    M llvm/unittests/XRay/FDRRecordsTest.cpp
    M llvm/unittests/XRay/FDRTraceWriterTest.cpp
    M llvm/unittests/tools/llvm-exegesis/ProgressMeterTest.cpp

  Log Message:
  -----------
  [llvm][unittests] Don't call raw_string_ostream::flush() (NFC)

raw_string_ostream::flush() is essentially a no-op (also specified in docs).
Don't call it in tests that aren't meant to test 'raw_string_ostream' itself.

p.s. remove a few redundant calls to raw_string_ostream::str()



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list