Skip to content

Commit

Permalink
fixup! add clang-tidy pre-commit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
Swiftb0y committed Sep 10, 2024
1 parent 4abc2b2 commit ce7879d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/clang_tidy.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ def main(argv: typing.Optional[typing.List[str]] = None) -> int:
logger.debug("Looking for compile_commands.json...")
compile_commands = find_compile_commands(rootdir)

if not compile_commands:
logger.error("could not find compile_commands.json\n")
sys.exit(1)

logger.debug("getting changed lines")
changed_lines = githelper.get_changed_lines_grouped(
from_ref=args.from_ref,
Expand Down

0 comments on commit ce7879d

Please sign in to comment.