travisjeffery / ClangFormat-Xcode

Xcode plug-in to to use clang-format from in Xcode and consistently format your code with Clang
https://twitter.com/travisjeffery
MIT License
2.89k stars 288 forks source link

Allow the user to manually specify the .clang-format file to use. #18

Closed Goles closed 10 years ago

Goles commented 10 years ago

This can lead to a lot of confusion, right now I don't even have a .clang_format file in my project, and if I choose Edit > Clang Format > File and then apply clang format to my file, it's still getting formatted somehow.

I don't have the minor idea of what file is Clang Format using to do this, so a way to manually specifying a File would be fantastic.

travisjeffery commented 10 years ago

It defaults to LLVM I think. Having another feature to configure which file to use makes things more complex. Just add a file with the name .clang-format.