skia2/modules/skparagraph
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
..
bench [infra] Add SkParagraph (harfbuzz, ICU) to Canvaskit Bazel build. 2021-11-30 21:01:06 +00:00
gm Prepare to reenable unreachable-code warnings. 2022-02-04 21:45:39 +00:00
include Updating the API description for Flutter 2022-02-01 15:36:41 +00:00
samples Fixing some getRectsForRange issues 2022-01-06 18:53:23 +00:00
src ParagraphBuilder::Reset 2022-01-25 19:24:40 +00:00
tests Update REPORTER_ASSERT/ERRORF to check format strings. 2022-02-10 16:37:05 +00:00
utils [infra] Add SkParagraph (harfbuzz, ICU) to Canvaskit Bazel build. 2021-11-30 21:01:06 +00:00
BUILD.bazel [infra] Add SkParagraph (harfbuzz, ICU) to Canvaskit Bazel build. 2021-11-30 21:01:06 +00:00
BUILD.gn Fix compilation with "skia_enable_skparagraph = false" 2021-08-31 18:50:20 +00:00
skparagraph.gni Reland "Removing ICU dependencies from skparagraph BUILD.gn file" 2020-09-11 18:31:24 +00:00
test.html Yet another workaround Thai \n problem (same as txtlib) 2020-11-06 19:33:39 +00:00