llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT--> @llvm/pr-subscribers-clang-analysis <details> <summary>Changes</summary> Also, change the mouse cursor into a pointer instead of a text cursor. This makes it more discoverable that the element can be opened and closed. --- Full diff: https://github.com/llvm/llvm-project/pull/67431.diff 2 Files Affected: - (modified) clang/lib/Analysis/FlowSensitive/HTMLLogger.css (+13-1) - (modified) clang/lib/Analysis/FlowSensitive/HTMLLogger.html (+1-1) ``````````diff diff --git a/clang/lib/Analysis/FlowSensitive/HTMLLogger.css b/clang/lib/Analysis/FlowSensitive/HTMLLogger.css index c8212df1f94b81a..73f639eac6836ec 100644 --- a/clang/lib/Analysis/FlowSensitive/HTMLLogger.css +++ b/clang/lib/Analysis/FlowSensitive/HTMLLogger.css @@ -122,10 +122,22 @@ code.line:has(.bb-select):before { font-size: x-small; flex-grow: 1; } -.value summary { +.value > summary { background-color: #ace; display: flex; justify-content: space-between; + cursor: pointer; +} +.value > summary::before { + content: '►'; + margin-right: 0.5em; + font-size: 0.9em; +} +.value[open] > summary::before { + content: '▼'; +} +.value > summary > .location { + margin-left: auto; } .value .address { font-size: xx-small; diff --git a/clang/lib/Analysis/FlowSensitive/HTMLLogger.html b/clang/lib/Analysis/FlowSensitive/HTMLLogger.html index 87695623cb318b2..6d866d57e144866 100644 --- a/clang/lib/Analysis/FlowSensitive/HTMLLogger.html +++ b/clang/lib/Analysis/FlowSensitive/HTMLLogger.html @@ -18,7 +18,7 @@ <template data-if="v.value_id"><span class="address">#{{v.value_id}}</span></template> </span> <template data-if="v.location"> - <span>{{v.type}} <span class="address">@{{v.location}}</span></span> + <span class="location">{{v.type}} <span class="address">@{{v.location}}</span></span> </template> </summary> <template `````````` </details> https://github.com/llvm/llvm-project/pull/67431 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits