Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-21082

C++ code indentation and formatting based on LibFormat

    XMLWordPrintable

Details

    Description

      LibFormat is a library which is used by clang-format and contains most of its functionality.

      Since our built-in code indentation/formatting lacks the support for modern C++ it can be a good idea to use formatting provided by clang.

      Advantages:

      • better modern C++ support
      • more formatting settings than currently
      • many projects already have configuration file for it (.clang-format)

      Problems found so far:

      • clang-format does not expect unfinished statements
      • tricking clang-format to indent unfinished statements is quite complicated and is not reliable
      • ideally requires some upstream changes to avoid tricks from QtC side

      Attachments

        There are no Sub-Tasks for this issue.
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            yvvan Ivan Donchevskii
            yvvan Ivan Donchevskii
            Petref Saraci Petref Saraci (Inactive)
            Alessandro Portale Alessandro Portale
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes