xref: /aosp_15_r20/build/make/tools/brillo-clang-format (revision 9e94795a3d4ef5c1d47486f9a02bb378756cea8a)
1*9e94795aSAndroid Build Coastguard Worker#
2*9e94795aSAndroid Build Coastguard Worker# Copyright (C) 2016 The Android Open Source Project
3*9e94795aSAndroid Build Coastguard Worker#
4*9e94795aSAndroid Build Coastguard Worker# Licensed under the Apache License, Version 2.0 (the "License");
5*9e94795aSAndroid Build Coastguard Worker# you may not use this file except in compliance with the License.
6*9e94795aSAndroid Build Coastguard Worker# You may obtain a copy of the License at
7*9e94795aSAndroid Build Coastguard Worker#
8*9e94795aSAndroid Build Coastguard Worker#      http://www.apache.org/licenses/LICENSE-2.0
9*9e94795aSAndroid Build Coastguard Worker#
10*9e94795aSAndroid Build Coastguard Worker# Unless required by applicable law or agreed to in writing, software
11*9e94795aSAndroid Build Coastguard Worker# distributed under the License is distributed on an "AS IS" BASIS,
12*9e94795aSAndroid Build Coastguard Worker# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13*9e94795aSAndroid Build Coastguard Worker# See the License for the specific language governing permissions and
14*9e94795aSAndroid Build Coastguard Worker# limitations under the License.
15*9e94795aSAndroid Build Coastguard Worker#
16*9e94795aSAndroid Build Coastguard Worker
17*9e94795aSAndroid Build Coastguard Worker### DO NOT COPY THIS FILE TO YOUR PROJECT. ###
18*9e94795aSAndroid Build Coastguard Worker
19*9e94795aSAndroid Build Coastguard Worker#
20*9e94795aSAndroid Build Coastguard Worker# This is the .clang-format file used by all Brillo projects, conforming to the
21*9e94795aSAndroid Build Coastguard Worker# style guide defined by Brillo. To use this file create a *relative* symlink in
22*9e94795aSAndroid Build Coastguard Worker# your project pointing to this file, as this repository is expected to be
23*9e94795aSAndroid Build Coastguard Worker# present in all manifests.
24*9e94795aSAndroid Build Coastguard Worker#
25*9e94795aSAndroid Build Coastguard Worker# See go/brillo-c++-style for details about the style guide.
26*9e94795aSAndroid Build Coastguard Worker#
27*9e94795aSAndroid Build Coastguard Worker
28*9e94795aSAndroid Build Coastguard WorkerBasedOnStyle: Google
29*9e94795aSAndroid Build Coastguard WorkerAllowShortFunctionsOnASingleLine: Inline
30*9e94795aSAndroid Build Coastguard WorkerAllowShortIfStatementsOnASingleLine: false
31*9e94795aSAndroid Build Coastguard WorkerAllowShortLoopsOnASingleLine: false
32*9e94795aSAndroid Build Coastguard WorkerBinPackArguments: false
33*9e94795aSAndroid Build Coastguard WorkerBinPackParameters: false
34*9e94795aSAndroid Build Coastguard WorkerCommentPragmas: NOLINT:.*
35*9e94795aSAndroid Build Coastguard WorkerDerivePointerAlignment: false
36*9e94795aSAndroid Build Coastguard WorkerPointerAlignment: Left
37*9e94795aSAndroid Build Coastguard WorkerTabWidth: 2
38