sy6sy2 / xbmc

Kodi is an award-winning free and open source home theater/media center software and entertainment hub for digital media. With its beautiful interface and powerful skinning engine, it's available for Android, BSD, Linux, macOS, iOS and Windows.
https://kodi.tv/
Other
6 stars 1 forks source link

run clang-format on all tvOS sources #51

Open kambala-decapitator opened 5 years ago

kambala-decapitator commented 5 years ago

but it doesn't work out of the box. To fix, comment line Language: Cpp in .clang-format. The actual run command: clang-format -i <files>

Probably the easiest is to install clang-format via Homebrew: brew install clang-format

sy6sy2 commented 5 years ago

clang-format works with Objective-C files?

kambala-decapitator commented 5 years ago

yes, that's what the first paragraph is for :)

sy6sy2 commented 5 years ago

Ok ;-) I will do it on the PR branch. Thank you

fuzzard commented 5 years ago

For the PR, any new files the clang changes should be made in the commit they are added, any existing files, do it a separate clang-format commit

fuzzard commented 5 years ago

Have started this on https://github.com/fuzzard/xbmc/commits/master_darwin-embedded-ATV Have run clang-format on xbmc/windowing/tvos/ and xbmc/platform/darwin/tvos/

Will still need to run across any code we touch in other "generic" source files.