Bug#952718: qtcreator: Clang code model fail to find stddef.h if libclang-common-8-dev package is not installed

Alexis Murzeau amubtdx at gmail.com
Sat Mar 14 14:59:54 GMT 2020


Le 14/03/2020 à 12:54, Sylvestre Ledru a écrit :
> Le 14/03/2020 à 12:45, Alexis Murzeau a écrit :
>>
>> I still think there should be a Depends (not Recommends) on
>> libclang-common-8-dev instead somewhere. (that is, directly from
>> qtcreator or indirectly)
> What is wrong with this solution?
> 
> Sorry if I missed a potential answer for this question.
> 
> S

QtCreator's code model uses libclang-8.
If libclang-common-8-dev is not installed, QtCreator's code model won't
find some includes like <stddef.h> and highlight many false positive
errors in its editor.
This makes QtCreator's code model not fully working if
libclang-common-8-dev is not installed (that's why I would expect a
Depends instead of Recommends).

Installing the full clang-8 toolchain is overkill to me as only
libclang-common-8-dev is really needed to make the code model work fine,
and libclang-common-8-dev is rather small compared to the full clang
compiler.

I think the current clang Recommends is for the static analyzer given
this upstream commit bundling clang.exe for Windows:
https://github.com/qt-creator/qt-creator/commit/d02e80b87bc423f0ccb696c1b10378a74758a432
"Deploy clang binary for use by static analyzer"


-- 
Alexis Murzeau
PGP: B7E6 0EBB 9293 7B06 BDBC  2787 E7BD 1904 F480 937F



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-llvm-team/attachments/20200314/7236ed7a/attachment.sig>


More information about the Pkg-llvm-team mailing list