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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2: Important 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

      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

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes