Hello,
I'm using the latest clang-18, and the static-analyzer/clang-tidy through CodeChecker.
I have a little issue with it flagging all my ranged based for loop with Past-the-end iterator dereferenced.
For example, in the following function
void log(const log_tags_t & tags, const LogLevel lvl, const std::string & str)
{
for (const auto & logger : m_loggers) { logger(tags, lvl, str); }
}
The for (const auto & logger : m_loggers) is being flagged. I can't think of any context in which a range based for loop would do such a thing.
Any idea?
Thanks in advance