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

'Unnecessary semicolon after block' warning => wrong indentation next line

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4: Low
    • Resolution: Unresolved
    • Affects Version/s: Qt Creator 1.3.83 (2.0.0-beta)
    • Fix Version/s: None
    • Component/s: Editors
    • Labels:
      None
    • Environment:
      Debian + Official beta of Qt Creator
    • Commits:
      17e0886c69a3d2c317f8e146d9a7b02f3cfc0498

      Description

      Using CUnit, using macros and appending a semicolon results in Qt Creator warning "Unnecessary semicolon after block". But removing the semicolon results in Qt Creator to indent the subsequent line of code as if the previous line was not completed.

      Attached is an example of this with default indentation. All asserts should clearly be in one column.

        Attachments

        1. c.cpp
          0.1 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            • Assignee:
              kosjar Nikolai Kosjar
              Reporter:
              adamm Adam Majer
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Gerrit Reviews

                There are no open Gerrit changes