Building OCLint¶
This page presents you a shortcut of building OCLint release version.
System Requirements¶
Prepare LLVM/Clang¶
- Checkout LLVM/Clang
- cd oclint-scripts
- ./checkoutLLVMClang.sh
- cd ..
- Build LLVM/Clang
- cd oclint-scripts
- ./buildClang.sh release
- cd ..
Build OCLint¶
- cd oclint-scripts
- ./buildCore.sh
- ./buildMetrics.sh
- ./buildRules.sh
- ./buildRelease.sh clean (optional)
- ./buildRelease.sh
- cd ..
Verify Your Build¶
- cd build/oclint-release/bin
- ./oclint
You should get:
$ ./oclint
oclint: Not enough positional command line arguments specified!
Must specify at least 1 positional arguments: See: ./oclint -help
Now, let’s move onto installation.