fix C++ template/operator test
authorPaul Davis <paul@linuxaudiosystems.com>
Tue, 12 May 2015 15:38:55 +0000 (11:38 -0400)
committerPaul Davis <paul@linuxaudiosystems.com>
Tue, 12 May 2015 15:38:55 +0000 (11:38 -0400)
tools/cstyle.py

index d5d7391dffbac3da27caffedfc8e9c9c83e51cef..c6d5e7712137e1bf98882a89754ec14bcfb13b66 100755 (executable)
@@ -211,7 +211,7 @@ class CStyleChecker:
 
                if re.search ("[a-zA-Z0-9_][<>!=^/&\|]{1,2}[a-zA-Z0-9_]", line):
                         # ignore #include <foo.h> 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