在我的代码上运行CppCheck的输出显示以下错误:Variable 'strFullPath' is assigned a value that is never used.[unreadVariable] std::ifstream settingsLocalfile(sAppProfileLocal.c_str());}
CppChec
我陷入了与AnsiStrings sprintfmember function and Cppcheck's built-insprintf知识之间的“冲突”。GUI中得到了这个警告
摘要: sprintf格式字符串需要0参数,但给出了1。这表明Cppcheck正在讨论sprintf函数,但我使用的是一个名相同的VCL类AnsiString的成员函数。为了消除这个假阳性,我可以用
内联抑制:/
我有一个C#应用程序,它访问命令行工具"cppcheck“,然后将这个命令行工具的输出保存到变量" output”。new System.Diagnostics.ProcessStartInfo();
startInfo.Arguments = "/C cppcheckOutput of cppcheck is not completely read:
stri