1
0

Normalized spaces after "catch".

This commit is contained in:
madmaxoft 2014-07-21 15:21:54 +02:00
parent fe6a3b5d72
commit 9e7b9a4ebe
2 changed files with 4 additions and 3 deletions

View File

@ -131,12 +131,13 @@ local g_ViolationPatterns =
{"for%(", "Needs a space after \"for\""}, {"for%(", "Needs a space after \"for\""},
{"while%(", "Needs a space after \"while\""}, {"while%(", "Needs a space after \"while\""},
{"switch%(", "Needs a space after \"switch\""}, {"switch%(", "Needs a space after \"switch\""},
{"catch%(", "Needs a space after \"catch\""},
-- No space after keyword's parenthesis: -- No space after keyword's parenthesis:
{"[^%a#]if %( ", "Remove the space after \"(\""}, {"[^%a#]if %( ", "Remove the space after \"(\""},
{"for %( ", "Remove the space after \"(\""}, {"for %( ", "Remove the space after \"(\""},
{"while %( ", "Remove the space after \"(\""}, {"while %( ", "Remove the space after \"(\""},
{"switch %( ", "Remove the space after \"(\""}, {"catch %( ", "Remove the space after \"(\""},
-- No space before a closing parenthesis: -- No space before a closing parenthesis:
{" %)", "Remove the space before \")\""}, {" %)", "Remove the space before \")\""},

View File

@ -281,11 +281,11 @@ int main( int argc, char **argv)
Root.Start(); Root.Start();
} }
#if !defined(ANDROID_NDK) #if !defined(ANDROID_NDK)
catch( std::exception& e) catch (std::exception & e)
{ {
LOGERROR("Standard exception: %s", e.what()); LOGERROR("Standard exception: %s", e.what());
} }
catch( ...) catch (...)
{ {
LOGERROR("Unknown exception!"); LOGERROR("Unknown exception!");
} }