add check_format.sh

    it looks good, so i copied it from polly (llvm project)
    commit: 215871
    path: polly/utils/check_format.sh
    licence: University of Illinois/NCSA Open Source License (BSD-like License)