Skip to content

Commit

Permalink
Format all cmake files. (pytorch#3498)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: pytorch#3498

Let's add a `.cmake-format.yaml` and run it over all our cmake files:
`find . \( -name 'CMakeLists.txt' -o -name '*.cmake' \) -exec cmake-format {} -i \;`

`dangle_parens` is needed to put the closing parenthesis on a new line, since we've been doing that most of the time manually.

Reviewed By: dbort

Differential Revision: D56896610

fbshipit-source-id: b48a818cf44c182df7c8461dd10d62cdc01447a9
  • Loading branch information
shoumikhin authored and facebook-github-bot committed May 3, 2024
1 parent f3874e2 commit d0535fa
Show file tree
Hide file tree
Showing 47 changed files with 1,427 additions and 1,203 deletions.
2 changes: 2 additions & 0 deletions .cmake-format.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
first_comment_is_literal: true
dangle_parens: true
Loading

0 comments on commit d0535fa

Please sign in to comment.