summaryrefslogtreecommitdiff
path: root/.clang-format
blob: 21a71334a1bceefba1eef96525aff93101fe97ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
---
# SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
# SPDX-FileCopyrightText: 2018 Philip Chimento <philip.chimento@gmail.com>
# Global Options Go Here
IndentWidth: 4
ColumnLimit: 80
---
Language: Cpp
BasedOnStyle: Google
AccessModifierOffset: -3  # to match cpplint
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
CommentPragmas: '^ NOLINT'
DerivePointerAlignment: false
ForEachMacros: []
IncludeBlocks: Preserve
IndentPPDirectives: AfterHash
IndentWidth: 4
MacroBlockBegin: "^JSNATIVE_TEST_FUNC_BEGIN$"
MacroBlockEnd: "^JSNATIVE_TEST_FUNC_END$"
PointerAlignment: Left  # Google style allows both, but clang-format doesn't
SpacesBeforeTrailingComments: 2
---
# We should use eslint --fix instead, but we need to find a way to get that to
# operate on diffs like clang-format does.
Language: JavaScript
DisableFormat: true
SortIncludes: false  # https://bugs.llvm.org/show_bug.cgi?id=27042
...