introduced a cache for `followAllReferences()` calls by firewave · Pull Request #7192 · cppcheck-opensource/cppcheck
This essentially eliminates any meaningful impact by followAllReferences() at all.
-D__GNUC__ --check-level=exhaustive ../lib/utils.cpp
Clang 19 652,987,030 -> 624,476,510618,089,977
followAllReferences() calls from isAliasOf() - 350,100 -> 1,581
The example from https://trac.cppcheck.net/ticket/10765#comment:4:
Clang 19 3,056,382,003 -> 2,838,708,7312,815,165,117
followAllReferences() calls from isAliasOf() - 2,592,565 -> 641