summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorworktycho <work.tycho@gmail.com>2015-03-21 20:35:25 +0100
committerworktycho <work.tycho@gmail.com>2015-03-21 20:35:25 +0100
commitd966200a6c09137579ca800c4a8809ce35a410f4 (patch)
tree5706a977caffb6c9b3c6f84734f1bebc44f4ea93
parentChanged pipeline character from >> to | (diff)
downloadcuberite-d966200a6c09137579ca800c4a8809ce35a410f4.tar
cuberite-d966200a6c09137579ca800c4a8809ce35a410f4.tar.gz
cuberite-d966200a6c09137579ca800c4a8809ce35a410f4.tar.bz2
cuberite-d966200a6c09137579ca800c4a8809ce35a410f4.tar.lz
cuberite-d966200a6c09137579ca800c4a8809ce35a410f4.tar.xz
cuberite-d966200a6c09137579ca800c4a8809ce35a410f4.tar.zst
cuberite-d966200a6c09137579ca800c4a8809ce35a410f4.zip
-rw-r--r--src/CheckBasicStyle.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/CheckBasicStyle.lua b/src/CheckBasicStyle.lua
index 16e34e321..19156b537 100644
--- a/src/CheckBasicStyle.lua
+++ b/src/CheckBasicStyle.lua
@@ -101,9 +101,9 @@ local g_ViolationPatterns =
{"&&[^(]+!=", "Add parenthesis around comparison"},
{"!=[^)]+||", "Add parenthesis around comparison"},
{"||[^(]+!=", "Add parenthesis around comparison"},
- {"<[^)>]*&&", "Add parenthesis around comparison"}, -- Must take special care of templates: "template <T> fn(Args && ...)"
+ {"<[^)>]*&&", "Add parenthesis around comparison"}, -- Must take special care of templates: "template <T> fn(Args && ...)"
-- Cannot check a < following a && due to functions of the form x fn(y&& a, z<b> c)
- {"<[^)>]*||", "Add parenthesis around comparison"}, -- Must take special care of templates: "template <T> fn(Args && ...)"
+ {"<[^)>]*||", "Add parenthesis around comparison"}, -- Must take special care of templates: "template <T> fn(Args && ...)"
{"||[^(]+<", "Add parenthesis around comparison"},
-- Cannot check ">" because of "obj->m_Flag &&". Check at least ">=":
{">=[^)]+&&", "Add parenthesis around comparison"},