mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-24 00:29:25 +00:00
[clang-tidy] Use a more specific regex
llvm-svn: 323765
This commit is contained in:
parent
594f443b06
commit
4170f04576
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user