Skip to content

Commit 41b0037

Browse files
committed
Fix #14206 --showtime does not account for addons
1 parent b8c045a commit 41b0037

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

lib/cppcheck.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1505,7 +1505,9 @@ void CppCheck::executeAddons(const std::string& dumpFile, const FileWithDetails&
15051505
{
15061506
if (!dumpFile.empty()) {
15071507
std::vector<std::string> f{dumpFile};
1508-
executeAddons(f, file.spath());
1508+
Timer::run("CppCheck::executeAddons", mSettings.showtime, &s_timerResults, [&]() {
1509+
executeAddons(f, file.spath());
1510+
});
15091511
}
15101512
}
15111513

0 commit comments

Comments
 (0)