From cdac43d2eaf40f686a6f2519f4183a6ededbd087 Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Mon, 10 Jun 2019 22:58:17 +0530 Subject: clang: add '-analyze-header' option Some of the recent analysis of the clang scan report shows that some macros were not considered while analyzing. Specially the LIST_INIT(), causing at least 30+ false positives. This is an effort to see if this option has anything to do with that. Change-Id: I589050eea6088bfe7adffdc7c23a2228f8c71631 Signed-off-by: Amar Tumballi --- build-gluster-org/scripts/clang.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'build-gluster-org/scripts') diff --git a/build-gluster-org/scripts/clang.sh b/build-gluster-org/scripts/clang.sh index 5574bff..5def953 100644 --- a/build-gluster-org/scripts/clang.sh +++ b/build-gluster-org/scripts/clang.sh @@ -6,7 +6,7 @@ $MOCK --install rpcgen libtirpc-devel langpacks-en glibc-langpack-en automake au $MOCK --copyin $WORKSPACE /src $MOCK --chroot "cd /src && ./autogen.sh" $MOCK --chroot "cd /src && ./configure CC=clang --enable-gnfs --enable-debug" -$MOCK --chroot "cd /src && scan-build -o /src/clangScanBuildReports -disable-checker deadcode.DeadStores -v -v --use-cc clang --use-analyzer=/usr/bin/clang make" +$MOCK --chroot "cd /src && scan-build -o /src/clangScanBuildReports -disable-checker deadcode.DeadStores -v -v -analyze-headers --use-cc clang --use-analyzer=/usr/bin/clang make" $MOCK --copyout /src/clangScanBuildReports $WORKSPACE/clangScanBuildReports $MOCK --clean sudo chown -R jenkins:jenkins clangScanBuildReports -- cgit