blob: 4423c6ebd611784e4277bd801aefb5ca39dd2d32 [file] [log] [blame]
# Copyright 2017 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Defines the Chromium style for automatic reformatting.
# https://clang.llvm.org/docs/ClangFormatStyleOptions.html
BasedOnStyle: Chromium
# Please keep all directives after this one sorted alphabetically.
# C++ settings.
---
Language: Cpp
# This is permitted by the Google and Chromium style guides.
AllowAllParametersOfDeclarationOnNextLine: true
# JavaScript settings.
---
Language: JavaScript
# A few tweaks where the guides permit.
AlignOperands: true
AllowShortFunctionsOnASingleLine: Inline
BinPackArguments: false
MaxEmptyLinesToKeep: 1