[all-commits] [llvm/llvm-project] f3487c: [YAMLParser] Add multi-line literal folding support

Scott Linder via All-commits all-commits at lists.llvm.org
Mon Feb 28 13:04:05 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f3487c7be97738f4d4fb8c4b80203dcf00c5e7a1
      https://github.com/llvm/llvm-project/commit/f3487c7be97738f4d4fb8c4b80203dcf00c5e7a1
  Author: Scott Linder <Scott.Linder at amd.com>
  Date:   2022-02-28 (Mon, 28 Feb 2022)

  Changed paths:
    M llvm/include/llvm/Support/YAMLParser.h
    M llvm/lib/Support/YAMLParser.cpp
    M llvm/test/YAMLParser/spec-09-24.test

  Log Message:
  -----------
  [YAMLParser] Add multi-line literal folding support

Last year I was working at Swift to add support for [Localization of Compiler Diagnostic Messages](https://forums.swift.org/t/localization-of-compiler-diagnostic-messages/36412/41). We are currently using YAML as the new diagnostic format. The LLVM::YAMLParser didn't have a support for multiline string literal folding and it's crucial to have that for the diagnostic message to help us keep up with the 80 columns rule. Therefore, I decided to add a multiline string literal folding support to the YAML parser.

Patch By: @HassanElDesouky (Hassan ElDesouky)

Differential Revision: https://reviews.llvm.org/D102590




More information about the All-commits mailing list