From f716595fa5dda9868c4d1001b60353eb64655847 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 12 May 2015 11:38:55 -0400 Subject: [PATCH] fix C++ template/operator test --- tools/cstyle.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/cstyle.py b/tools/cstyle.py index d5d7391dff..c6d5e77121 100755 --- a/tools/cstyle.py +++ b/tools/cstyle.py @@ -211,7 +211,7 @@ class CStyleChecker: if re.search ("[a-zA-Z0-9_][<>!=^/&\|]{1,2}[a-zA-Z0-9_]", line): # ignore #include and C++ templates with indirection/pointer/reference operators - if not re.search (".*#include.*[a-zA-Z0-9]/[a-zA-Z]", line) and not re.search ("[a-zA-Z0-9_]>[&\*]", line): + if not re.search (".*#include.*[a-zA-Z0-9]/[a-zA-Z]", line) and not re.search ("[a-zA-Z0-9_]>[&\*]*\s", line): self.error ("missing space around operator") self.last_line_indent = indent