diff --git a/cppcheck.cbproj b/cppcheck.cbproj index 19cf21a62..e2e139905 100644 --- a/cppcheck.cbproj +++ b/cppcheck.cbproj @@ -2,7 +2,7 @@ {861d1a69-8a53-4340-a876-a39d49c61aa7} - Release + Debug true @@ -18,82 +18,82 @@ Base - exe true - true - NO_STRICT + exe JPHNE - true + NO_STRICT + true true - true + true true + true true - true true + true true false - true - C:\cppcheck;src;cli;lib true - true - true - true + C:\cppcheck;src;cli;lib + true CppConsoleApplication - true + true + true + true .\ - true + true true - vcl.bpi;rtl.bpi;bcbie.bpi;vclx.bpi;vclactnband.bpi;xmlrtl.bpi;bcbsmp.bpi;dbrtl.bpi;vcldb.bpi;vcldbx.bpi;bdertl.bpi;A407_R110.bpi;DreamEdit_C6.bpi + true true - true - true + vcl.bpi;rtl.bpi;bcbie.bpi;vclx.bpi;vclactnband.bpi;xmlrtl.bpi;bcbsmp.bpi;dbrtl.bpi;vcldb.bpi;vcldbx.bpi;bdertl.bpi;A407_R110.bpi;DreamEdit_C6.bpi true - true + true + true $(BDS)\include;$(BDS)\include\dinkumware;$(BDS)\include\vcl;C:\cppcheck;src;cli;lib + true true $(BDS)\lib;$(BDS)\lib\obj;$(BDS)\lib\psdk;C:\cppcheck;src;cli;lib - true true + true - false false - true - _DEBUG;$(Defines) + false true - true + _DEBUG;_HAS_ITERATOR_DEBUGGING=1;$(Defines) + true true - true + true true + true true - true - true false + true + true true true None DEBUG - true true - true + true true - true - .\ + true true - true + .\ + true true + true bcb_Debug - true - true true + true + true false - true true + true true true true - $(BDS)\lib\debug;$(ILINK_LibraryPath) true + $(BDS)\lib\debug;$(ILINK_LibraryPath) Full true @@ -113,8 +113,13 @@ CPlusPlusBuilder.Personality CppConsoleApplication -FalseFalse1000FalseFalseFalseFalseFalse105312521.0.0.01.0.0.0applicom.cFalseC:\linux-2.6.25.1\drivers\charFalseFalseTrueFalseFalseTrueTrue3$(BDS)\include;$(BDS)\include\dinkumware;$(BDS)\include\vcl;C:\cppcheck;src;cli;lib$(BDS)\include;$(BDS)\include\dinkumware;$(BDS)\include\vcl;C:\cppcheck;src $(BDS)\include;$(BDS)\include\dinkumware;$(BDS)\include\vcl;C:\cppcheck - 1$(BDS)\lib;$(BDS)\lib\obj;$(BDS)\lib\psdk;C:\cppcheck;src;cli;lib1NO_STRICT3.\bcb_debug.1250 +FalseFalse1000FalseFalseFalseFalseFalse105312521.0.0.01.0.0.0applicom.cFalseC:\linux-2.6.25.1\drivers\charFalseFalseTrueFalseFalseTrueTrue3$(BDS)\include;$(BDS)\include\dinkumware;$(BDS)\include\vcl;C:\cppcheck;src;cli;lib$(BDS)\include;$(BDS)\include\dinkumware;$(BDS)\include\vcl;C:\cppcheck;src$(BDS)\include;$(BDS)\include\dinkumware;$(BDS)\include\vcl;C:\cppcheck2$(BDS)\lib\debug;$(BDS)\lib;$(BDS)\lib\obj;$(BDS)\lib\psdk;C:\cppcheck;src;cli;lib $(BDS)\lib;$(BDS)\lib\obj;$(BDS)\lib\psdk;C:\cppcheck;src;cli;lib + 2_DEBUG;NO_STRICT;_HAS_ITERATOR_DEBUGGING=1 NO_STRICT + 3.\bcb_debug.1250 + 1 + bcb_Debug + + diff --git a/lib/settings.cpp b/lib/settings.cpp old mode 100644 new mode 100755 index 0343e8bef..05e8dfdc6 --- a/lib/settings.cpp +++ b/lib/settings.cpp @@ -161,9 +161,10 @@ void Settings::addEnabled(const std::string &str) } else if (!handled) { - throw std::runtime_error(str.size() ? - std::string("cppcheck: there is no --enable parameter with the name '" + str + "'") : - std::string("cppcheck: --enable parameter is empty")); + if (str.empty()) + throw std::runtime_error("cppcheck: --enable parameter is empty"); + else + throw std::runtime_error("cppcheck: there is no --enable parameter with the name '" + str + "'"); } }