skia2/include/sksl
Kevin Lubick 68d6ff9222 [includes] Reduce IWYU exports from SkTypes.h
SkTypes.h was found exporting <stddef.h> and <stdint.h>.
Thus if a Skia file includes SkTypes.h, it did not need
to include either of those files to use things like
size_t or uint8_t respectively. [1]

This also resulted in strange IWYU warnings like:
warning: size_t is defined in "include/core/SkTypes.h", which isn't directly #included.

Thus, this CL removes those additional exports, and as a result,
adds many more includes of <cstddef> and <cstdint>.

The second change this CL is to not use the default IWYU
mappings which are hard-coded into IWYU [2]. These defaults
are valid, but make suggestions for the C version of
headers and not the C++ ones (i.e. <stddef.h> over <cstddef>).

To make these recommendations align better with our preferred
style (the C++ ones), we use IWYU with --no_default_mappings
and then have to expand our existing mappings to better deal
with how IWYU would resolve some of these headers.

[1] https://codereview.chromium.org/1207893002/#msg49
[2] 4c0f396159/iwyu_include_picker.cc (L1221-L1234)

Change-Id: Iafebe190f8f3e86f252147b9f538c182bcc34af4
Bug: skia:13052
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/555516
Auto-Submit: Kevin Lubick <kjlubick@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Reviewed-by: Herb Derby <herb@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
2022-07-06 14:52:55 +00:00
..
BUILD.bazel [bazel] Add "skia_internal" target that exposes private API for tests/tools. 2022-06-02 11:23:50 +00:00
DSL.h Reland "Remove DSLWrapper helper class." 2022-05-19 14:49:56 +00:00
DSLBlock.h Remove C++14 workaround code. 2022-05-18 13:53:00 +00:00
DSLCase.h Eliminate DSLPossibleStatement. 2022-05-31 15:35:12 +00:00
DSLCore.h Eliminate DSLPossibleStatement. 2022-05-31 15:35:12 +00:00
DSLExpression.h Reland "Eliminate DSLPossibleExpression." 2022-05-31 14:32:16 +00:00
DSLFunction.h Reland "Remove DSLWrapper helper class." 2022-05-19 14:49:56 +00:00
DSLLayout.h Removed Position::Capture 2022-04-08 17:26:24 +00:00
DSLModifiers.h Removed Position::Capture 2022-04-08 17:26:24 +00:00
DSLStatement.h Eliminate DSLPossibleStatement. 2022-05-31 15:35:12 +00:00
DSLSymbols.h Removed Position::Capture 2022-04-08 17:26:24 +00:00
DSLType.h [includes] Reduce IWYU exports from SkTypes.h 2022-07-06 14:52:55 +00:00
DSLVar.h [includes] Reduce IWYU exports from SkTypes.h 2022-07-06 14:52:55 +00:00
OWNERS Add Ethan and John to OWNERS for include/sksl/. 2022-04-26 23:38:58 +00:00
SkSLDebugTrace.h Add SkRuntimeEffect::MakeTraced API for SkShader debugging. 2021-12-07 22:34:00 +00:00
SkSLErrorReporter.h Remove pending-error support from the ErrorReporter. 2022-05-31 15:46:10 +00:00
SkSLOperator.h Added an SkSL Operator enum 2022-03-31 13:20:57 +00:00
SkSLPosition.h [includes] Reduce IWYU exports from SkTypes.h 2022-07-06 14:52:55 +00:00
SkSLVersion.h Reland "Add SkCapabilities object" 2022-05-17 13:15:06 +00:00