Skip to content

[clang][dataflow] Display line numbers in the HTML logger timeline. #80130

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions clang/lib/Analysis/FlowSensitive/HTMLLogger.css
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,16 @@ section h2 {
}
#timeline {
min-width: max-content;
counter-reset: entry_counter;
}
#timeline .entry .counter::before {
counter-increment: entry_counter;
content: counter(entry_counter) ":";
}
#timeline .entry .counter {
display: inline-block;
min-width: 2em; /* Enough space for two digits and a colon */
text-align: right;
}
#timeline .entry.hover {
background-color: #aaa;
Expand Down
1 change: 1 addition & 0 deletions clang/lib/Analysis/FlowSensitive/HTMLLogger.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
<header>Timeline</header>
<template data-for="entry in timeline">
<div id="{{entry.block}}:{{entry.iter}}" data-bb="{{entry.block}}" class="entry">
<span class="counter"></span>
{{entry.block}}
<template data-if="entry.post_visit">(post-visit)</template>
<template data-if="!entry.post_visit">({{entry.iter}})</template>
Expand Down