diff options
author | madmaxoft <github@xoft.cz> | 2014-07-21 15:21:54 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-07-21 17:40:44 +0200 |
commit | 9e7b9a4ebe815bd631d8b124e81f017fc7fa35a2 (patch) | |
tree | 47c4cfc892f646b830432a911f6aeaa95050b808 /src | |
parent | CheckBasicStyle: Checks spaces after keywords, no space before ")". (diff) | |
download | cuberite-9e7b9a4ebe815bd631d8b124e81f017fc7fa35a2.tar cuberite-9e7b9a4ebe815bd631d8b124e81f017fc7fa35a2.tar.gz cuberite-9e7b9a4ebe815bd631d8b124e81f017fc7fa35a2.tar.bz2 cuberite-9e7b9a4ebe815bd631d8b124e81f017fc7fa35a2.tar.lz cuberite-9e7b9a4ebe815bd631d8b124e81f017fc7fa35a2.tar.xz cuberite-9e7b9a4ebe815bd631d8b124e81f017fc7fa35a2.tar.zst cuberite-9e7b9a4ebe815bd631d8b124e81f017fc7fa35a2.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/CheckBasicStyle.lua | 3 | ||||
-rw-r--r-- | src/main.cpp | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/CheckBasicStyle.lua b/src/CheckBasicStyle.lua index ddc552fa4..fba30ea98 100644 --- a/src/CheckBasicStyle.lua +++ b/src/CheckBasicStyle.lua @@ -131,12 +131,13 @@ local g_ViolationPatterns = {"for%(", "Needs a space after \"for\""}, {"while%(", "Needs a space after \"while\""}, {"switch%(", "Needs a space after \"switch\""}, + {"catch%(", "Needs a space after \"catch\""}, -- No space after keyword's parenthesis: {"[^%a#]if %( ", "Remove the space after \"(\""}, {"for %( ", "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: {" %)", "Remove the space before \")\""}, diff --git a/src/main.cpp b/src/main.cpp index 93fa6af91..106233342 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -281,11 +281,11 @@ int main( int argc, char **argv) Root.Start(); } #if !defined(ANDROID_NDK) - catch( std::exception& e) + catch (std::exception & e) { LOGERROR("Standard exception: %s", e.what()); } - catch( ...) + catch (...) { LOGERROR("Unknown exception!"); } |