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

indentation fails on static classes

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: Qt Creator 2.8.1
    • Fix Version/s: Qt Creator 3.1.0-beta
    • Component/s: C/C++/Obj-C++ Support
    • Labels:
      None
    • Environment:
      Ubuntu 12.04 LTS
    • Commits:
      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

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

          Activity

            People

            Assignee:
            erikv Erik Verbruggen
            Reporter:
            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