clang-format sources

Hello!

I am looking for the sources of clang-format

Can anybody help?

Get a clang checkout ( http://clang.llvm.org/get_started.html ). The clang-format driver is llvm_root/tools/clang/tools/tools/clang-format/ClangFormat.cpp , the actual formatting code lives in llvm_root/tools/clang/lib/Format (and llvm_root/tools/clang/include/clang/Format). Tests are in llvm_root/tools/clang/unittests/Format.

Hi,

Just to add, more interesting stuff happens in LibFormat
http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Format/

Hello!

I am looking for the sources of clang-format

Can anybody help?

hope this help:

what about typing at command line inside your llvm+clang or clang tree:

find -name clang-format:

if you are more than lucky you will get:
$GITROOT/clang.git/tools/clang-format
or
$GITROOT/llvm.git/tools/clang/tools/clang-format