diff options
author | Philip Withnall <philip.withnall@collabora.co.uk> | 2014-11-20 09:59:43 +0000 |
---|---|---|
committer | Philip Withnall <philip.withnall@collabora.co.uk> | 2014-11-20 09:59:43 +0000 |
commit | 55fdb7a37fbe8d7b3bee96fb41bfef1975993b9a (patch) | |
tree | 0687ddb959acfcff2f2d56803b3104a236d4ef45 | |
parent | 915a744037d93abfcaab8b35e98e281cf88bb132 (diff) |
scripts: Include plugin arguments when run with -analyze
This allows:
tartan -cc1 -analyze …
as a pass-through for:
clang -cc1 -analyze … -add-plugin tartan …
-rwxr-xr-x | scripts/tartan | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/tartan b/scripts/tartan index 8e4e0b5..cfdef3d 100755 --- a/scripts/tartan +++ b/scripts/tartan @@ -103,6 +103,9 @@ if containsElement "--analyze" "${argv[@]}"; then elif containsElement "-fsyntax-only" "${argv[@]}"; then include_plugin_flags=1 escape_plugin_flags=0 +elif containsElement "-analyze" "${argv[@]}"; then + include_plugin_flags=1 + escape_plugin_flags=0 elif containsElement "--version" "${argv[@]}"; then # This is passed to us during ./configure (e.g. scan-build ./configure) # so take the opportunity to output Tartan version information. |