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

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • None
    • 1.6.0
    • Qt Creator Integration
    • None
    • OS: Windows 7
      Compiler: TDM-GCC-64

      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).

        1. bugreport.qbs
          0.2 kB
          raphael_merkle
        2. main.cpp
          0.3 kB
          raphael_merkle
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes