Bug#891999: clang-tidy-7: Missing depends on libclang-common-7-dev?
Chris Lamb
lamby at debian.org
Sat Mar 3 22:06:33 UTC 2018
Package: clang-tidy-7
Version: 1:7~svn323616-1
Severity: important
Hi,
I might be missing something but I needed to install libclang-common-7-dev
to get any kind of meaningful output:
$ clang-tidy-7 disorderfs.cpp
[…]
Error while processing /home/lamby/git/debian/reproducible/disorderfs/disorderfs.cpp.
/usr/include/stdlib.h:31:10: error: 'stddef.h' file not found [clang-diagnostic-error]
#include <stddef.h>
^
I was expecting this to work at least with standard headers / build-
essential installed.
$ sudo apt install libclang-common-7-dev
[…]
… then it worked for me (obviously, references to "warnings" or "errors"
are about my code).
$ clang-tidy-7 disorderfs.cpp
[…]
1 warning and 20 errors generated.
Error while processing /home/lamby/git/debian/reproducible/disorderfs/disorderfs.cpp.
error: too many errors emitted, stopping now [clang-diagnostic-error]
/home/lamby/git/debian/reproducible/disorderfs/disorderfs.cpp:231:4: error: no matching function for call to 'fuse_main_compat2' [clang-diagnostic-error]
fuse_main(outargs->argc, outargs->argv, &disorderfs_fuse_operations, nullptr);
^
So, should we be depending/recommending/suggesting some kind of header
package here?
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` lamby at debian.org / chris-lamb.co.uk
`-
More information about the Pkg-llvm-team
mailing list