HomePhabricator

Make format string linter understand basic template parameter syntax

Description

Make format string linter understand basic template parameter syntax

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

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D10816

Details

Provenance
practicalswift <practicalswift@users.noreply.github.com>Authored on Aug 10 2018, 15:19
PiRKCommitted on Jan 11 2022, 16:39
PiRKPushed on Jan 11 2022, 16:39
Reviewer
Restricted Project
Differential Revision
D10816: Make format string linter understand basic template parameter syntax
Parents
rABC91273a0907ce: [Cashtab] Format XEC on send form
Branches
Unknown
Tags
Unknown