modify
正在显示
-
Developer
代码质量分析发现了 5 个问题。
-
⛔ 0 blocker -
🚫 2 critical -
⚠ 1 major -
🔽 2 minor -
ℹ 0 info
注意: 存在下列问题的代码行在本次提交中没有发生变更,无法使用代码行评论的方式进行报告。所以将下列问题汇总显示在这里(点击问题链接可以转到对应的源代码行):
-
🚫 [Mismatched free() / delete / delete []: Address 0x5ab6c80 is 0 bytes inside a block of size 4 alloc'd (Stack 1)
0x4C2E0EF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) 0x400A55: main (main.cpp:8)](https://www.codecode.net/engintime-cs/teacher-group/shx/Test/test-vscode-cpp-win/blob/0d95ee9d791d229524c1aed94cc021a9baa0fd8b/main.cpp#L8)
📘 -
🚫 [Mismatched free() / delete / delete []: Address 0x5ab6c80 is 0 bytes inside a block of size 4 alloc'd (Stack 0)
0x4C2EDEB: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) 0x400B8D: main (main.cpp:29)](https://www.codecode.net/engintime-cs/teacher-group/shx/Test/test-vscode-cpp-win/blob/0d95ee9d791d229524c1aed94cc021a9baa0fd8b/main.cpp#L29)
📘 -
⚠ Mismatching allocation and deallocation: z📘 -
🔽 Cppcheck cannot find all the include files. Cppcheck can check the code without the include files found. But the results will probably be more accurate if all the include files are found. Please check your project's include directories and add all of them as include directories for Cppcheck. To see what files Cppcheck cannot find use --check-config. (ProjectKey-169407)📘 -
🔽 Variable 'z' is allocated memory that is never used.📘
-
请
注册
或者
登录
后发表评论