ClangFormat-Xcode icon indicating copy to clipboard operation
ClangFormat-Xcode copied to clipboard

add kill timeout after 10 seconds

Open delackner opened this issue 11 years ago • 3 comments

delackner avatar May 16 '14 02:05 delackner

Sadly, sometimes clang-format can't handle certain objective-c files and never exits. This helps deal with that. I have some pretty long files, and nothing ever takes more than 2-3 seconds to format on my weak 2011 macbook air, so I set a conservative timeout much longer than that.

delackner avatar May 16 '14 03:05 delackner

BTW I found that the current build of clang-format (HEAD, so sure not so stable) does this with fewer files than the binary you have bundled. Ever a moving target, not sure what to do about that one, but for now I just copy my own clang-format into the plugin bundle.

delackner avatar May 16 '14 03:05 delackner

I think @travisjeffery currently bundles a customised version of clang-format that includes my patches to support sane method formatting. I uploaded a new build of customised HEAD earlier in the week, so maybe that can be pulled in?

tonyarnold avatar May 16 '14 03:05 tonyarnold