diff --git a/lib/checkmemoryleak.h b/lib/checkmemoryleak.h index 82e40ab6b..09f7c6d44 100644 --- a/lib/checkmemoryleak.h +++ b/lib/checkmemoryleak.h @@ -357,7 +357,6 @@ public: { } void runSimplifiedChecks(const Tokenizer *tokenizr, const Settings *settings, ErrorLogger *errLog) { - // Don't use these check for Java and C# programs.. if (!tokenizr->isCPP()) return; diff --git a/lib/cppcheck.cpp b/lib/cppcheck.cpp index 1daa1c508..4e0c5c4ee 100644 --- a/lib/cppcheck.cpp +++ b/lib/cppcheck.cpp @@ -133,8 +133,7 @@ unsigned int CppCheck::processFile(const std::string& filename) { exitcode = 0; - // only show debug warnings for C/C++ source files (don't fix - // debug warnings for java/c#/etc files) + // only show debug warnings for accepted C/C++ source files if (!Path::acceptFile(filename)) _settings.debugwarnings = false;