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

C++ dependency scan fails if #include line starts with UTF-8 BOM marker

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: 1.10.1, 1.11.1, 1.12.2
    • Fix Version/s: 1.12.0
    • Component/s: Dependency Tracking
    • Labels:
      None
    • Environment:
      KDE Neon 16.04 
    • Commits:
      24b624b09388e4ea27de38e058b3d3d59e67bb30

      Description

      We have a .cpp file that starts with a UTF8 BOM marker, like so:

      <U+FEFF>#include "myheader.h"
      #include <QDebug>
      
      ...
      

      Qbs is not able to scan the first line, so all the dependencies on myheader.h etc are lost.

      The second line is parsed correctly.

        Attachments

        1. fix_QBS-1347.patch
          1 kB
          Ola Røer Thorsen
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            kandeler Christian Kandeler
            Reporter:
            olathorsen Ola Røer Thorsen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes