.clang-format 839 B

123456789101112131415161718192021222324252627
  1. # This file is used by clang-format to autoformat paddle source code
  2. #
  3. # The clang-format is part of llvm toolchain.
  4. # It need to install llvm and clang to format source code style.
  5. #
  6. # The basic usage is,
  7. # clang-format -i -style=file PATH/TO/SOURCE/CODE
  8. #
  9. # The -style=file implicit use ".clang-format" file located in one of
  10. # parent directory.
  11. # The -i means inplace change.
  12. #
  13. # The document of clang-format is
  14. # http://clang.llvm.org/docs/ClangFormat.html
  15. # http://clang.llvm.org/docs/ClangFormatStyleOptions.html
  16. ---
  17. Language: Cpp
  18. BasedOnStyle: Google
  19. IndentWidth: 2
  20. TabWidth: 2
  21. ContinuationIndentWidth: 4
  22. AccessModifierOffset: -1 # The private/protected/public has no indent in class
  23. Standard: Cpp11
  24. AllowAllParametersOfDeclarationOnNextLine: true
  25. BinPackParameters: false
  26. BinPackArguments: false
  27. ...