Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't find usable .clang-format #68

Closed
anilanar opened this issue Feb 22, 2015 · 6 comments
Closed

Can't find usable .clang-format #68

anilanar opened this issue Feb 22, 2015 · 6 comments

Comments

@anilanar
Copy link

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
Copy link
Author

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

@Guerrix
Copy link

Guerrix commented May 18, 2015

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

@anilanar
Copy link
Author

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

@Guerrix
Copy link

Guerrix commented May 18, 2015

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

@anilanar
Copy link
Author

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
Copy link

Guerrix commented May 18, 2015

@anilanar Thanks a lot!!! it's working now 😄

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

No branches or pull requests

2 participants