mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-17 04:46:37 +00:00

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
9 lines
216 B
C
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
|