[all-commits] [llvm/llvm-project] a443b3: [dataflow] add HTML logger: browse code/cfg/analys...
Sam McCall via All-commits
all-commits at lists.llvm.org
Wed Apr 19 06:37:21 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: a443b3d18ef4d01e767994845b3f2819480a7b48
https://github.com/llvm/llvm-project/commit/a443b3d18ef4d01e767994845b3f2819480a7b48
Author: Sam McCall <sam.mccall at gmail.com>
Date: 2023-04-19 (Wed, 19 Apr 2023)
Changed paths:
M clang/include/clang/Analysis/FlowSensitive/Logger.h
M clang/lib/Analysis/FlowSensitive/CMakeLists.txt
M clang/lib/Analysis/FlowSensitive/DataflowAnalysisContext.cpp
A clang/lib/Analysis/FlowSensitive/HTMLLogger.cpp
A clang/lib/Analysis/FlowSensitive/HTMLLogger.css
A clang/lib/Analysis/FlowSensitive/HTMLLogger.html
A clang/lib/Analysis/FlowSensitive/HTMLLogger.js
M clang/unittests/Analysis/FlowSensitive/LoggerTest.cpp
A clang/utils/bundle_resources.py
Log Message:
-----------
[dataflow] add HTML logger: browse code/cfg/analysis timeline/state
With -dataflow-log=/dir we will write /dir/0.html etc for each
function analyzed.
These files show the function's code and CFG, and the path through
the CFG taken by the analysis. At each analysis point we can see the
lattice state.
Currently the lattice state dump is not terribly useful but we can
improve this: showing values associated with the current Expr,
simplifying flow condition, highlighting changes etc.
(Trying not to let this patch scope-creep too much, so I ripped out the
half-finished features)
Demo: https://htmlpreview.github.io/?https://gist.githubusercontent.com/sam-mccall/1746985bf13406bd19181af281aea9ff/raw/9718fdd48406dabccb3092acd983b4bd55da9dfa/analysis.html
Differential Revision: https://reviews.llvm.org/D146591
More information about the All-commits
mailing list