Match macros with spaces between # and define

Signed-off-by: Yuto Takano <yuto.takano@arm.com>
This commit is contained in:
Yuto Takano 2021-08-06 16:44:08 +01:00
parent d24e037dd1
commit 5c1acf2735

View File

@ -250,7 +250,7 @@ class NameCheck(object):
Returns a List of Match objects for the found macros.
"""
MACRO_REGEX = r"#define (?P<macro>\w+)"
MACRO_REGEX = r"# *define +(?P<macro>\w+)"
NON_MACROS = (
"asm", "inline", "EMIT", "_CRT_SECURE_NO_DEPRECATE", "MULADDC_"
)