diff options
| author | Alexander Kornienko <alexfh@google.com> | 2018-01-30 14:55:39 +0000 |
|---|---|---|
| committer | Alexander Kornienko <alexfh@google.com> | 2018-01-30 14:55:39 +0000 |
| commit | 4170f04576dabd55768a7eacd06e8eeb0282a7dd (patch) | |
| tree | 113b24b7245ad4df85806ce9a8d8f36dd414d516 /clang-tools-extra/clang-tidy | |
| parent | 594f443b06728e6236e2a7db157f5b300e386d23 (diff) | |
| download | bcm5719-llvm-4170f04576dabd55768a7eacd06e8eeb0282a7dd.tar.gz bcm5719-llvm-4170f04576dabd55768a7eacd06e8eeb0282a7dd.zip | |
[clang-tidy] Use a more specific regex
llvm-svn: 323765
Diffstat (limited to 'clang-tools-extra/clang-tidy')
| -rwxr-xr-x | clang-tools-extra/clang-tidy/rename_check.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang-tools-extra/clang-tidy/rename_check.py b/clang-tools-extra/clang-tidy/rename_check.py index 9a8a93c5638..49798f7f555 100755 --- a/clang-tools-extra/clang-tidy/rename_check.py +++ b/clang-tools-extra/clang-tidy/rename_check.py @@ -213,7 +213,7 @@ def main(): # Remove the check from the old module. cmake_lists = os.path.join(old_module_path, 'CMakeLists.txt') - check_found = deleteMatchingLines(cmake_lists, check_name_camel) + check_found = deleteMatchingLines(cmake_lists, '\\b' + check_name_camel) if not check_found: print("Check name '%s' not found in %s. Exiting." % (check_name_camel, cmake_lists)) @@ -223,7 +223,7 @@ def main(): lambda p: p.lower() == old_module.lower() + 'tidymodule.cpp', os.listdir(old_module_path))[0] deleteMatchingLines(os.path.join(old_module_path, modulecpp), - check_name_camel + '|' + args.old_check_name) + '\\b' + check_name_camel + '|\\b' + args.old_check_name) for filename in getListOfFiles(clang_tidy_path): originalName = filename |

