diff options
author | Chenbo Feng <fengc@google.com> | 2018-11-20 17:37:00 -0800 |
---|---|---|
committer | Chenbo Feng <fengc@google.com> | 2018-11-21 12:11:55 -0800 |
commit | 249e2f869e111a21749da7edcb8351b7119a6356 (patch) | |
tree | 959c10b50ae890f760b9686813888b871eaeeafc /.clang-format | |
parent | 79a4da2d1ed7ce4b4a95514fb2f416503baf7d22 (diff) | |
download | bpf-249e2f869e111a21749da7edcb8351b7119a6356.tar.gz |
Skip the bpf native tests on old devices
For older devices that doesn't have bpf support, skip the bpf native
tests so we don't get false alarms. Fixed some compiler warning and
added the clang-format check.
Test: ./libnetdbpf_test/libnetdbpf_test
Bug: 119526856
Change-Id: Icb73a8ee9b9dff9a0da28b96578e1245f1f3724f
Diffstat (limited to '.clang-format')
-rw-r--r-- | .clang-format | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..a74b62a --- /dev/null +++ b/.clang-format @@ -0,0 +1,16 @@ +# https://clang.llvm.org/docs/ClangFormatStyleOptions.html +# Please keep this file in sync with system/core/.clang-format-4 +# +BasedOnStyle: Google +AccessModifierOffset: -2 +AllowShortFunctionsOnASingleLine: Inline +BreakBeforeTernaryOperators: true +ColumnLimit: 100 +CommentPragmas: NOLINT:.* +DerivePointerAlignment: false +IndentWidth: 4 +ContinuationIndentWidth: 8 +PointerAlignment: Left +SpaceAfterCStyleCast: true +TabWidth: 4 +UseTab: Never |