xref: /llvm-project/clang/tools/scan-build-py/libexec/analyze-cc (revision 4c1e487c413810655757ea19d0cf3d4f5c40898e)
1*4c1e487cSAnders Waldenborg#!/usr/bin/env python3
2d9cf8291SDaniel Hwang# -*- coding: utf-8 -*-
3d9cf8291SDaniel Hwang# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4d9cf8291SDaniel Hwang# See https://llvm.org/LICENSE.txt for license information.
5d9cf8291SDaniel Hwang# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6d9cf8291SDaniel Hwang
7d9cf8291SDaniel Hwangimport sys
8d9cf8291SDaniel Hwangimport os.path
9d9cf8291SDaniel Hwangthis_dir = os.path.dirname(os.path.realpath(__file__))
10d9cf8291SDaniel Hwangsys.path.append(os.path.join(os.path.dirname(this_dir), 'lib'))
11d9cf8291SDaniel Hwang
12d9cf8291SDaniel Hwangfrom libscanbuild.analyze import analyze_compiler_wrapper
13d9cf8291SDaniel Hwangsys.exit(analyze_compiler_wrapper())
14