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

clangformat parameters initialization

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • Qt Creator 4.12.0
    • Qt Creator 4.9.0, Qt Creator 4.10.0, Qt Creator 4.11.0
    • C/C++/Obj-C++ Support
    • None
    • LLVM/Clang 10.0.0git
      Qt 5.14 built with Clang 10.0.0git
    • Linux/X11
    • 44023c8f43fd8daf8b7be305ea6d99b8b56fa551

    Description

      in file

      src/plugins/clangformat/clangformatutils.cpp

      there are issues with parameter assignments. The following parameters:

       

      60: style.AllowShortBlocksOnASingleLine = false;
      75: style.BraceWrapping.AfterControlStatement = false;
      

      are assigned improperly. The issue crashed the build on clang/llvm from version 10.0.

       

      The possible workaround now is to comment these lines to leave parameters with default values. Unfortunately now I have no time to investigate the another possible workarounds.

       

      Attachments

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

        Activity

          People

            bubke Marco Bubke
            twdragon Andrei Vukolov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes