| Summary: | sys-devel/clang-3.4-r100 does not install clang-format files | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Sujeet Akula <sujeet.akula> |
| Component: | [OLD] Core system | Assignee: | Gentoo Clang Team (OBSOLETE) <clang+obsolete> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | AMD64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
Sujeet Akula
2014-03-01 18:51:08 UTC
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 :) |