skia2/experimental
John Stiles 2122f40c4b Update REPORTER_ASSERT/ERRORF to check format strings.
Previously, REPORTER_ASSERT/ERRORF relied on a helper function named
`reporter_string` which papered over zero-argument and one-argument
messages (where one-argument messages are assumed to ignore printf
formatting rules entirely, and just forward the message as-is).

Replacing this helper with a direct call to `SkStringPrintf` allows
the compiler to check format arguments for correctness, but sacrifices
the one-argument special case. In practice the one-argument special
case was very rarely used, so it's not a significant sacrifice,
and this did uncover several real errors in assertion format strings
(including some cases where the wrong number of arguments was passed).

Change-Id: I4378c43b16fd8fdbf4c78d849a9f2f0a254f7abc
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/506617
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
2022-02-10 16:37:05 +00:00
..
bazel_test [bazel] Sketching out HelloWorld sk_app using GL 2022-01-11 13:06:19 +00:00
c-api-example Fix C API example, ensure the C API example is built in CI 2020-12-15 16:38:42 +00:00
docs runs some sample animations side by side in canvas and svg 2015-11-16 13:36:08 -08:00
documentation Update references to master branch 2021-05-21 15:18:16 +00:00
ffmpeg [canvaskit] Add skottie to Bazel build 2022-02-04 19:18:27 +00:00
graphite [graphite] Fix two bugs wrt uniform uploading 2022-02-10 14:01:41 +00:00
lowp-basic add constrained_add 2021-11-01 17:30:16 +00:00
minimal_ios_mtl_skia_app Update iOS test apps to require C++17. 2022-01-31 23:17:15 +00:00
pvg add pvg experiment 2018-11-02 15:35:21 +00:00
skottiekit [canvaskit] Disable dynamic execution 2022-02-01 13:15:22 +00:00
skrive Reland "Add format-specifier warnings to SkDebugf." 2021-06-25 17:57:43 +00:00
sktext Update REPORTER_ASSERT/ERRORF to check format strings. 2022-02-10 16:37:05 +00:00
sorttoy Add SK_PRINTF_LIKE to existing variadic print functions. 2022-02-07 14:55:39 +00:00
tools Add sleep option to web_to_(skp|mskp) shell scripts. 2020-06-19 19:06:29 +00:00
tskit [infra] Deduplicate serve.py 2021-10-12 11:42:50 +00:00
wasm-hello-world Set up basic hello world sk_app 2022-01-06 20:29:35 +00:00
wasm-skp-debugger [canvaskit] Disable dynamic execution 2022-02-01 13:15:22 +00:00
webgpu-bazel [infra] Add initial Bazel rules and files 2021-11-09 12:32:25 +00:00
xps_to_png experimental/xps_to_png: pass in DPI as program argument 2016-11-14 15:39:09 +00:00