mirror of
https://github.com/zeek/zeek.git
synced 2025-10-14 12:38:20 +00:00
Fix clang-tidy readability-isolate-declaration warnings
I missed one of these in review so a machine is probably better at catching them. I fixed the existing instances which where largely in code which look dated. Where possible I slightly reorganized the code so we do not have to leave values uninitialized, but did not touch up anything else.
This commit is contained in:
parent
c725311d07
commit
627c3ad726
32 changed files with 142 additions and 81 deletions
|
@ -44,7 +44,10 @@ void ScriptProfile::Report(FILE* f, bool with_traces) const {
|
|||
std::string call_stacks;
|
||||
|
||||
if ( with_traces ) {
|
||||
std::string calls, counts, cpu, memory;
|
||||
std::string calls;
|
||||
std::string counts;
|
||||
std::string cpu;
|
||||
std::string memory;
|
||||
|
||||
for ( const auto& [s, stats] : Stacks() ) {
|
||||
calls += util::fmt("%s|", s.c_str());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue