还需要安装下cppcheck等,命令如下: sudoapt-getinstallcppcheck 1. 复制 另外,需要使用下述环境变量,在~/openharmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin目录下有clang-tidy等命令行工具会使用到。 export PATH=~/openharmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin:$PATH export CC_LOGGER_GCC...
ExecutesClang-Tidy,Clang Static Analyzerwith Cross-Translation Unit analysis, Statistical Analysis (when checkers are available),Cppcheck,GCC Static Analyzerand theFacebook Infer Analyzer. Creates the JSON compilation database by wiretapping any build process (e.g.,CodeChecker log -b "make"). ...
Supported analyzers: asan - AddressSanitizer, https://clang.llvm.org/docs/AddressSanitizer.html clang-tidy - Clang Tidy, https://clang.llvm.org/extra/clang-tidy cppcheck - Cppcheck, http://cppcheck.sourceforge.net eslint - ESLint, https://eslint.org/ fbinfer - Facebook Infer, https://...
1. 还需要安装下cppcheck等,命令如下: 复制 sudoapt-get install cppcheck 1. 另外,需要使用下述环境变量,在~/openharmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin目录下有clang-tidy等命令行工具会使用到。 复制 export PATH=~/openharmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin:$PATH export ...
还需要安装下cppcheck等,命令如下: sudoapt-getinstallcppcheck 1. 另外,需要使用下述环境变量,在~/openharmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin目录下有clang-tidy等命令行工具会使用到。 export PATH=~/openharmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin:$PATH ...
Executes Clang-Tidy, Clang Static Analyzer with Cross-Translation Unit analysis, Statistical Analysis (when checkers are available), Cppcheck, and the GCC Static Analyzer. Creates the JSON compilation database by wiretapping any build process (e.g., CodeChecker log -b "make"). Automatically ...
Analyze your project with thecheckcommand: CodeChecker check -b "cd ~/your-project && make clean && make" -o ~/results checkwill print an overview of the issues found in your project by the analyzers. Start a CodeChecker web and storage server in another terminal or as a background proces...