Add clang-format (#1086)

Co-authored-by: mwilsnd <mwilsnd@gmail.com>
This commit is contained in:
Bart Louwers
2023-05-01 16:57:37 +02:00
committed by GitHub
parent 403a12bd1b
commit 71f6da2722
1018 changed files with 27876 additions and 25862 deletions

View File

@@ -4,11 +4,11 @@ namespace mbgl {
// Note: this only works for the BMP
GlyphRange getGlyphRange(GlyphID glyph) {
unsigned start = (glyph/256) * 256;
unsigned start = (glyph / 256) * 256;
unsigned end = (start + 255);
if (start > 65280) start = 65280;
if (end > 65535) end = 65535;
return { start, end };
return {start, end};
}
} // namespace mbgl