The files (from clang-3.4.src.tar.gz) ./tools/clang-format/clang-format-bbedit.applescript ./tools/clang-format/clang-format.el ./tools/clang-format/clang-format-sublime.py ./tools/clang-format/ClangFormat.cpp ./tools/clang-format/clang-format-diff.py ./tools/clang-format/clang-format.py ./tools/clang-format/git-clang-format ./tools/clang-format-vs/ClangFormat.sln ./tools/clang-format-vs/ClangFormat/ClangFormat.csproj ./tools/clang-format-vs/ClangFormat/ClangFormat.vsct ./tools/clang-format-vs/ClangFormat/ClangFormatPackage.cs Are provided by the clang team to integrate clang-format into various editors, however the portage ebuild for clang-3.4-r100 does not install them. Reproducible: Always Steps to Reproduce: 1. emerge =sys-devel/clang-3.4-r100 2. updatedb 3. locate clang-format.py Actual Results: No files will be found Expected Results: The provided python script from the tar ball should be extracted in /usr/share/clang/ e.g.
So pretty much there's no standard location where those files should land, correct?
I think /usr/share/clang/ is a sensible option.
I was actually looking for these earlier and since 3.5 has been out for a while and these are still not handled I'd figure I would explain at least the useful files for Linux (and hopes it helps get these included :P) clang-format.el - Emacs clang-format integration clang-format.py - vim clang-format integration clang-format-diff.py - format lines modified by a diff (ex. `git diff -U0 HEAD^ | clang-format-diff.py -p1 -i` will apply formatting between HEAD and HEAD^) clang-format-sublime.py - Sublime Text clang-format integration git-clang-format - git clang-format integration So clang-format-diff.py and git-clang-format need to be in your PATH while the rest are probably better off in /usr/share/clang or something. The rest of the files shouldn't be needed. (OSX and VS stuff)
Just rechecked with 3.7.0, and I have (with llvm[clang]): % qlist llvm|grep clang-format /usr/share/clang/clang-format-sublime.py /usr/share/clang/clang-format-bbedit.applescript /usr/share/clang/clang-format.py /usr/share/clang/clang-format.el /usr/share/clang/clang-format-diff.py /usr/bin/clang-format /usr/bin/git-clang-format So looks like we are fine here now :)