blob: 843e50e62a538cea093665f84f47cd4361b45235 [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 OS style for automatic reformatting.
# http://clang.llvm.org/docs/ClangFormatStyleOptions.html
# Please keep all directives after this one sorted alphabetically.
BasedOnStyle: Chromium
# This defaults to 'Auto'. Explicitly set it so behavior is consistent.
Standard: c++20
# Always end files with a newline.
InsertNewlineAtEOF: true
# 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