Trình duyệt web Văn phòng & PDF Bộ gõ tiếng Việt Chat & họp trực tuyến Nghe nhạc & xem video Đồ hoạ & ảnh Nén & giải nén Tiện ích hệ thống Điều khiển từ xa Lập trình Tải file & torrent Bảo mật & mật khẩu Mạng & Internet Game & giả lập Giáo dục & khoa học Phần mềm khác

Cppcheck 2.22.0

Nhà phát hành: The Cppcheck team · Mã nguồn mở

Cppcheck là công cụ phân tích tĩnh mã nguồn C/C++ giúp phát hiện lỗi lập trình mà trình biên dịch thường bỏ sót, hỗ trợ nâng cao chất lượng code hiệu quả.

Tải về (22,8 MB, 64-bit)

Giới thiệu

Cppcheck là phần mềm mã nguồn mở dùng để phân tích tĩnh mã nguồn C và C++. Khác với trình biên dịch hoặc các công cụ phân tích khác, Cppcheck không kiểm tra lỗi cú pháp mà tập trung phát hiện những lỗi lập trình mà trình biên dịch thường không phát hiện được.

Mục tiêu của Cppcheck là chỉ phát hiện những lỗi thực sự trong mã nguồn, giảm thiểu tối đa báo cáo sai (false positives), giúp lập trình viên nâng cao chất lượng và độ ổn định của phần mềm.

Tính năng chính

  • Phân tích tĩnh mã nguồn C/C++ để tìm lỗi lập trình.
  • Phát hiện các lỗi mà trình biên dịch thường bỏ qua.
  • Giảm thiểu báo cáo lỗi sai (false positives) để tăng hiệu quả kiểm tra.
  • Phần mềm mã nguồn mở, miễn phí theo giấy phép GPL-3.0.

Ai nên dùng

Cppcheck phù hợp với lập trình viên C/C++ muốn kiểm tra và cải thiện chất lượng mã nguồn, đặc biệt là những người cần công cụ phân tích tĩnh đơn giản, hiệu quả và miễn phí.

Cài đặt

  1. Bấm nút Tải về trên trang này để tải bộ cài gốc.
  2. Mở file .msi để tiến hành cài đặt phần mềm trên Windows.

Lưu ý

Cppcheck là phần mềm mã nguồn mở, miễn phí theo giấy phép GPL-3.0. Người dùng có thể sử dụng miễn phí nhưng cần tuân thủ các điều khoản của giấy phép khi sử dụng lâu dài.

Có gì mới trong 2.22.0

Release Notes for Cppcheck 2.22 Major bug fixes & crashes: - Fixed a large number of fuzzer-found crashes and hangs in the tokenizer and template simplifier, e.g. TemplateSimplifier::expandTemplate() (bb630c2, 3f2d60c), Tokenizer::simplifyTypedef() (71de675, 3deb36d, 592e7b7), Tokenizer::simplifyUsing() (9162aa7, 7d5a54c), Tokenizer::findGarbageCode() (08db304) and ReverseTraversal::traverse() (3a3184d, 5aa31d0). - 6d2b6f4 Fix #14974 [regression] inline suppression does not work with build dir anymore. - 9a500c8 Fix #14972 [regression] Syntax Error: AST broken, '!' doesn't have an operand. New checks: - 0d7884d Warn when feof() is used as a while loop condition (wrongfeofUsage). - 04091bd ftell() result is unspecified when file is opened in mode "t". - 3d88880 Detect when an STL algorithm such as std::copy, std::equal, std::transform, etc. accesses more elements through an iterator than are available in the container (algorithmOutOfBounds). - f695ade Detect switch cases that cannot be selected when the switch condition has a known value (unreachableSwitchCase). C/C++ support: - b878dc2 Support C++23 'if consteval' / 'if !consteval'. - 7a8c67a Fix #15007 isAttributeNoreturn not set for _Noreturn. GUI: - f81f6f0 Fix #14829 Platform configuration mismatch between UI selection and analysis log. - 9f74c2d Fix #14813 crash: recheck in GUI sometimes crashes. - 550189b Fix #14738 GUI recheck of files not working properly when importing compile_commands.json. - 8f7666d Fix #14983 GUI: exclude file with relative path. - 6640862 Fix #14933 each GUI log entry line should be output on a separate line. - 5799d47 Removed GUI compliance report instructions (feature removed). Suppressions: - 93546a2 XML suppression file: added macro attribute for specifying macro name. - fecb349 Fix #14959 Warning hash for token-based warnings. - f6fff71 Fix #15013 Calculate warning hash for CTU warnings. - 0b59984 Baseline functionality (script and documentation). - 637d5be Suppression file name cache. (performance) - c976cac ErrorLogger: do not open and read from files unless necessary (performance). Import project: - d32c01d Added support for Folders in slnx project files, skip non-C++ projects. - 9408a1d Added support for vcxproj ExcludedFromBuild. - bf099d1 Import project: handle forced include files from compilation database projects. - 3a9750e Flexible handling of -isystem, --sysroot and -I flags in compile_commands.json through the script tweak-compile_commands.py. Infrastructure & dependencies: - 4e62f0c Fix #14614 Optionally provide comments in preprocessor output (BuildCache). - ff4d7ce Fix #14987 Update simplecpp to 1.9.1. Other: - 1fb6630 Added configuration file for Microsoft.GSL (Guideline Support Library). - 167f49d, 5aec67c, 767ace6 man/checkers: documented remaining checkers and fixed guideline classifications for MISRA C++.

Thông tin

Phiên bản2.22.0
Dung lượng22,8 MB
Hệ điều hànhWindows 10/11 (64-bit)
Giấy phépMã nguồn mở (GPL-3.0)
Ngày phát hành19/09/2026
Cập nhật lên kho21/11/2026
Trang chủgithub.com
Lượt tải0

Kiểm tra file

Bộ cài tải nguyên bản từ github.com, mã SHA256 khớp với kho winget của Microsoft. Không chỉnh sửa, không gói kèm.

SHA256 (file cppcheck-2.22.0-x64-Setup.msi)
3929162bab7e71d1b9b18708ec054fb0188bfc8ea1660979ed95837f5a9f547b
Tự kiểm trên Windows: certutil -hashfile "cppcheck-2.22.0-x64-Setup.msi" SHA256

Cùng danh mục