[all-commits] [llvm/llvm-project] 2040b6: [Symbolize] Parser for log symbolizer markup.

Daniel Thornburgh via All-commits all-commits at lists.llvm.org
Fri Jun 17 10:26:38 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2040b6df0a3f355076a363459f0d6c5ef187ac81
      https://github.com/llvm/llvm-project/commit/2040b6df0a3f355076a363459f0d6c5ef187ac81
  Author: Daniel Thornburgh <dthorn at google.com>
  Date:   2022-06-17 (Fri, 17 Jun 2022)

  Changed paths:
    A llvm/include/llvm/DebugInfo/Symbolize/Markup.h
    M llvm/lib/DebugInfo/Symbolize/CMakeLists.txt
    A llvm/lib/DebugInfo/Symbolize/Markup.cpp
    M llvm/unittests/DebugInfo/CMakeLists.txt
    A llvm/unittests/DebugInfo/Symbolizer/CMakeLists.txt
    A llvm/unittests/DebugInfo/Symbolizer/MarkupTest.cpp

  Log Message:
  -----------
  [Symbolize] Parser for log symbolizer markup.

This adds a parser for the log symbolizer markup format discussed in
https://discourse.llvm.org/t/rfc-log-symbolizer/61282. The parser
operates in a line-by-line fashion with minimal memory requirements.

This doesn't yet include support for multi-line tags or specific parsing
for ANSI X3.64 SGR control sequences, but it can be extended to do so.
The latter can also be relatively easily handled by examining the
resulting text elements.

Reviewed By: peter.smith

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




More information about the All-commits mailing list