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

Beautifier: File position calculated is not consistent with Clang-Format

    XMLWordPrintable

Details

    • Linux/X11
    • b6b6482c72748b42f2ca0993826d3ff859dc64eb (qt-creator/qt-creator/4.13) efa9d258a267f42234bfc30293f2b8eae702166e (qt-creator/qt-creator/master)

    Description

      How to reproduce:

      1. Open source file cf.cc;
      2. Select the last line and call ToolsBeautifierClangFormatFormat at Cursor;
      3. The last line is not formatted.

      Attachments

        1. cf.cc
          0.1 kB
        2. beautifier-config.png
          beautifier-config.png
          75 kB
        3. .clang-format
          3 kB
        For Gerrit Dashboard: QTCREATORBUG-21812
        # Subject Branch Project Status CR V

        Activity

          People

            lykurg Lorenz Haas
            wasphin xiaofeng
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes