[all-commits] [llvm/llvm-project] a80aad: [YAML] fix output incorrect format for block scala...

Congcong Cai via All-commits all-commits at lists.llvm.org
Wed Mar 26 11:16:50 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a80aad28123101539134c277c6904905016754ca
      https://github.com/llvm/llvm-project/commit/a80aad28123101539134c277c6904905016754ca
  Author: Congcong Cai <congcongcai0907 at 163.com>
  Date:   2025-03-27 (Thu, 27 Mar 2025)

  Changed paths:
    M llvm/lib/Support/YAMLTraits.cpp
    M llvm/test/CodeGen/AArch64/GlobalISel/arm64-irtranslator.ll
    M llvm/test/CodeGen/Generic/MIRStripDebug/no-metadata-present.mir
    M llvm/test/CodeGen/MIR/AArch64/empty-MF.mir
    M llvm/test/tools/obj2yaml/Minidump/basic.yaml
    M llvm/unittests/Support/YAMLIOTest.cpp

  Log Message:
  -----------
  [YAML] fix output incorrect format for block scalar string (#132897)

After outputting block scalar string, the indent will be wrong.
This patch fixes Padding after block scalar string to ensure the correct
format of yaml.

The new added ut will fail in main.
```diff
@@ -3,4 +3,4 @@
     Just a block
     scalar doc
-scalar:          a
+  scalar:          a
 ...\n
```



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