Arch Linux

Please read this before reporting a bug:

Do NOT report bugs when a package is just outdated, or it is in Unsupported. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!

FS#66830 - Qt Creator's clang-format plugin needs patch applied to Clang's libFormat

Attached to Project: Arch Linux
Opened by Ruben Van Boxem (rubenvb) - Friday, 29 May 2020, 16:37 GMT
Last edited by Antonio Rojas (arojas) - Friday, 29 May 2020, 20:27 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


Qt Creator ships with Clang-format support.
They require it to have a patch as detailed in the readme (search for "clang-format"):
Basically, it's a patch for Clang's libFormat to accept a flag for keeping line breaks in certain scenario's that Qt Creator developers deem necessary:
The LLVM code review of the patch isn't very positive though in the sense that this will probably never make it upstream in this form:

Besides applying this patch to the clang package proper (which probably goes against Arch Linux policies), there is the option to build libFormat (is it possible to only build this single library? Hopefully statically?) with that patch which can then be linked into the clang-format plugin and packages alongside Qt Creator.
I'm not sure how easy this is given Qt Creator's build system (I'm guessing it will just be a matter of building+installing the patched libFormat and pointing the linker to it before the system's version.

Additional info:
* qtcreator-4.12.1-1
* clang-10.0.0-3

Steps to reproduce:
1. In Qt Creator, go to Help->About Plugins and enable the clang-format plugin.
2. Restart Qt Creator to be greeted with the message "Plugin initialization failed: Disabling ClangFormat plugin as it has not been built against a modified Clang's libFormat.For more information see the Qt Creator README at
This task depends upon

Closed by  Antonio Rojas (arojas)
Friday, 29 May 2020, 20:27 GMT
Reason for closing:  Duplicate
Additional comments about closing:   FS#43718   FS#43748 
Comment by Antonio Rojas (arojas) - Friday, 29 May 2020, 20:27 GMT
We are not going to ship a modified clang, sorry. This should be sorted out upstream. If you really need this plugin you should use the binary version of qtcreator.