#!/bin/sh
# $Id: with-cppcheck,v 1.4 2021/03/14 15:34:31 tom Exp $
# source this script to use "cppcheck", a static analyzer for C, as lint
if [ -z "$LINT" ]
then
	case "${CC-cc}" in
	*clang*)
		;;
	*)
		if ( cppcheck --version ) >/dev/null 2>/dev/null
		then
			LINT=cppcheck-lint
			export LINT
			LINT_OPTS=
			export LINT_OPTS
		fi
		;;
	esac
fi
