Skip to content

Latest commit

 

History

History
15 lines (12 loc) · 415 Bytes

clang_analyzer_guide.md

File metadata and controls

15 lines (12 loc) · 415 Bytes

scan-build usage

# Take fedora as an example
$ dnf install clang clang-analyzer
# Build iSulad
$ cd iSulad && mkdir build && cd build
# Execute cmake via scan-build
$ scan-build cmake ..
# Compiled with clang, the generated report is in the scanout directory
$ scan-build --use-cc=clang --use-c++=clang++ -o ./scanout make

View the html report of the scanout directory and analyze it in turn.