From 5b82c130d98b6374cb45d722005528d8861a479d Mon Sep 17 00:00:00 2001 From: Gurchetan Singh Date: Fri, 4 Oct 2024 13:36:38 -0700 Subject: [PATCH] gfxstream: add clang-format Version of clang from the gfxstream repo. Acked-by: Yonggang Luo Part-of: --- src/gfxstream/.clang-format | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/gfxstream/.clang-format diff --git a/src/gfxstream/.clang-format b/src/gfxstream/.clang-format new file mode 100644 index 00000000000..dd78747a990 --- /dev/null +++ b/src/gfxstream/.clang-format @@ -0,0 +1,15 @@ +# Copyright © 2024 Google +# SPDX-License-Identifier: MIT + +BasedOnStyle: Google +IndentWidth: 4 +ColumnLimit: 100 +IncludeCategories: + - Regex: '^(<(gtest|gmock))' + Priority: -1 +FixNamespaceComments: true +PointerAlignment: Left +DerivePointerAlignment: false + +# Ensure proper formatting of macros such as GOLDFISH_VK_LIST_DISPATCHABLE_HANDLE_TYPES +StatementMacros: ["f"]