From 5c1acf2735c103c70251df2d389a152138ae0e8f Mon Sep 17 00:00:00 2001 From: Yuto Takano Date: Fri, 6 Aug 2021 16:44:08 +0100 Subject: [PATCH] Match macros with spaces between # and define Signed-off-by: Yuto Takano --- tests/scripts/check-names.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/scripts/check-names.py b/tests/scripts/check-names.py index 406810b8c..7286cb751 100755 --- a/tests/scripts/check-names.py +++ b/tests/scripts/check-names.py @@ -250,7 +250,7 @@ class NameCheck(object): Returns a List of Match objects for the found macros. """ - MACRO_REGEX = r"#define (?P\w+)" + MACRO_REGEX = r"# *define +(?P\w+)" NON_MACROS = ( "asm", "inline", "EMIT", "_CRT_SECURE_NO_DEPRECATE", "MULADDC_" )