[all-commits] [llvm/llvm-project] c91ce9: [pseudo] Add `clang-pseudo -html-forest=<output.ht...

Sam McCall via All-commits all-commits at lists.llvm.org
Tue Jul 19 13:32:39 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c91ce941448a8c67268b3c36797cbea9ad711216
      https://github.com/llvm/llvm-project/commit/c91ce941448a8c67268b3c36797cbea9ad711216
  Author: Sam McCall <sam.mccall at gmail.com>
  Date:   2022-07-19 (Tue, 19 Jul 2022)

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

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

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

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




More information about the All-commits mailing list