platform: graphics: Add support for comments in json configs
This CL adds support for a limited form of c-style comments in json
configuration files for tools Harvest and Profiles. Block comments,
including multi-line comments, not embedded in code and whole-line or
end-of-line double-blackslash comments are support.
Comments should be useful for instance to document config-file samples
and to personal notes to trace-file URLs.
BUG=None
TEST=Build with emerge and make. Test manually with various inputs.
Change-Id: I4e18a4e698e79132062f42afeea3b1c3d96b1efb
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/graphics/+/2267797
Reviewed-by: John Bates <jbates@chromium.org>
Reviewed-by: Georges Winkenbach <gwink@chromium.org>
Tested-by: Georges Winkenbach <gwink@chromium.org>
Commit-Queue: Georges Winkenbach <gwink@chromium.org>
1 file changed