Currently, an empty string/entry is ignored by ClangTidyCache.get_cache_data, resulting in None being returned.
Thus, a cache hit will be ignored and clang-tidy still run if the entry is empty and save_output is enabled.
This also contrasts run_clang_tidy_cached that correctly checks if data is not None instead of only if data.
Currently, an empty string/entry is ignored by
ClangTidyCache.get_cache_data
, resulting inNone
being returned. Thus, a cache hit will be ignored and clang-tidy still run if the entry is empty andsave_output
is enabled. This also contrastsrun_clang_tidy_cached
that correctly checksif data is not None
instead of onlyif data
.