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 287 forks source link

XCode 9 support #129

Open iharkh opened 7 years ago

iharkh commented 7 years ago

Please update this plugin to support XCode 9. I resigned XCode 9, ClangFormat plugin loaded, its menu appeared, but it's not working - nothing happens when I try to format code. Maybe it's because of new editor in XCode 9?

jobsLee-lcj commented 7 years ago

Me too.There is something different in Xcode9

leg10nMX commented 7 years ago

It's not working for me either but on 8.3.3, text flashes but no format is applied.

xilin commented 7 years ago

Yeah, it cannot work in Xcode 9

DemonJ1992 commented 7 years ago

how can i fix this

travisjeffery commented 7 years ago

Does someone want to make a PR adding support for Xcode 9?

SoolyChristy commented 6 years ago

come one man. we all need

p0fi commented 6 years ago

Yeah, go please update it to support Xcode9 :(

mdzoba commented 6 years ago

XCode 9, please!

rosskidson commented 6 years ago

+1

visorz commented 6 years ago

I updated from Xcode 7 to 9.2 and as suggested on the front page of this github project I unsigned my Xcode with update_xcode_plugins script. Alcatraz works again, all plug ins work again except this ClangFormat plugin. Unfortunately this single plug is the most important one for me as it increases my productivity a lot. Without it I am feeling like writing code with broken fingers.

I now have to care about every single d*** white space.

Can you please answer why ClangFormat is not working although I unsigned Xcode successfully?

xilin commented 6 years ago

I change to use https://github.com/mapbox/XcodeClangFormat

dollar2048 commented 6 years ago

@iharkh why was this issue closed? it is still not working.

iharkh commented 6 years ago

As @xilin wrote there is a good alternative which works: https://github.com/mapbox/XcodeClangFormat

dollar2048 commented 6 years ago

@iharkh The alternative is not so good as this one. What is the point to close the bug if it is still reproducible? This issue will be created again later by somebody else.

iharkh commented 6 years ago

@dollar2048 ok, I understand your point of view. Reopen it.

sean-parent commented 6 years ago

I've written an alternative, works with latest Xcode and doesn't require building a plugin. https://github.com/sean-parent/tools/

V5zhou commented 5 years ago

我重写了这个工具,目前xcode10可使用,git地址:https://github.com/V5zhou/ZZClang-format.git ,双击一键安装,后续我会补充个使用教程。