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

The <Format> file name conflicts with the MSVC STL header <format>

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: Qt Creator 4.15.0-rc1
    • Fix Version/s: None
    • Component/s: Building Qt Creator
    • Labels:
      None
    • Environment:
      VS2019 + windows server 2016
    • Platform/s:
      Windows

      Description

      Hi All,

      The MSVC team adds an implementation of with https://github.com/microsoft/STL/pull/1821 recently which added header <format>, and "F:\gitP\qt-creator\qt-creator\src\libs\3rdparty\syntax-highlighting\autogenerated\src\lib\Format" conflicts with MSVC STL header <format>.

      I deleted this file and modified the only file that uses it in local.

      src/plugins/texteditor/highlighter.cpp
      #include <utils/qtcassert.h>
      #include <DefinitionDownloader>
      -#include <Format>
      +#include <format.h>
      #include <FoldingRegion>
      #include <Repository>
      #include <SyntaxHighlighter>

        Attachments

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

          Activity

            People

            Assignee:
            davschul David Schulz
            Reporter:
            quellazhang Quella Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes