Added check against "Type const &" and "Type const *".
This commit is contained in:
parent
846d16315a
commit
756d310318
@ -178,6 +178,10 @@ local g_ViolationPatterns =
|
|||||||
{"^[^\"]*[!@#$%%%^&*() %[%]\t][a-zA-Z0-9]+%&[a-zA-Z0-9]+", "Add space around /"},
|
{"^[^\"]*[!@#$%%%^&*() %[%]\t][a-zA-Z0-9]+%&[a-zA-Z0-9]+", "Add space around /"},
|
||||||
{"^[a-zA-Z0-9]+%& [a-zA-Z0-9]+", "Add space before &"},
|
{"^[a-zA-Z0-9]+%& [a-zA-Z0-9]+", "Add space before &"},
|
||||||
{"^[^\"]*[!@#$%%%^&*() %[%]\t][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 *'"},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user