Sam McCall c91ce94144 [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
2022-07-19 22:32:11 +02:00

9 lines
216 B
C

// RUN: clang-pseudo -source %s -html-forest=%t.html
// RUN: FileCheck %s < %t.html
int main() {
}
// Sanity check for some obvious strings.
// CHECK-DAG: <body>
// CHECK-DAG: "compound-statement"
// CHECK-DAG: main