Skip to content

Conversation

@g-easy
Copy link
Contributor

@g-easy g-easy commented Dec 17, 2019

Uses clang-format, cmake-format, and buildifier.

Uses clang-format, cmake-format, and buildifier.
@g-easy
Copy link
Contributor Author

g-easy commented Dec 17, 2019

Ryan, can you try this script on your PR #13?

Especially cmake-format and buildifier. :)

@g-easy
Copy link
Contributor Author

g-easy commented Dec 17, 2019

@maxgolov what do you think? This kind of duplicates git-cl.sh - how should we resolve this?

In particular, I'd like something more automated than git cl format specify_every_changed_file.cc

@rnburn
Copy link
Contributor

rnburn commented Dec 17, 2019

I got this error when I ran on os x

$ ./tools/format.sh
sed: 1: "./tools/setup-buildtool ...": invalid command code .

@g-easy
Copy link
Contributor Author

g-easy commented Dec 17, 2019

Looks like BSD vs GNU sed.

Also if clang-format-8 doesn't exist, fall back to clang-format.
@g-easy
Copy link
Contributor Author

g-easy commented Dec 17, 2019

Please try again. :)

@rnburn
Copy link
Contributor

rnburn commented Dec 17, 2019

Worked!

@g-easy
Copy link
Contributor Author

g-easy commented Dec 18, 2019

Thank you for your patience, and testing this on OSX which I didn't have access to.

I think I need one more approval to merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants