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

clang-format build fails with clang 19

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Not Evaluated
    • None
    • Qt Creator 14.0.2
    • None
    • 711c6d850 (14.0)

    Description

      clang 19 hit debian unstable, and this is what i get:

      .../qtcreator/src/plugins/clangformat/clangformatutils.cpp: In function ‘clang::format::FormatStyle ClangFormat::calculateQ
      tcStyle()’:
      
      .../qtcreator/src/plugins/clangformat/clangformatutils.cpp:44:75: warning: missing initializer for member ‘clang::format::F
      ormatStyle::AlignConsecutiveStyle::PadOperators’ [-Wmissing-field-initializers]
      
         44 |     style.AlignConsecutiveAssignments = {false, false, false, false, false};
      
            |                                                                           ^
      
      .../qtcreator/src/plugins/clangformat/clangformatutils.cpp:45:76: warning: missing initializer for member ‘clang::format::F
      ormatStyle::AlignConsecutiveStyle::PadOperators’ [-Wmissing-field-initializers]
      
         45 |     style.AlignConsecutiveDeclarations = {false, false, false, false, false};
      
            |                                                                            ^
      
      .../qtcreator/src/plugins/clangformat/clangformatutils.cpp:120:11: error: ‘struct clang::format::FormatStyle’ has no member
       named ‘KeepEmptyLinesAtTheStartOfBlocks’
      
        120 |     style.KeepEmptyLinesAtTheStartOfBlocks = false;
      
            |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       

      if clang 19 is out of scope for qtc 14, then the build system should reject it. but i expect this to be a minor fix, so such extreme measures seem unnecessary.

      Attachments

        Issue Links

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

          Activity

            People

              artem.sokolovskii Artem Sokolovskii (Inactive)
              buddenha Oswald Buddenhagen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes