clang-format Emacs problem

All, I have checked out and compiled the latest SVN version of clang (see version info below) and I installed it into /usr/local so it will not conflict with the standard clang version shipping with Mac OS 10.9. I moved clang-format.el into my emacs load path but when I try to run the commands clang-format-region or clang-format-buffer, my Emacs buffer is blanked out and I receive the message “End of file during parsing” in the status line at the bottom. I have verified the file is valid C++ and if I run the clang-format binary from the command line then it works as expected. Can anyone help me out?

Version info:

clang version 3.5 (trunk 195639)
Target: x86_64-apple-darwin13.0.2
Thread model: posix

Luke Mauldin <luke.mauldin@talkfusion.com> writes:

All, I have checked out and compiled the latest SVN version of clang (see
version info below) and I installed it into /usr/local so it will not conflict
with the standard clang version shipping with Mac OS 10.9. I moved
clang-format.el into my emacs load path but when I try to run the commands
clang-format-region or clang-format-buffer, my Emacs buffer is blanked out and I
receive the message “End of file during parsing” in the status line at the
bottom. I have verified the file is valid C++ and if I run the clang-format
binary from the command line then it works as expected. Can anyone help me out?

Version info:
clang version 3.5 (trunk 195639)
Target: x86_64-apple-darwin13.0.2
Thread model: posix

I once had similar issues, it seems that clang-format.el failed to get
the correct executable. So I recommend you check

$ which clang-format-3.5

and inside Emacs, check
(executable-find "clang-format-3.5")

You should get the same result.