commit 3453b2b616f23155a2fc23480e13bc066374087b parent 58802c121339102cdca5fe1766dc5f652136d368 Author: Chris Bracken <chris@bracken.jp> Date: Fri, 8 May 2020 17:18:35 -0700 Add .clang-format that defaults to Google style Diffstat:
A | .clang-format | | | 10 | ++++++++++ |
1 file changed, 10 insertions(+), 0 deletions(-)
diff --git a/.clang-format b/.clang-format @@ -0,0 +1,10 @@ +# Defines the Chromium style for automatic reformatting. +# http://clang.llvm.org/docs/ClangFormatStyleOptions.html +BasedOnStyle: Google + +# This defaults to 'Auto'. Explicitly set it for a while, so that +# 'vector<vector<int> >' in existing files gets formatted to +# 'vector<vector<int>>'. ('Auto' means that clang-format will only use +# 'int>>' if the file already contains at least one such instance.) +Standard: Cpp11 +SortIncludes: true