summaryrefslogtreecommitdiffstats
path: root/src/CheckBasicStyle.lua
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xsrc/CheckBasicStyle.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/CheckBasicStyle.lua b/src/CheckBasicStyle.lua
index 133446350..9ff47634d 100755
--- a/src/CheckBasicStyle.lua
+++ b/src/CheckBasicStyle.lua
@@ -178,6 +178,10 @@ local g_ViolationPatterns =
{"^[^\"]*[!@#$%%%^&*() %[%]\t][a-zA-Z0-9]+%&[a-zA-Z0-9]+", "Add space around /"},
{"^[a-zA-Z0-9]+%& [a-zA-Z0-9]+", "Add space before &"},
{"^[^\"]*[!@#$%%%^&*() %[%]\t][a-zA-Z0-9]+%& [a-zA-Z0-9]+", "Add space before &"},
+
+ -- We don't like "Type const *" and "Type const &". Use "const Type *" and "const Type &" instead:
+ {"const %&", "Use 'const Type &' instead of 'Type const &'"},
+ {"const %*", "Use 'const Type *' instead of 'Type const *'"},
}