[Development] clang-format

Frederik Gladhorn Frederik.Gladhorn at qt.io
Mon Oct 14 16:27:54 CEST 2019

Hi Mitch,

thanks for trying!

On mandag 14. oktober 2019 14:51:41 CEST Mitch Curtis wrote:
> As a side note, I installed it on Ubuntu 18.04.3 with:
> sudo apt-get install clang-format
> but there was no git-clang-format binary, even though
> https://packages.ubuntu.com/search?searchon=contents&keywords=git-clang-for
> mat&mode=exactfilename&suite=disco&arch=any said there should be, so I just
> made a symbolic link to it:
> sudo ln -s /usr/bin/git-clang-format-6.0 /usr/bin/git-clang-format
> Would be great to know if there's a proper way to do this that I'm missing.

git-clang-format should be shipped with clang-format, but of course each linux 
distro does it's own thing, potentially. On (K)ubuntu 19.04 I have:
dpkg -S /usr/bin/git-clang-format
clang-format: /usr/bin/git-clang-format

So there it simply ships with clang-format and things work out of the box.
On macOS it also seems to work after getting clang from homebrew.
And on Windows it may just be working... fingers crossed.

I hope it turns into something useful :)


> > 
> > 
> > _______________________________________________
> > Development mailing list
> > Development at qt-project.org
> > https://lists.qt-project.org/listinfo/development

More information about the Development mailing list