mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 07:45:00 +01:00
catch identifiers ending or starting with _ when checking operator spacing
This commit is contained in:
parent
af1288ed62
commit
d0aefb28b9
1 changed files with 1 additions and 1 deletions
|
|
@ -209,7 +209,7 @@ class CStyleChecker:
|
||||||
if check_re.search (line):
|
if check_re.search (line):
|
||||||
self.error (msg)
|
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
|
# 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_]>[&\*]", line):
|
||||||
self.error ("missing space around operator")
|
self.error ("missing space around operator")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue