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

AlignConsecutiveMacros breaks formatting

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • Qt Creator 4.10.0-rc1
    • C/C++/Obj-C++ Support
    • None
    • Linux/X11

    Description

      With the attached data, and editing options set enabling AlignConsecutiveMacros breaks the automatic while-typing formatting, meaning it reverts to some unexpect indentation.

       

      To reproduce open main.cpp, remove the semi-colon at the end of line 9, re-add it and the indentation is broken.  Comment out the AlignConsecutiveMacros in the .clang-format, perform the same steps and formatting is fine.

       

      Video shows removal (breaks formatting) and save (restores formatting).

      Attachments

        1. alignconsectutivebug.tar.gz
          0.8 kB
          bbennetts
        2. Screenshot from 2019-08-30 14-03-59.png
          47 kB
          bbennetts
        3. Screenshot from 2019-08-30 14-04-07.png
          33 kB
          bbennetts
        4. Screenshot from 2019-08-30 14-04-14.png
          37 kB
          bbennetts
        5. Screenshot from 2019-08-30 14-04-19.png
          46 kB
          bbennetts
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kosjar Nikolai Kosjar
            bbennetts bbennetts
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes