Enable -Wextra-semi in release builds that don't set dcheck_always_on=true.
Most of these are macros that expand to nothing when dchecks are off, but to a declaration when dchecks are on. They are meant to be used to declare member variables. Since clang-format gets very confused on class member declarations that don't end in a semicolon and since we require clang-formatting, we need some way to still permit a semicolon after these macros even with dchecks off. To that end, add a dummy static_assert() at the end of these macros. Alternatively, we could surround all uses of these macros with explicit DCHECK_IS_ON() checks. Depends on https://skia-review.googlesource.com/c/skia/+/196421 TBR=dalecurtis Bug: 926235,936856 Change-Id: I66ab08f383b2f27dc6a7617f67f33fa66ddfa00c Reviewed-on: https://chromium-review.googlesource.com/c/1495041 Commit-Queue: Nico Weber <thakis@chromium.org> Reviewed-by:Gabriel Charette <gab@chromium.org> Cr-Commit-Position: refs/heads/master@{#636838}
Showing
Please register or sign in to comment