On 2019-09-09 8:39 p.m., Lisandro Damián Nicanor Pérez Meyer wrote: > The error code comes from > src/plugins/clangformat/clangformatplugin.cpp::157. Looking at the > code it means that KEEP_LINE_BREAKS_FOR_NON_EMPTY_LINES_BACKPORTED is > not defined, but I do not know where that should be defined. >
Looks like this functionality has not even been approved for unreleased upstream clang https://reviews.llvm.org/D53072 So I think the problem is that QtCreator authors only chose to make the ClangFormat plugin functional with a custom-patched clang version and it's hardcoded to fail in all other cases. - Adam