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

Clang code model diagnostic config not preserved

    XMLWordPrintable

Details

    • Linux/X11
    • 9dafc323b5a8a3234caed740863944f733683680 (qt-creator/qt-creator/4.12)

    Description

      Clang code model diagnostic config not preserved across QtCreator restart. Steps to reproduce:

      1. Start QtCreator, open Options -> C++ -> Code Model tab.
      2. Click in Diagnostic Configuration name ("Checks for questionable constructs").
      3. Click Copy... and enter a name for the new config.
      4. In Clang Warnings, enter some compiler flags. For example, add -Wno-unused-parameter.
      5. Click Ok, Apply, Ok to close Options. Wait for the code model to apply the new options.
      6. Close QtCreator and start again.
      7. Open Options -> C++ -> Code Model tab and look at Diagnostic Configuration. It reads "Checks for questionable constructs".
      8. Click on the configuration name. In the opened dialog there is no config that was created before restart.

      Note that this is a regression since 4.11.1, which does preserve diagnostic configs across restart.

      Attachments

        Issue Links

          Activity

            People

              kandeler Christian Kandeler
              lastique Andrey Semashev
              Votes:
              4 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: