[cfe-dev] git-clang-format version

Andrey Prokopenko via cfe-dev cfe-dev at lists.llvm.org
Sat Dec 24 22:59:09 PST 2016


Hi list,

Is there a way to determine a version of clang-format from running
git-clang-format?

Some background: I have a .clang_format that works for a specific
clang-format version. I'd also like to be able to use git-clang-format but
I would need a test to determine whether I should run it. Ideally, there
would be something like

  $ git-clang-format --version

which would be equivalent to

  $ clang-format --version

but I didn't see anything like that. My only workaround at this point is
start querying all different variant of clang-format executables in $PATH.

Thank you.

-Andrey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20161225/508bfe8b/attachment.html>


More information about the cfe-dev mailing list