Skip to content

Commit

Permalink
apply_clang_tidy: add comments/usage
Browse files Browse the repository at this point in the history
  • Loading branch information
lbartoletti committed Dec 19, 2023
1 parent da6a086 commit e0d4ad4
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions script/apply_clang_tidy.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
#!/usr/bin/env bash

# This script generates a commit for each clang-tidy check using various clang utilities.
#
# By default, it uses Linux paths.
# You can execute it by defining the variables CLANG_TIDY_BIN, RUN_CLANG_TIDY_BIN,
# and APPLY_CLANG_TIDY_BIN when running the script:
#
# > env CLANG_TIDY_BIN=/usr/local/bin/clang-tidy15 \
# RUN_CLANG_TIDY_BIN=/usr/local/bin/run-clang-tidy15 \
# APPLY_CLANG_TIDY_BIN=/usr/local/bin/clang-apply-replacements15 \
# ./apply_clang_tidy.sh
#
# There isn't a clang-tidy CI in this project as of now.
# This script is useful for potential changes in .clang-tidy.
# We encourage developers to apply the fixes suggested by clang-tidy.


CLANG_TIDY_BIN=${CLANG_TIDY_BIN:-/usr/bin/clang-tidy}
RUN_CLANG_TIDY_BIN=${RUN_CLANG_TIDY_BIN:-/usr/bin/run-clang-tidy}
APPLY_CLANG_TIDY_BIN=${APPLY_CLANG_TIDY_BIN:-/usr/bin/clang-apply-replacements}
Expand Down

0 comments on commit e0d4ad4

Please sign in to comment.