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

Malformed definition upon usage of "Add definition in file.cpp" with east const

    XMLWordPrintable

Details

    • Linux/Wayland, Windows
    • 4dc40b414 (15.0)

    Description

      Unsure what components to assign so feel free to make suggestions. I did my best to check for duplicates but could find none, apologies if I missed one.

      I can reproduce the issue by being a clang-format enforced east-conster by setting "QualifierAlignment: Right" in your .clang-format and then using "Add Definition in file.cpp"

      Generation of the definition goes wrong at this point, yielding:

      Setting QualifierAlignment to Left will yield the correct definition syntax.

      Attachments

        1. east_const_bug.zip
          4 kB
        2. qtcreator_8KihAQPrOW.png
          qtcreator_8KihAQPrOW.png
          7 kB
        3. qtcreator_QIyPxe0nZI.mp4
          77 kB
        4. qtcreator_qvJN4mr86g.png
          qtcreator_qvJN4mr86g.png
          11 kB
        5. Screenshot_20240821_125207.png
          Screenshot_20240821_125207.png
          104 kB
        6. Screenshot_20240821_125207-1.png
          Screenshot_20240821_125207-1.png
          104 kB
        For Gerrit Dashboard: QTCREATORBUG-31004
        # Subject Branch Project Status CR V

        Activity

          People

            kandeler Christian Kandeler
            johnythecarrot Tuur Martens
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes