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

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • Qt Creator 4.15.0-rc1
    • Building Qt Creator
    • None
    • VS2019 + windows server 2016
    • 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

            davschul David Schulz
            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