diff options
| author | Alexander Kornienko <alexfh@google.com> | 2015-10-01 09:23:20 +0000 |
|---|---|---|
| committer | Alexander Kornienko <alexfh@google.com> | 2015-10-01 09:23:20 +0000 |
| commit | eef2c237a52e444f4e5442e70344654f0ca0617f (patch) | |
| tree | cc55052d456ff994e241e60cda58163d164b1c3b | |
| parent | 30c423b1e312b7d1415ac290b7e9c22bc4f84c62 (diff) | |
| download | bcm5719-llvm-eef2c237a52e444f4e5442e70344654f0ca0617f.tar.gz bcm5719-llvm-eef2c237a52e444f4e5442e70344654f0ca0617f.zip | |
[clang-tidy] fix add_new_check.py
Before this check, I would get the following error:
Updating ./misc/CMakeLists.txt...
Creating ./misc/NoReinterpret_castCheck.h...
Creating ./misc/NoReinterpret_castCheck.cpp...
Updating ./misc/MiscTidyModule.cpp...
Creating ../test/clang-tidy/misc-no-reinterpret_cast.cpp...
Creating ../docs/clang-tidy/checks/misc-no-reinterpret_cast.rst...
Traceback (most recent call last):
File "./add_new_check.py", line 271, in <module>
main()
File "./add_new_check.py", line 267, in main
update_checks_list(module_path)
File "./add_new_check.py", line 220, in update_checks_list
os.listdir('docs/clang-tidy/checks')))
OSError: [Errno 2] No such file or directory: 'docs/clang-tidy/checks'
Patch by Matthias Gehre!
Differential revision: http://reviews.llvm.org/D13272
llvm-svn: 248997
| -rwxr-xr-x | clang-tools-extra/clang-tidy/add_new_check.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang-tools-extra/clang-tidy/add_new_check.py b/clang-tools-extra/clang-tidy/add_new_check.py index 205eec332ad..ebee5049aa2 100755 --- a/clang-tools-extra/clang-tidy/add_new_check.py +++ b/clang-tools-extra/clang-tidy/add_new_check.py @@ -217,7 +217,7 @@ def update_checks_list(module_path): checks = map(lambda s: ' ' + s.replace('.rst', '\n'), filter(lambda s: s.endswith('.rst') and s != 'list.rst', - os.listdir('docs/clang-tidy/checks'))) + os.listdir(os.path.join(module_path, '../../docs/clang-tidy/checks')))) checks.sort() print('Updating %s...' % filename) |

