cpp-checker

所属分类:C/C++基础
开发工具:Python
文件大小:0KB
下载次数:0
上传日期:2023-11-20 06:50:12
上 传 者sh-1993
说明:  cpp检查器
(cpp checker)

文件列表:
.eslintrc.json (429, 2023-11-19)
.vscode/ (0, 2023-11-19)
.vscode/extensions.json (169, 2023-11-19)
.vscode/launch.json (853, 2023-11-19)
.vscodeignore (126, 2023-11-19)
CHANGELOG.md (2443, 2023-11-19)
LICENSE (1066, 2023-11-19)
bin/ (0, 2023-11-19)
bin/icon.png (22208, 2023-11-19)
bin/linux64/ (0, 2023-11-19)
bin/linux64/addons/ (0, 2023-11-19)
bin/linux64/addons/ROS_naming.json (1140, 2023-11-19)
bin/linux64/addons/__init__.py (0, 2023-11-19)
bin/linux64/addons/cert.py (16055, 2023-11-19)
bin/linux64/addons/cppcheckdata.doxyfile (76327, 2023-11-19)
bin/linux64/addons/cppcheckdata.py (39495, 2023-11-19)
bin/linux64/addons/findcasts.py (1197, 2023-11-19)
bin/linux64/addons/misc.py (6070, 2023-11-19)
bin/linux64/addons/misra.py (129265, 2023-11-19)
bin/linux64/addons/misra_9.py (18981, 2023-11-19)
bin/linux64/addons/naming.json (343, 2023-11-19)
bin/linux64/addons/naming.py (3490, 2023-11-19)
bin/linux64/addons/namingng.py (11613, 2023-11-19)
bin/linux64/addons/threadsafety.py (1258, 2023-11-19)
bin/linux64/addons/y2038.py (7108, 2023-11-19)
bin/linux64/cfg/ (0, 2023-11-19)
bin/linux64/cfg/avr.cfg (12718, 2023-11-19)
bin/linux64/cfg/bento4.cfg (8529, 2023-11-19)
bin/linux64/cfg/boost.cfg (44234, 2023-11-19)
bin/linux64/cfg/bsd.cfg (9163, 2023-11-19)
bin/linux64/cfg/cairo.cfg (3336, 2023-11-19)
bin/linux64/cfg/cppcheck-cfg.rng (20644, 2023-11-19)
bin/linux64/cfg/cppcheck-lib.cfg (2066, 2023-11-19)
bin/linux64/cfg/cppunit.cfg (2690, 2023-11-19)
bin/linux64/cfg/daca.cfg (908, 2023-11-19)
bin/linux64/cfg/embedded_sql.cfg (109, 2023-11-19)
bin/linux64/cfg/emscripten.cfg (125, 2023-11-19)
bin/linux64/cfg/ginac.cfg (402394, 2023-11-19)
... ...

# cpp-check-lint [![GitHub release](https://img.shields.io/github/release/QiuminGe/cpp-check-lint.svg?style=plastic)](https://github.com/QiuminGe/cpp-check-lint/releases) [![GitHub license](https://img.shields.io/github/license/QiuminGe/cpp-check-lint.svg?style=plastic)](https://github.com/QiuminGe/cpp-check-lint/blob/main/LICENSE) [![GitHub stars](https://img.shields.io/github/stars/QiuminGe/cpp-check-lint?style=plastic)](https://github.com/QiuminGe/cpp-check-lint/stargazers) [![GitHub fork](https://img.shields.io/github/forks/QiuminGe/cpp-check-lint.svg?style=plastic)](https://github.com/QiuminGe/cpp-check-lint/network/members) [![GitHub issues](https://img.shields.io/github/issues/QiuminGe/cpp-check-lint.svg?style=plastic)](https://github.com/QiuminGe/cpp-check-lint/issues) ## Features * cppcheck/cpplint: * editor/context * check current file * check the directory of the current file * cmd : * clear all * clear current file * stop check * explorer/context * check directory || check current file * cmd * OnSave/QuickFix ## Requirements ### cppcheck * Install from source ``` # http://cppcheck.net/ yum install -y gcc gcc-c++ cmake sudo tar -zxvf cppcheck-x.y.tar.gz cd cppcheck-x.y/ mkdir build && cd build cmake .. make -j 4 ``` * Install for yum/apt_get/brew : ``` sudo apt-get install cppcheck sudo yum install cppcheck brew install cppcheck ``` * help http://cppcheck.sourceforge.net/manual.html ### cpplint * Install from source ``` https://github.com/cpplint/cpplint ``` * Install from pip ``` pip install cpplint ``` ### builtin binaries * cppcheck 2.12.0 * cpplint 1.6.1 > support (**linux cpplint need python**) >> | Os | Bit | Version | >> |:--:|:---:|:--------| >> |Ubuntu|64|16.04+| >> |Debian|64|9+| >> |CentOS|64|7+| >> |RHEL|64|7+| >> |Windows|64|7+| ## Extension Settings * Cppcheck:--executable ``` if (cppcheck configure is null) { use builtin binaries } else { if( ("path to executable" --version).trim().toLowerCase().startsWith("cppcheck") ){ use "path to executable" } else { use builtin binaries } } ``` * Cppcheck:--addon= ``` [ "cert", { "script": "misra.py", "args": [ "--rule-texts=/home/user/misra.txt" ] }, "y2038.py", "C:\\UsersAdministrator\\hreadsafety.json" ] ``` "addon" and "addon.py" will use addons folder under the same level folder as cppcheck . ``` [rorot@cpppcheck]$ tree | grep -E " cppcheck.exe| addons| misra.py| y2038.py| cert.py| threadsafety.py" ├── addons │ ├── cert.py │ ├── misra.py │ ├── threadsafety.py │ └── y2038.py ├── cppcheck.exe ``` Some addons need extra arguments. You can configure json or json file. ``` { "script": "misra.py", "args": [ "--rule-texts=/home/user/misra.txt" ] } "--rule-texts=/home/user/misra.txt" (need absolute path, and use "/" or "\\" to split paths) If ${workspace folder} is included, it will be replaced. "args": ["--rule-texts=${workspaceFolder}/rule/misra.txt"] -> "args":["--rule-texts=D:/code/demo/rule/misra.txt"]} ``` * Cpplint:--executable ``` if (cpplint configure is null) { use builtin binaries } else { if("path to executable"){ use "path to executable" } else { use builtin binaries } } ``` * Cpplint:--recursive * Cpplint:--lintdir ``` if ( cpplint version support "--recursive") { set --recursive true } else { set "--recursive" false set "--lintdir" } ``` * customargs If the configuration parameters cannot be satisfied, use custom configuration "--customargs=" * OnSave cpplint suggest use with clang-format * QuickFix It's just suppresses alarms * Configure > skip unsupported flag >> | type | value | >> |:----:|:-----:| >> |bool|false| >> |string|""| >> |number|null| >> |object|null| ## Known Issues * cpp-check-lint https://github.com/QiuminGe/cpp-check-lint/issues * cpplint : https://github.com/cpplint/cpplint/issues * cppcheck : https://sourceforge.net/p/cppcheck/wiki/Home/ ## Source code * https://github.com/QiuminGe/cpp-check-lint ## [Release Notes](https://github.com/QiuminGe/cpp-check-lint/blob/main/CHANGELOG.md) -----------------------------------------------------------------------------------------------------------

近期下载者

相关文件


收藏者