merge-script f44e39c9d0
Merge bitcoin/bitcoin#31174: tinyformat: Add compile-time checking for literal format strings
fe39acf88ff552bfc4a502c99774375b91824bb1 tinyformat: Add compile-time checking for literal format strings (Ryan Ofsky)
184f34f2d0fa2e56ad594966b2b99ff4cf840d95 util: Support dynamic width & precision in ConstevalFormatString (Ryan Ofsky)

Pull request description:

  Add compile-time checking for literal format strings passed to `strprintf` and `tfm::format` to make sure the right number of format arguments are passed.

  There is still no compile-time checking if non-literal `std::string` or `bilingual_str` format strings are passed, but this is improved in other PRs:

  - [#31061](https://github.com/bitcoin/bitcoin/pull/31061) implements compile-time checking for translated strings
  - [#31072](https://github.com/bitcoin/bitcoin/pull/31072) increases compile-time checking by using literal strings as format strings, instead of `std::string` and `bilingual_str`
  - [#31149](https://github.com/bitcoin/bitcoin/pull/31149) may drop the `std::string`  overload for `strprintf` to [require](https://github.com/bitcoin/bitcoin/pull/31149#issuecomment-2444579999) compile-time checking

ACKs for top commit:
  maflcko:
    re-ACK fe39acf88ff552bfc4a502c99774375b91824bb1 🕐
  l0rinc:
    ACK fe39acf88ff552bfc4a502c99774375b91824bb1
  hodlinator:
    re-ACK fe39acf88ff552bfc4a502c99774375b91824bb1

Tree-SHA512: f1ddef0c96b9468c5ffe31b42dc19f1922583dd14f2e180b618d992c98614c5cc7db9f9cd917ef503f833bbc7dbec78e4489d0035416dce6840837e1d66d87cb
2024-11-14 10:18:44 +00:00
..
2023-03-23 12:55:18 +01:00
2024-06-10 07:54:48 -04:00
2024-08-06 01:38:10 +02:00
2024-08-06 01:38:10 +02:00
2023-12-11 17:42:05 +01:00
2024-01-05 11:22:31 +01:00
2024-03-18 16:01:08 +01:00
2024-01-05 11:22:31 +01:00
2024-06-11 16:28:11 +00:00