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

indentation fails on static classes

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • Qt Creator 3.1.0-beta
    • Qt Creator 2.8.1
    • C/C++/Obj-C++ Support
    • None
    • Ubuntu 12.04 LTS
    • 36dccb42faf256756d94b4ad797bfb40bb449f07

    Description

      When a class is declared as static, QtCreator fails to correctly indent when using ctrl-i. Here's an example directly coming from QtCreator (NOTE: I have not changed any spaces here, this is literally how QtCreator indents the code)

      static class: public CF_3
      {
      public:
      double operator()(double x, double y, double z) const

      { return 2.0*SQR(sin(M_PI*x))*sin(2*M_PI*y)*sin(2*M_PI*z); }

      } vx_vortex;

      Attachments

        1. screenshot.png
          47 kB
          Mohammad Mirzadeh
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            erikv Erik Verbruggen
            mirzadeh Mohammad Mirzadeh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes