Hello,
I use SonarQube for Visual Studio 9.9.0.16495 for C++17 code, and get the S6018 issue for this code (line with static):
std::vector<LogContext>& ProcessEventsScope::Stack()
{
static thread_local std::vector<LogContext> stack;
return stack;
}
inline is useless here: local variable → no external linking → no potential multiple definitions
[for definition of LogContext, see my other message posted today]