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

        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