[PATCH] D102590: [YAMLParser] Add multi-line literal folding support

Hassan ElDesouky via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun May 16 19:57:30 PDT 2021


HassanElDesouky created this revision.
HassanElDesouky added reviewers: njames93, silvas.
Herald added subscribers: dexonsmith, hiraditya.
HassanElDesouky requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D102590

Files:
  llvm/include/llvm/Support/YAMLParser.h
  llvm/lib/Support/YAMLParser.cpp
  llvm/test/YAMLParser/spec-09-24.test

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D102590.345739.patch
Type: text/x-patch
Size: 4995 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210517/a86b7d36/attachment.bin>


More information about the llvm-commits mailing list