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

Class Wizard: include guard naming when using namespaces

    XMLWordPrintable

Details

    • 0c60770fabdc825949e3f1c3db1b5b7b17039bc0

    Description

      It would be nice if the class wizard would create an inculde guard which contains class name and namespace when creating a class with a namespace via the class wizard.

      Now the class wizard creates for the class "MyNamespace::MyClass" the include guard:
      #ifndef MYCLASS_H
      #define MYCLASS_H

      to avoid duplicate include guards it would be nice if the include guard would be
      #ifndef MYNAMESPACEMYCLASS_H
      #define MYNAMESPACEMYCLASS_H

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            jkobus Jarek Kobus
            bachera2 Andreas Bacher (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes