[PATCH] D130004: [pseudo] Add `clang-pseudo -html-forest=<output.html>`, an HTML forest browser

Sam McCall via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 18 06:02:40 PDT 2022


sammccall created this revision.
sammccall added a reviewer: hokein.
Herald added a subscriber: mgorny.
Herald added a project: All.
sammccall requested review of this revision.
Herald added subscribers: cfe-commits, alextsao1999.
Herald added a project: clang-tools-extra.

It generates a standalone HTML file with all needed JS/CSS embedded.
This allows navigating the tree both with a tree widget and in the code,
inspecting nodes, and selecting ambiguous alternatives.

Demo: https://htmlpreview.github.io/?https://gist.githubusercontent.com/sam-mccall/03882f7499d293196594e8a50599a503/raw/ASTSignals.cpp.html


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D130004

Files:
  clang-tools-extra/pseudo/test/html-forest.c
  clang-tools-extra/pseudo/tool/CMakeLists.txt
  clang-tools-extra/pseudo/tool/ClangPseudo.cpp
  clang-tools-extra/pseudo/tool/HTMLForest.cpp
  clang-tools-extra/pseudo/tool/HTMLForest.css
  clang-tools-extra/pseudo/tool/HTMLForest.html
  clang-tools-extra/pseudo/tool/HTMLForest.js
  clang-tools-extra/pseudo/tool/bundle_resources.py

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D130004.445472.patch
Type: text/x-patch
Size: 24843 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220718/33fd795c/attachment-0001.bin>


More information about the cfe-commits mailing list