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

Is a noop. Returns (clang-format: success) in mini buffer #8

Open
appetrosyan opened this issue Jan 28, 2020 · 5 comments
Open

Is a noop. Returns (clang-format: success) in mini buffer #8

appetrosyan opened this issue Jan 28, 2020 · 5 comments

Comments

@appetrosyan
Copy link

Steps to reproduce open any file with extension .cpp. and run clang-format-buffer.

  • expected behaviour:
    file changes

  • actual behaviour
    noop.

@Paethon
Copy link

Paethon commented Feb 16, 2020

Yes, same for me. Worked for years, but currently it seems to be broken (just doesn't do anything)

@hojoon-lee
Copy link

hojoon-lee commented Mar 31, 2020

I had the same issue, and managed to fix the problem by replacing clang-format.el from melpa with the one in the newest clang installation.

@philipp-classen
Copy link

philipp-classen commented May 7, 2020

Finally, I figured it out. It only works if you have a .clang-format file:

https://emacs.stackexchange.com/a/55650/8261

Otherwise, it will use the fallback style. I changed it now to:

Clang Format Fallback Style: llvm

By default, it is none, which explains why nothing changed.

@haifenghan
Copy link

Thanks @philipp-classen , i-t works for me.

@haifenghan
Copy link

Copy from the stackexchange:

(*) To generate a .clang-format file, you can use:

clang-format -style=llvm -dump-config > .clang-format

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

5 participants