diff options
author | Steven Moreland <smoreland@google.com> | 2017-05-02 16:41:28 -0700 |
---|---|---|
committer | Steven Moreland <smoreland@google.com> | 2017-05-02 16:47:47 -0700 |
commit | 8557ba11afb675221dd1ca6f54fbc425cd093490 (patch) | |
tree | 4e3a1baa7067da022997e736d6a93bd5b5539cdf /.clang-format | |
parent | 5bc5653e318b6155b9b5f7d17716dbc71dc44947 (diff) | |
download | platform_system_libhidl-8557ba11afb675221dd1ca6f54fbc425cd093490.tar.gz platform_system_libhidl-8557ba11afb675221dd1ca6f54fbc425cd093490.tar.bz2 platform_system_libhidl-8557ba11afb675221dd1ca6f54fbc425cd093490.zip |
Add .clang-format to hidl-gen.
This is the same clang format used in hardware/interfaces.
Test: attempt upload for change, see warning
Change-Id: I945e07d69d574eb23a81833937e50cfd174e9b37
Diffstat (limited to '.clang-format')
-rw-r--r-- | .clang-format | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/.clang-format b/.clang-format new file mode 100644 index 00000000..9b3f9d99 --- /dev/null +++ b/.clang-format @@ -0,0 +1,24 @@ +# +# Copyright (C) 2017 The Android Open Source Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +BasedOnStyle: Google +CommentPragmas: NOLINT:.* +DerivePointerAlignment: false +AllowShortFunctionsOnASingleLine: Inline +ColumnLimit: 100 +TabWidth: 4 +UseTab: Never +IndentWidth: 4 |