xref: /aosp_15_r20/external/clang/tools/scan-build-py/bin/scan-build (revision 67e74705e28f6214e480b399dd47ea732279e315)
1*67e74705SXin Li#!/usr/bin/env python
2*67e74705SXin Li# -*- coding: utf-8 -*-
3*67e74705SXin Li#                     The LLVM Compiler Infrastructure
4*67e74705SXin Li#
5*67e74705SXin Li# This file is distributed under the University of Illinois Open Source
6*67e74705SXin Li# License. See LICENSE.TXT for details.
7*67e74705SXin Li
8*67e74705SXin Liimport multiprocessing
9*67e74705SXin Limultiprocessing.freeze_support()
10*67e74705SXin Li
11*67e74705SXin Liimport sys
12*67e74705SXin Liimport os.path
13*67e74705SXin Lithis_dir = os.path.dirname(os.path.realpath(__file__))
14*67e74705SXin Lisys.path.append(os.path.dirname(this_dir))
15*67e74705SXin Li
16*67e74705SXin Lifrom libscanbuild.analyze import analyze_build_main
17*67e74705SXin Lisys.exit(analyze_build_main(this_dir, True))
18