Index: clang-tools-extra/trunk/clang-tidy/add_new_check.py =================================================================== --- clang-tools-extra/trunk/clang-tidy/add_new_check.py +++ clang-tools-extra/trunk/clang-tidy/add_new_check.py @@ -217,7 +217,7 @@ 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)