-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-format
24 lines (22 loc) · 942 Bytes
/
.clang-format
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Copyright (c) 2021 The WhiteBox Authors. All rights reserved.
# Use of this source code is governed by a 3-Clause BSD license that can be
# found in the LICENSE file.
# Defines the Chromium style for automatic reformatting.
# https://clang.llvm.org/docs/ClangFormatStyleOptions.html
BasedOnStyle: Google
# This defaults to 'Auto'. Explicitly set it for a while, so that
# 'vector<vector<int> >' in existing files gets formatted to
# 'vector<vector<int>>'. ('Auto' means that clang-format will only use
# 'int>>' if the file already contains at least one such instance.)
Standard: Cpp11
# Make sure code like:
# IPC_BEGIN_MESSAGE_MAP()
# IPC_MESSAGE_HANDLER(WidgetHostViewHost_Update, OnUpdate)
# IPC_END_MESSAGE_MAP()
# gets correctly indented.
MacroBlockBegin: "^\
WB_MSVC_BEGIN_WARNING_OVERRIDE_SCOPE|\
WB_GCC_BEGIN_WARNING_OVERRIDE_SCOPE$"
MacroBlockEnd: "^\
WB_MSVC_END_WARNING_OVERRIDE_SCOPE|\
WB_GCC_END_WARNING_OVERRIDE_SCOPE$"