diff options
author | Anton Yartsev <anton.yartsev@gmail.com> | 2013-05-02 00:52:46 +0000 |
---|---|---|
committer | Anton Yartsev <anton.yartsev@gmail.com> | 2013-05-02 00:52:46 +0000 |
commit | ceb791ccd25b7395bdd9a6d01c30740ad42c09a0 (patch) | |
tree | 160a059abce3a55de4f6c2e44ea010b304d77e2f /tools/scan-build/c++-analyzer | |
parent | e2b1246a24e8babf2f58c93713fba16b8edb8e2d (diff) |
[analyzer] scan-build for Windows
The patch allows Windows users to launch scan-build without any additional preparations in the same way as it described in http://clang-analyzer.llvm.org/scan-build.html. The only thing that should be done to make scan-build work from an arbitrary location is to add scan-build folder to the PATH environment variable.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@180900 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/scan-build/c++-analyzer')
l--------- | tools/scan-build/c++-analyzer | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tools/scan-build/c++-analyzer b/tools/scan-build/c++-analyzer index ca10bf547d..dda5db9c7d 120000 --- a/tools/scan-build/c++-analyzer +++ b/tools/scan-build/c++-analyzer @@ -1 +1,8 @@ -ccc-analyzer
\ No newline at end of file +#!/usr/bin/env perl + +use Cwd qw/ abs_path /; +use File::Basename qw/ dirname /; +# Add scan-build dir to the list of places where perl looks for modules. +use lib dirname(abs_path($0)); + +do 'ccc-analyzer'; |