diff options
author | Dmitri Gribenko <gribozavr@gmail.com> | 2019-09-27 10:54:28 +0000 |
---|---|---|
committer | Dmitri Gribenko <gribozavr@gmail.com> | 2019-09-27 10:54:28 +0000 |
commit | 69f9f20fc5292921024910211efc529ed76e7336 (patch) | |
tree | d89a3b80463354258d797a19e1d710b9603501c0 /clang-tools-extra/test/clang-tidy/check_clang_tidy.py | |
parent | 405c3a6be1718e191efdc7dd65b38c9d81bd987b (diff) | |
download | bcm5719-llvm-69f9f20fc5292921024910211efc529ed76e7336.tar.gz bcm5719-llvm-69f9f20fc5292921024910211efc529ed76e7336.zip |
Moved -fblocks from an individual test to check_clang_tidy.py
This way, all tests will benefit from it and will not have to worry
about setting up language options properly.
llvm-svn: 373066
Diffstat (limited to 'clang-tools-extra/test/clang-tidy/check_clang_tidy.py')
-rwxr-xr-x | clang-tools-extra/test/clang-tidy/check_clang_tidy.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang-tools-extra/test/clang-tidy/check_clang_tidy.py b/clang-tools-extra/test/clang-tidy/check_clang_tidy.py index aa6304baef8..368b674d2d3 100755 --- a/clang-tools-extra/test/clang-tidy/check_clang_tidy.py +++ b/clang-tools-extra/test/clang-tidy/check_clang_tidy.py @@ -69,7 +69,8 @@ def run_test_once(args, extra_args): clang_tidy_extra_args.append('-format-style=none') if extension in ['.m', '.mm']: - clang_extra_args = ['-fobjc-abi-version=2', '-fobjc-arc'] + clang_extra_args + clang_extra_args = ['-fobjc-abi-version=2', '-fobjc-arc', '-fblocks'] + \ + clang_extra_args if extension in ['.cpp', '.hpp', '.mm']: clang_extra_args.append('-std=' + std) |