diff --git a/clang-tools-extra/clang-tidy/add_new_check.py b/clang-tools-extra/clang-tidy/add_new_check.py --- a/clang-tools-extra/clang-tidy/add_new_check.py +++ b/clang-tools-extra/clang-tidy/add_new_check.py @@ -185,7 +185,7 @@ check_added = True f.write(check_decl) else: - match = re.search('registerCheck<(.*)>', line) + match = re.search('registerCheck<((.*::).*)>', line) if match and match.group(1) > check_name_camel: check_added = True f.write(check_decl)