export COMPILE_DB=$(/bin/pwd);
grep file compile_commands.json |
awk '{ print $2; }' |
sed 's/\"//g' |
while read FILE; do
  (cd $(dirname ${FILE});
   clang-check -analyze -analyzer-config -extra-arg -analyzer-output=text -extra-arg -analyzer-checker=alpha.cplusplus -p ${COMPILE_DB} $(basename ${FILE})
  );
done

