diff options
author | Laszlo Nagy <rizsotto.mailinglist@gmail.com> | 2016-01-12 22:38:41 +0000 |
---|---|---|
committer | Laszlo Nagy <rizsotto.mailinglist@gmail.com> | 2016-01-12 22:38:41 +0000 |
commit | bc68758dd5b3a4e15c23572e9b1ece7abbb2455b (patch) | |
tree | b1477b7fe2d62e9053769134bd25c7384c04f5c3 /clang/tools/scan-build-py/bin | |
parent | 7bee31689049dd825ff390fa30fe3645f2d87877 (diff) | |
download | bcm5719-llvm-bc68758dd5b3a4e15c23572e9b1ece7abbb2455b.tar.gz bcm5719-llvm-bc68758dd5b3a4e15c23572e9b1ece7abbb2455b.zip |
D9600: Add scan-build python implementation
llvm-svn: 257533
Diffstat (limited to 'clang/tools/scan-build-py/bin')
-rw-r--r-- | clang/tools/scan-build-py/bin/analyze-build | 17 | ||||
-rw-r--r-- | clang/tools/scan-build-py/bin/analyze-c++ | 14 | ||||
-rw-r--r-- | clang/tools/scan-build-py/bin/analyze-cc | 14 | ||||
-rw-r--r-- | clang/tools/scan-build-py/bin/intercept-build | 17 | ||||
-rw-r--r-- | clang/tools/scan-build-py/bin/intercept-c++ | 14 | ||||
-rw-r--r-- | clang/tools/scan-build-py/bin/intercept-cc | 14 | ||||
-rw-r--r-- | clang/tools/scan-build-py/bin/scan-build | 17 |
7 files changed, 107 insertions, 0 deletions
diff --git a/clang/tools/scan-build-py/bin/analyze-build b/clang/tools/scan-build-py/bin/analyze-build new file mode 100644 index 00000000000..2cc9676fd54 --- /dev/null +++ b/clang/tools/scan-build-py/bin/analyze-build @@ -0,0 +1,17 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- +# The LLVM Compiler Infrastructure +# +# This file is distributed under the University of Illinois Open Source +# License. See LICENSE.TXT for details. + +import multiprocessing +multiprocessing.freeze_support() + +import sys +import os.path +this_dir = os.path.dirname(os.path.realpath(__file__)) +sys.path.append(os.path.dirname(this_dir)) + +from libscanbuild.analyze import analyze_build_main +sys.exit(analyze_build_main(this_dir, False)) diff --git a/clang/tools/scan-build-py/bin/analyze-c++ b/clang/tools/scan-build-py/bin/analyze-c++ new file mode 100644 index 00000000000..15186d89aa3 --- /dev/null +++ b/clang/tools/scan-build-py/bin/analyze-c++ @@ -0,0 +1,14 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- +# The LLVM Compiler Infrastructure +# +# This file is distributed under the University of Illinois Open Source +# License. See LICENSE.TXT for details. + +import sys +import os.path +this_dir = os.path.dirname(os.path.realpath(__file__)) +sys.path.append(os.path.dirname(this_dir)) + +from libscanbuild.analyze import analyze_build_wrapper +sys.exit(analyze_build_wrapper(True)) diff --git a/clang/tools/scan-build-py/bin/analyze-cc b/clang/tools/scan-build-py/bin/analyze-cc new file mode 100644 index 00000000000..55519fb7b11 --- /dev/null +++ b/clang/tools/scan-build-py/bin/analyze-cc @@ -0,0 +1,14 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- +# The LLVM Compiler Infrastructure +# +# This file is distributed under the University of Illinois Open Source +# License. See LICENSE.TXT for details. + +import sys +import os.path +this_dir = os.path.dirname(os.path.realpath(__file__)) +sys.path.append(os.path.dirname(this_dir)) + +from libscanbuild.analyze import analyze_build_wrapper +sys.exit(analyze_build_wrapper(False)) diff --git a/clang/tools/scan-build-py/bin/intercept-build b/clang/tools/scan-build-py/bin/intercept-build new file mode 100644 index 00000000000..164f2e68be9 --- /dev/null +++ b/clang/tools/scan-build-py/bin/intercept-build @@ -0,0 +1,17 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- +# The LLVM Compiler Infrastructure +# +# This file is distributed under the University of Illinois Open Source +# License. See LICENSE.TXT for details. + +import multiprocessing +multiprocessing.freeze_support() + +import sys +import os.path +this_dir = os.path.dirname(os.path.realpath(__file__)) +sys.path.append(os.path.dirname(this_dir)) + +from libscanbuild.intercept import intercept_build_main +sys.exit(intercept_build_main(this_dir)) diff --git a/clang/tools/scan-build-py/bin/intercept-c++ b/clang/tools/scan-build-py/bin/intercept-c++ new file mode 100644 index 00000000000..fc422287f84 --- /dev/null +++ b/clang/tools/scan-build-py/bin/intercept-c++ @@ -0,0 +1,14 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- +# The LLVM Compiler Infrastructure +# +# This file is distributed under the University of Illinois Open Source +# License. See LICENSE.TXT for details. + +import sys +import os.path +this_dir = os.path.dirname(os.path.realpath(__file__)) +sys.path.append(os.path.dirname(this_dir)) + +from libscanbuild.intercept import intercept_build_wrapper +sys.exit(intercept_build_wrapper(True)) diff --git a/clang/tools/scan-build-py/bin/intercept-cc b/clang/tools/scan-build-py/bin/intercept-cc new file mode 100644 index 00000000000..69d57aaae10 --- /dev/null +++ b/clang/tools/scan-build-py/bin/intercept-cc @@ -0,0 +1,14 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- +# The LLVM Compiler Infrastructure +# +# This file is distributed under the University of Illinois Open Source +# License. See LICENSE.TXT for details. + +import sys +import os.path +this_dir = os.path.dirname(os.path.realpath(__file__)) +sys.path.append(os.path.dirname(this_dir)) + +from libscanbuild.intercept import intercept_build_wrapper +sys.exit(intercept_build_wrapper(False)) diff --git a/clang/tools/scan-build-py/bin/scan-build b/clang/tools/scan-build-py/bin/scan-build new file mode 100644 index 00000000000..601fe89fc30 --- /dev/null +++ b/clang/tools/scan-build-py/bin/scan-build @@ -0,0 +1,17 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- +# The LLVM Compiler Infrastructure +# +# This file is distributed under the University of Illinois Open Source +# License. See LICENSE.TXT for details. + +import multiprocessing +multiprocessing.freeze_support() + +import sys +import os.path +this_dir = os.path.dirname(os.path.realpath(__file__)) +sys.path.append(os.path.dirname(this_dir)) + +from libscanbuild.analyze import analyze_build_main +sys.exit(analyze_build_main(this_dir, True)) |