[cfe-dev] Help required to use clang analizer

Arnab Kumar Biswas via cfe-dev cfe-dev at lists.llvm.org
Sun Mar 3 22:33:00 PST 2019


Hi,
I am trying to use clang analyzer using the below command.

clang -cc1 -analyze -analyzer-checker=alpha.core test.c

I am getting the following error.

test.c:1:10: fatal error: 'sys/stat.h' file not found
#include <sys/stat.h>
         ^~~~~~~~~~~~
1 error generated.

If I use the command,
clang test.c
there is no error.

Please help me to solve the error.

Arnab

________________________________

Important: This email is confidential and may be privileged. If you are not the intended recipient, please delete it and notify us immediately; you should not copy or use it for any purpose, nor disclose its contents to any other person. Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20190304/f659a91f/attachment.html>


More information about the cfe-dev mailing list