Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 503148 - sys-devel/clang-3.4-r100 does not install clang-format files
Summary: sys-devel/clang-3.4-r100 does not install clang-format files
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo Clang Team (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-01 18:51 UTC by Sujeet Akula
Modified: 2015-09-02 18:07 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sujeet Akula 2014-03-01 18:51:08 UTC
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.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-03-02 14:58:20 UTC
So pretty much there's no standard location where those files should land, correct?
Comment 2 Sujeet Akula 2014-03-05 00:40:43 UTC
I think /usr/share/clang/ is a sensible option.
Comment 3 Michael Cook 2014-12-30 04:56:17 UTC
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)
Comment 4 Bernard Cafarelli gentoo-dev 2015-09-02 18:07:18 UTC
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 :)