Skip to content
This repository has been archived by the owner on Jan 30, 2025. It is now read-only.

Commit

Permalink
update clang-format-ignore file
Browse files Browse the repository at this point in the history
  • Loading branch information
zezhang committed Jan 25, 2025
1 parent 9994949 commit cd59e47
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .clang-format-ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
tools/aot/execute_test.template.cpp
4 changes: 2 additions & 2 deletions .github/workflows/bazelBuildAndTestTcp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ jobs:
-v "$(pwd)":"/opt/src/mlir-tcp" \
-v "${HOME}/.cache/bazel":"${HOME}/.cache/bazel" \
mlir-tcp:ci \
find . -type f -name "*.cpp" -a ! -name "*execute_test.template.cpp" -o -name "*.h" | xargs clang-format -i
find . -type f -name "*.cpp" -o -name "*.h" | xargs clang-format -i
if [ -n "$(git status --porcelain)" ]; then
echo "Please run 'find . -type f -name "*.cpp" -a ! -name "*execute_test.template.cpp" -o -name "*.h" | xargs clang-format -i' and commit changes."
echo "Please run 'find . -type f -name "*.cpp" -o -name "*.h" | xargs clang-format -i' and commit changes."
exit 1
fi
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ bazel test //...
We welcome contributions to `mlir-tcp`. When authoring new TCP ops with dialect conversions from/to Torch and Linalg, please include lit tests for dialect and conversions, as well as [aot_compile](https://github.com/cruise-automation/mlir-tcp/blob/main/tools/aot/README.md) generated e2e integration tests. Lastly, please finalize your PR with clang-format, black and bazel buildifier to ensure the C++/python sources and BUILD files are formatted consistently:
```shell
# clang-format
find . -type f -name "*.cpp" -a ! -name "*execute_test.template.cpp" -o -name "*.h" | xargs clang-format -i
find . -type f -name "*.cpp" -o -name "*.h" | xargs clang-format -i

# black
black .
Expand Down

0 comments on commit cd59e47

Please sign in to comment.