CheckBasicStyle: Doesn't report false positives ending in a keyword.
This commit is contained in:
parent
64f8428d03
commit
22a3419791
@ -116,11 +116,11 @@ local g_ViolationPatterns =
|
|||||||
|
|
||||||
-- Space after keywords:
|
-- Space after keywords:
|
||||||
{"[^_]if%(", "Needs a space after \"if\""},
|
{"[^_]if%(", "Needs a space after \"if\""},
|
||||||
{"for%(", "Needs a space after \"for\""},
|
{"%sfor%(", "Needs a space after \"for\""},
|
||||||
{"while%(", "Needs a space after \"while\""},
|
{"%swhile%(", "Needs a space after \"while\""},
|
||||||
{"switch%(", "Needs a space after \"switch\""},
|
{"%sswitch%(", "Needs a space after \"switch\""},
|
||||||
{"catch%(", "Needs a space after \"catch\""},
|
{"%scatch%(", "Needs a space after \"catch\""},
|
||||||
{"template<", "Needs a space after \"template\""},
|
{"%stemplate<", "Needs a space after \"template\""},
|
||||||
|
|
||||||
-- No space after keyword's parenthesis:
|
-- No space after keyword's parenthesis:
|
||||||
{"[^%a#]if %( ", "Remove the space after \"(\""},
|
{"[^%a#]if %( ", "Remove the space after \"(\""},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user