Uploaded image for project: 'Qbs ("Cubes")'
  1. Qbs ("Cubes")
  2. QBS-1032

cpp.cxxLanguageVersion: "c++11" does not set __cplusplus correctly in the code model

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Duplicate
    • Affects Version/s: 1.6.0
    • Fix Version/s: None
    • Component/s: Qt Creator Integration
    • Labels:
      None
    • Environment:
      OS: Windows 7
      Compiler: TDM-GCC-64

      Description

      Using

      cpp.cxxLanguageVersion: "c++11"

      to enable c++11 support allows for correct compilation, but not for correct highlighting/code completion/etc.

      However, using

      cpp.cxxFlags: [ "-std=c++0x", ]

      instead causes correct compilation (in most cases) AND correct highlighting/code completion/etc., as this has reportedly been fixed due to bug report QBS-481.

      I attached a QBS project that should reproduce the problem. As stated under "Environment" I am using a Kit with a TDM-GCC-64 compiler and a gdb64 debugger (in case that matters).

        Attachments

        1. bugreport.qbs
          0.2 kB
        2. main.cpp
          0.3 kB

          Issue Links

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

            Activity

              People

              Assignee:
              kandeler Christian Kandeler
              Reporter:
              raphael_merkle raphael_merkle
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes