Minor relaxation to auto-gen regex

Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
This commit is contained in:
Dave Rodgman
2024-03-18 12:32:49 +00:00
parent d2f82ca837
commit d9f386c93c
+1 -1
View File
@@ -52,7 +52,7 @@ def list_generated_files() -> FrozenSet[str]:
return frozenset(word for s in checks for word in s.split())
# Check for comment string indicating an auto-generated file
AUTOGEN_RE = re.compile(r"Warning[ :-]+This file is (now )?auto[ -]generated",
AUTOGEN_RE = re.compile(r"Warning[ :-]+This file is (now )?auto[ -]?generated",
re.ASCII | re.IGNORECASE)
def is_file_autogenerated(filename):
content = open(filename, encoding="utf-8").read()