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