diff --git a/clang/utils/scan-build b/clang/utils/scan-build index cd5a3073d460..0c89f0327adb 100755 --- a/clang/utils/scan-build +++ b/clang/utils/scan-build @@ -489,6 +489,18 @@ function SetDisplay(RowClass, DisplayVal) } } +function CopyCheckedStateToCheckButtons(SummaryCheckButton) { + var Inputs = document.getElementsByTagName("input"); + for ( var i = 0 ; i < Inputs.length; ++i ) { + if (Inputs[i].type == "checkbox") { + if(Inputs[i] != SummaryCheckButton) { + Inputs[i].checked = SummaryCheckButton.checked; + Inputs[i].onclick(); + } + } + } +} + function ToggleDisplay(CheckButton, ClassName) { if (CheckButton.checked) { SetDisplay(ClassName, ""); @@ -536,9 +548,12 @@ ENDTEXT print OUT "\n
Results in this analysis run are based on analyzer build $BuildName.
\n" } + + my $TotalBugs = scalar(@Index); print OUT <