mirror of https://github.com/PCSX2/pcsx2.git
linux: example how to use clang tidy
This commit is contained in:
parent
791a14bec0
commit
8ca212d142
14
build.sh
14
build.sh
|
@ -191,6 +191,20 @@ if [[ "$clangTidy" -eq 1 ]] && [[ -x `which clang-tidy` ]]; then
|
|||
|
||||
for cpp in `cat $cpp_list`
|
||||
do
|
||||
# Example:
|
||||
# clang-tidy-3.8 -p build_dev/compile_commands.json plugins/GSdx/GSTextureCache.cpp -checks='modernize-loop-convert' -fix
|
||||
# List of modernize check
|
||||
# modernize-loop-convert
|
||||
# modernize-make-unique
|
||||
# modernize-pass-by-value
|
||||
# modernize-redundant-void-arg
|
||||
# modernize-replace-auto-ptr
|
||||
# modernize-shrink-to-fit
|
||||
# modernize-use-auto
|
||||
# modernize-use-default
|
||||
# modernize-use-nullptr
|
||||
# modernize-use-override
|
||||
|
||||
# Check all, likely severals millions of log...
|
||||
#clang-tidy -p $compile_json $cpp -checks='*' -header-filter='.*'
|
||||
|
||||
|
|
Loading…
Reference in New Issue