Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
Qt Creator 4.9.1
-
None
Description
When LLVM-Clang version 9 is used to compile Qt Creator there is a problem with ClangFormat plugin: line 63 of /src/plugins/clangformat/clangformatutils.cpp:
style.AllowShortIfStatementsOnASingleLine = false;
produces "uncompatible type assignation" error.
Now the correct workaround is to replace that line to the following:
style.AllowShortIfStatementsOnASingleLine = clang::format::FormatStyle::SIS_Always;
Attachments
Issue Links
- duplicates
-
QTCREATORBUG-23038 FTBFS: error: cannot convert "bool" to "clang::format::FormatStyle::ShortIfStyle" in assignment
- Closed