The following code snippet results a false positive report in the magic number checker:
std::string s = "Hello World"s;
The expression "Hello World"s has a StringLiteral in its AST, since this is a function call on std::string operator "" s(const char*, std::size_t) and the second parameter is passed the length of the string literal.
This patch fixes https://bugs.llvm.org/show_bug.cgi?id=40633
You could use const auto *, because type is spelled in same statement.