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

Allow customization of indent inside namespace { ... }

XMLWordPrintable

    • 27578a6c2c78138d6259f88660867e50ebaac604 779fafcbfe6f92dd1288664fae512f69bc12418b

      QtCreator want's to indent all the content inside namespace XXX

      { ... }

      :

      namespace {
          class X {
          };
      }
      

      This leads to excessive indenting, especially if you have nested namespaces. Inside QtCreator, we (almost) never indent the content of a namespace. A quick google search for "indentation namespace coding style" also indicates that a lot of coding styles (e.g. for webkit) also advise to not indent the content of a namespace.

        For Gerrit Dashboard: QTCREATORBUG-567
        # Subject Branch Project Status CR V

            ckamm Christian Kamm
            kkohne Kai Köhne
            Votes:
            5 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes