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

Wrong automatic indentation in CMakeLists.txt

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: Not Evaluated
    • Resolution: Unresolved
    • Affects Version/s: Qt Creator 4.4.0-beta1
    • Fix Version/s: None
    • Component/s: Editors
    • Labels:
      None

      Description

      The following snippet uses the default indentation of CMakeLists.txt

      add_library(${PROJECT_NAME} src/state.cpp
                                  src/container.cpp)
                               next_bad_indented_line()
      

      But the following indents properly:

      add_library(${PROJECT_NAME} src/foo.cpp )
      next_well_indented_line()
      

      This is using the automatic indentation suggestion provided when hitting Enter at the end of a line.

      Happens on 4.4 beta but not on 4.2.1

        Attachments

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

          Activity

            People

            • Assignee:
              davschul David Schulz
              Reporter:
              victorl Victor Lopez
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Gerrit Reviews

                There are no open Gerrit changes