1*5a923131SAndroid Build Coastguard Worker# 2*5a923131SAndroid Build Coastguard Worker# Copyright (C) 2016 The Android Open Source Project 3*5a923131SAndroid Build Coastguard Worker# 4*5a923131SAndroid Build Coastguard Worker# Licensed under the Apache License, Version 2.0 (the "License"); 5*5a923131SAndroid Build Coastguard Worker# you may not use this file except in compliance with the License. 6*5a923131SAndroid Build Coastguard Worker# You may obtain a copy of the License at 7*5a923131SAndroid Build Coastguard Worker# 8*5a923131SAndroid Build Coastguard Worker# http://www.apache.org/licenses/LICENSE-2.0 9*5a923131SAndroid Build Coastguard Worker# 10*5a923131SAndroid Build Coastguard Worker# Unless required by applicable law or agreed to in writing, software 11*5a923131SAndroid Build Coastguard Worker# distributed under the License is distributed on an "AS IS" BASIS, 12*5a923131SAndroid Build Coastguard Worker# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13*5a923131SAndroid Build Coastguard Worker# See the License for the specific language governing permissions and 14*5a923131SAndroid Build Coastguard Worker# limitations under the License. 15*5a923131SAndroid Build Coastguard Worker# 16*5a923131SAndroid Build Coastguard Worker# 17*5a923131SAndroid Build Coastguard Worker# This is the .clang-format file used by all Brillo projects, conforming to the 18*5a923131SAndroid Build Coastguard Worker# style guide defined by Brillo. To use this file create a *relative* symlink in 19*5a923131SAndroid Build Coastguard Worker# your project pointing to this file, as this repository is expected to be 20*5a923131SAndroid Build Coastguard Worker# present in all manifests. 21*5a923131SAndroid Build Coastguard Worker# 22*5a923131SAndroid Build Coastguard Worker# See go/brillo-c++-style for details about the style guide. 23*5a923131SAndroid Build Coastguard Worker# 24*5a923131SAndroid Build Coastguard Worker 25*5a923131SAndroid Build Coastguard Worker# WARN: We do not symlink this file to the original file because their location 26*5a923131SAndroid Build Coastguard Worker# are different in AOSP and CrOS. Keep in sync with the original file if 27*5a923131SAndroid Build Coastguard Worker# possible. 28*5a923131SAndroid Build Coastguard Worker 29*5a923131SAndroid Build Coastguard WorkerBasedOnStyle: Google 30*5a923131SAndroid Build Coastguard WorkerAllowShortFunctionsOnASingleLine: Inline 31*5a923131SAndroid Build Coastguard WorkerAllowShortIfStatementsOnASingleLine: false 32*5a923131SAndroid Build Coastguard WorkerAllowShortLoopsOnASingleLine: false 33*5a923131SAndroid Build Coastguard WorkerBinPackArguments: false 34*5a923131SAndroid Build Coastguard WorkerBinPackParameters: false 35*5a923131SAndroid Build Coastguard WorkerCommentPragmas: NOLINT:.* 36*5a923131SAndroid Build Coastguard WorkerDerivePointerAlignment: false 37*5a923131SAndroid Build Coastguard WorkerIncludeBlocks: Preserve 38*5a923131SAndroid Build Coastguard WorkerPointerAlignment: Left 39*5a923131SAndroid Build Coastguard WorkerTabWidth: 2 40*5a923131SAndroid Build Coastguard Worker 41*5a923131SAndroid Build Coastguard Worker# cpplint.py does smarter #include sorting than clang-format (the former ignores 42*5a923131SAndroid Build Coastguard Worker# case and changes '-' to '_'). 43*5a923131SAndroid Build Coastguard WorkerSortIncludes: false 44