[PATCH] D124686: [Symbolize] Parser for log symbolizer markup.

Daniel Thornburgh via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 29 12:36:09 PDT 2022


mysterymath created this revision.
Herald added subscribers: hiraditya, mgorny.
Herald added a project: All.
mysterymath updated this revision to Diff 426124.
mysterymath added a comment.
mysterymath updated this revision to Diff 426131.
mysterymath published this revision for review.
mysterymath added reviewers: phosek, mcgrathr, jhenderson.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Fixup before code review.


mysterymath added a comment.

Add tests for field parsing.


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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D124686

Files:
  llvm/include/llvm/DebugInfo/Symbolize/Markup.h
  llvm/lib/DebugInfo/Symbolize/CMakeLists.txt
  llvm/lib/DebugInfo/Symbolize/Markup.cpp
  llvm/unittests/DebugInfo/CMakeLists.txt
  llvm/unittests/DebugInfo/Symbolizer/CMakeLists.txt
  llvm/unittests/DebugInfo/Symbolizer/MarkupTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D124686.426131.patch
Type: text/x-patch
Size: 11704 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220429/538bd0f2/attachment.bin>


More information about the llvm-commits mailing list