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

Using a custom compiler in a kit breaks static code analysis

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • Qt Creator 4.10.0
    • C/C++/Obj-C++ Support
    • None
    • Windows 7 x64, Microsoft Visual Studio 2015 (or any other)
    • Windows

    Description

      1. Setup a sample project with an external build system (I use SCons). The static analysis works correctly.

      2. Define a custom compiler. I'd like it to be similar to Microsoft Visual Studio 2015 (MSVC), but with "Custom Parser Settings..." (I want to use a custom compiler option because I need to customize the parser settings). Note that I put the header files of the standard library in the custom compiler settings. Am I doing something wrong?

      3. Specify it as the C++ compiler (Options->Kits->Manual->Desktop(default)->Compiler C++)

      4. The static code analysis no longer detects the constructs from the standard library.

      The issue is also reported on https://stackoverflow.com/q/56690303/4600536

      Attachments

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

        Activity

          People

            kosjar Nikolai Kosjar
            igorf Igor
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes