[clang-tidy] Use a more specific regex

llvm-svn: 323765
This commit is contained in:
Alexander Kornienko 2018-01-30 14:55:39 +00:00
parent 594f443b06
commit 4170f04576

View File

@ -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