summaryrefslogtreecommitdiff
path: root/.clang-format
blob: 4fdfdbe461ccedeaaf176391c0bbb0f74943be45 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Copyright 2017 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

# Defines the Chromium OS style for automatic reformatting.
# http://clang.llvm.org/docs/ClangFormatStyleOptions.html
# Please keep all directives after this one sorted alphabetically.
BasedOnStyle: Chromium

# This is permitted by the Google and Chromium style guides, and existing code
# uses it heavily.
AllowAllParametersOfDeclarationOnNextLine: true

# NOLINT(reason) is used heavily by existing code.
CommentPragmas: 'NOLINT:.*'

# cpplint.py does smarter #include sorting than clang-format (the former ignores
# case and changes '-' to '_').
SortIncludes: false