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

clang format(?) removes empty lines above lines with angle brackets

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • None
    • Qt Creator 4.9.0-beta1
    • C/C++/Obj-C++ Support
    • None
    • debian testing amd64, kf5, QtC 4.9b1 from the site

    Description

      Hi!

      Tried 4.9b1 and noticed that empty lines disappears when type angle bracket (open or close one). For example,

      struct S{{{}}
        template<class T> void f();

        template<| // when type '<' empty line above disappears
      };

      It is not related to templates, for example:

      bool a = 1 > 2;

      bool b = 2 <| // after typing '<' the empty lines above disappears

      Attachments

        Issue Links

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

          Activity

            People

              yvvan Ivan Donchevskii
              gbug Gena Bug
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes