diff options
Diffstat (limited to '.claude/hooks/cmake-format.sh')
| -rwxr-xr-x | .claude/hooks/cmake-format.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/.claude/hooks/cmake-format.sh b/.claude/hooks/cmake-format.sh new file mode 100755 index 0000000..fc1f2cc --- /dev/null +++ b/.claude/hooks/cmake-format.sh @@ -0,0 +1,5 @@ +#!/bin/bash +file_path=$(jq -r '.tool_input.file_path') +if [[ "$file_path" =~ (CMakeLists\.txt|\.cmake)$ ]]; then + cmake-format -i "$file_path" +fi |
