Page MenuHomePhabricator

Make format string linter understand basic template parameter syntax
ClosedPublic

Authored by PiRK on Jan 11 2022, 14:57.

Details

Summary

While working on D10815, I got a false positive error from arc lint

Lint: String formatting function arguments mismatch
strprintf( "%s (%d)", std::wstring_convert<std::codecvt_utf8_utf16<wchar_t>, wchar_t>() .to_bytes(buf), err)
Expected 2 argument(s) after format string but found 3 argument(s)

This is a backport of core#13939

Test Plan

run arc lint on D10815 and make sure it does not produce a false positive error