From 231c2b3dfecd38313dc77f1b4738995748e6f966 Mon Sep 17 00:00:00 2001 From: superjom Date: Mon, 20 Nov 2017 14:41:56 +0800 Subject: [PATCH] add clang-format config --- visualdl/.clang-format | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 visualdl/.clang-format diff --git a/visualdl/.clang-format b/visualdl/.clang-format new file mode 100644 index 00000000..9ba433b1 --- /dev/null +++ b/visualdl/.clang-format @@ -0,0 +1,28 @@ +# This file is used by clang-format to autoformat paddle source code +# +# The clang-format is part of llvm toolchain. +# It need to install llvm and clang to format source code style. +# +# The basic usage is, +# clang-format -i -style=file PATH/TO/SOURCE/CODE +# +# The -style=file implicit use ".clang-format" file located in one of +# parent directory. +# The -i means inplace change. +# +# The document of clang-format is +# http://clang.llvm.org/docs/ClangFormat.html +# http://clang.llvm.org/docs/ClangFormatStyleOptions.html +--- +Language: Cpp +BasedOnStyle: Google +IndentWidth: 2 +TabWidth: 2 +ContinuationIndentWidth: 4 +AccessModifierOffset: -2 # The private/protected/public has no indent in class +Standard: Cpp11 +AllowAllParametersOfDeclarationOnNextLine: true +BinPackParameters: false +BinPackArguments: false +... + -- GitLab