Skip to content

TestDriver: Fix 'misc-use-anonymous-namespace' warning from clang-tidy 16

clang-tidy 16 introduced a new check that warns about static global variable and functions and suggest using anonymous namespace instead.

clang-tidy does not warn about const variables so making the variable const was enough. But for the two functions ignoring the warning is the easiest fix since using an anonymous namespace is not possible for C compatibility of the file and using conditional macros for a begin/end namespace and the static keyword seems worse.

Merge request reports