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

"Use diagnostic flags from the build system" flag is not preserved in Diagnostic Configurations

    XMLWordPrintable

Details

    • Linux/Other display system
    • c5ce38f0462b77c492d19dd9ea0901d5d9076a2b (qt-creator/qt-creator/4.12)

    Description

      "Use diagnostic flags from the build system" flag in Diagnostic Configuration is not preserved after QtCreator is restarted.

       Steps to reproduce:

      1. Start QtCreator, open Options -> C++ -> Code Model tab.
      2. Click in Diagnostic Configuration name.
      3. Click Copy "Build-system warnings"... and enter a name for the new config.
      4. In Clang Warnings, make sure that "Use diagnostic flags from the build system" is checked.
      5. Click Ok, Apply, Ok to close Options.
      6. Close QtCreator and start again.
      7. Open Options -> C++ -> Code Model tab and click in Diagnostic Configuration name.
      8. Now if your click on your custom diagnostic configuration, the flag "Use diagnostic flags from the build system" is unsed.

      The same thing is happening in "Analyzer" Menu.

      After investigation, I think the flag is not serialized in the file QtCreator.ini (see attachments). Note that this bug was already there in the Qt Creator 4.11.

      Attachments

        1. Analyzer_menu.png
          Analyzer_menu.png
          21 kB
        2. cpp_menu.png
          cpp_menu.png
          22 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kandeler Christian Kandeler
            joseph_garnier Joseph Garnier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes