summaryrefslogtreecommitdiff
path: root/tools/cstyle.py
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2015-05-12 11:25:36 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2015-05-12 11:25:36 -0400
commitd0aefb28b99cb8e977a9f1d59f5df04106eb352f (patch)
tree28836fa55557bd14eca74692389e939d0af1b22f /tools/cstyle.py
parentaf1288ed62e1af97b7aa32951cfea0f203818137 (diff)
catch identifiers ending or starting with _ when checking operator spacing
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 314d7746ae..d5d7391dff 100755
--- a/tools/cstyle.py
+++ b/tools/cstyle.py
@@ -209,7 +209,7 @@ class CStyleChecker:
if check_re.search (line):
self.error (msg)
- if re.search ("[a-zA-Z0-9][<>!=^/&\|]{1,2}[a-zA-Z0-9]", line):
+ 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):
self.error ("missing space around operator")