[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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



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



Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: