From 039c4c9bbb377c950a6d2cabfda8ff0ec59e7442 Mon Sep 17 00:00:00 2001 From: Sim Sun Date: Mon, 31 Aug 2020 11:30:12 -0700 Subject: [PATCH] Add a .clang-format file to give us local control over Chromium style. Based on the. `clang-format` from chromium project https://chromium.googlesource.com/chromium/src/+/HEAD/.clang-format Change-Id: I9df4f5c917521b02b0cdc911f15c12102758f7e1 Reviewed-on: https://chromium-review.googlesource.com/c/breakpad/breakpad/+/2384071 Reviewed-by: Mark Mentovai Reviewed-by: Mike Frysinger --- .clang-format | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 .clang-format diff --git a/.clang-format b/.clang-format new file mode 100644 index 00000000..d175ab75 --- /dev/null +++ b/.clang-format @@ -0,0 +1,9 @@ +# Defines the Chromium style for automatic reformatting. +# https://clang.llvm.org/docs/ClangFormatStyleOptions.html +BasedOnStyle: Chromium + +# This defaults to 'Auto'. Explicitly set it for a while, so that +# 'vector >' in existing files gets formatted to +# 'vector>'. ('Auto' means that clang-format will only use +# 'int>>' if the file already contains at least one such instance.) +Standard: Cpp11