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

Can't find usable .clang-format #68

Closed anilanar closed 9 years ago

anilanar commented 9 years ago

I put the following .clang-format file in both the project root directory and parent of that folder too.

BasedOnStyle: LLVM

When I try to format, I get the error: Can't find usable .clang-format, using LLVM style.

Using XCode 6.1.1 and latest ClangFormat from Alcatraz.

anilanar commented 9 years ago

Sorry my bad, there was a typo in .clang-format file name.

Guerrix commented 9 years ago

@anilanar I'm having the same issue, but not able to solve it. What exactly did you do? Thanks

anilanar commented 9 years ago

The filename was wrong in my case: I think it was clagn-format instead of clang-format :+1:

Guerrix commented 9 years ago

@anilanar where it this file?.... Sorry bother you with this. :worried:

anilanar commented 9 years ago

Well you need to put it yourself into your project root. In my case it is:

filename: AAKeyboardManager.clang-format

BasedOnStyle: Google
ContinuationIndentWidth: 2
Guerrix commented 9 years ago

@anilanar Thanks a lot!!! it's working now :smile: