Details

      Description

      It's a proposal, not a bug.

      The main reason to use clang-format: it increases productivity. It will be easy to write code and more importantly to read a well-formatted code afterwards.

      clang-format is available on win and *nix.

      It has a nice integration with popular editors (e.g. https://github.com/llvm-mirror/clang/blob/master/tools/clang-format/clang-format.el, http://llvm.org/builds/)

      It allows to easily enforce some coding style.

      It's easy to format whole code base once (producing a huge patch though) and it's possible to add a pre-commit hook to invoke clang-format.

      Introductory video:
      https://www.youtube.com/watch?v=s7JmdCfI__c

      Official documentation:
      http://clang.llvm.org/docs/ClangFormat.html
      http://clang.llvm.org/docs/ClangFormatStyleOptions.html

      /sql config could look like this:

      BreakBeforeBraces: Allman
      SpaceBeforeAssignmentOperators: false
      

      /storage/innobase config could look like this:

      UseTab: Always
      TabWidth: 8
      IndentWidth: 8
      

        Attachments

          Activity

            People

            • Assignee:
              svoj Sergey Vojtovich
              Reporter:
              kevg Eugene Kosov
            • Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: