Extended Description
clang-tidy-10 as of 2020-01-31 gives the following false positive
====== test.cpp ======
template
void f(RANGE r) {
for (char c : r) {
}
}
$ clang-tidy test.cpp --checks='cppcoreguidelines*'
test.cpp:3:13: warning: variable 'c' is not initialized [cppcoreguidelines-init-variables]
for (char c : r) {
^
= 0
Also reproducible on trunk:
https://godbolt.org/z/s_bCSi