Browse Source

.clang-tidy: Document run-clang-tidy

Turns out clang-tidy comes with a Python script that makes running
it very easy and parallelizes the checks.

https://github.com/llvm/llvm-project/blob/main/clang-tools-extra/clang-tidy/tool/run-clang-tidy.py
pull/1244/head
Gleb Mazovetskiy 5 years ago committed by Anders Jenbo
parent
commit
ca1786828b
  1. 10
      .clang-tidy

10
.clang-tidy

@ -1,13 +1,17 @@
---
# clang-tidy configuration
#
# clang-tidy can be run manually over a set of files like this:
# clang-tidy can be run manually like this:
#
# clang-tidy -p build/compile_commands.json SourceS/**/*.cpp
# run-clang-tidy -p build 'Source.*'
#
# To apply fixes suggested by clang-tidy, run:
#
# clang-tidy -p build/compile_commands.json --fix SourceS/**/*.cpp
# run-clang-tidy -p build -fix -format 'Source.*'
#
# To limit the run to certain checks:
#
# run-clang-tidy -checks='-*,modernize-use-nullptr' -p build 'Source.*'
#
# clang-tidy also has several IDE integrations listed here:
# https://clang.llvm.org/extra/clang-tidy/Integrations.html

Loading…
Cancel
Save