User Activity

  • Modified a comment on discussion General Discussion on cppcheck

    Hi, I think this may be a bug. For example, with the command "cppcheck --project=/path/compile_commands.json -I /include_path main.c", the include_path will not take effect.

  • Modified a comment on discussion General Discussion on cppcheck

    Hi, I think this may be a bug. For example, with the command "cppcheck --project=/path/compile_commands.json -I /include_path", the include_path will not take effect.

  • Modified a comment on discussion General Discussion on cppcheck

    Hi, I think this may be a bug. For example, with the command: cppcheck --project=/path/compile_commands.json" -I "/include_path", the include_path will not take effect.

  • Posted a comment on discussion General Discussion on cppcheck

    Hi, I think this may be a bug. For example, with the command "cppcheck --project=/path/compile_commands.json" -I "/include_path", the include_path will not take effect.

  • Modified a comment on discussion General Discussion on cppcheck

    Hi, In the file cppcheck/lib/cppcheck.cpp: unsigned int CppCheck::check(const FileSettings &fs) { // TODO: move to constructor when CppCheck no longer owns the settings if (mSettings.checks.isEnabled(Checks::unusedFunction) && !mUnusedFunctionsCheck) mUnusedFunctionsCheck.reset(new CheckUnusedFunctions()); Settings tempSettings = mSettings; // this is a copy if (!tempSettings.userDefines.empty()) tempSettings.userDefines += ';'; if (mSettings.clang) tempSettings.userDefines += fs.defines; else tempSettings.userDefines...

  • Posted a comment on discussion General Discussion on cppcheck

    Hi, In the file cppcheck/lib/cppcheck.cpp: unsigned int CppCheck::check(const FileSettings &fs) { // TODO: move to constructor when CppCheck no longer owns the settings if (mSettings.checks.isEnabled(Checks::unusedFunction) && !mUnusedFunctionsCheck) mUnusedFunctionsCheck.reset(new CheckUnusedFunctions()); Settings tempSettings = mSettings; // this is a copy if (!tempSettings.userDefines.empty()) tempSettings.userDefines += ';'; if (mSettings.clang) tempSettings.userDefines += fs.defines; else tempSettings.userDefines...

  • Posted a comment on discussion General Discussion on cppcheck

    Hi, void main() { int max_v = INT_MAX; int x = max_v + 1; max_v += 1; } There is an integerOverflow reported for "x = max_v + 1". But it is not reported for "max_v += 1".

  • Posted a comment on discussion General Discussion on cppcheck

    Hi, For example, I have below code in main.c: #include <stdlib.h> int main() { return 0; } With "cppcheck main.c -I /usr/include", there will be error: error: failed to evaluate #if condition, undefined function-like macro invocation: __GLIBC_USE( ... ) [syntaxError] #if __HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT) The checking process will be stopped by this error, and cppcheck exit. Is this normal? As you know, there also might be -I options in the commands of a compile_commands.json. So...

View All

Personal Data

Username:
wy1630099
Joined:
2024-12-06 11:41:18.694000

Projects

  • No projects to display.

Personal Tools

MongoDB Logo MongoDB