summaryrefslogtreecommitdiff
path: root/tools/cstyle.py
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2015-05-12 11:38:55 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2015-05-12 11:38:55 -0400
commitf716595fa5dda9868c4d1001b60353eb64655847 (patch)
treea8d90e8c574c58da39ff48fd16bf16b6efb05cc9 /tools/cstyle.py
parentd0aefb28b99cb8e977a9f1d59f5df04106eb352f (diff)
fix C++ template/operator test
Diffstat (limited to 'tools/cstyle.py')
-rwxr-xr-xtools/cstyle.py2
1 files changed, 1 insertions, 1 deletions
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 <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