Hello,

I worked on adding a similar feature some time back :
https://reviews.llvm.org/D50147
It supports specifying styles by absolute file name as well as lookup of a
style by name in various locations (like ~/.local/share/clang-format or
/usr/share/clang-format), allowing to install styles on the machine and use
them similarly to "integrated" styles : e.g. reference them in BasedOnStyle
tag or specify them via the --style parameter...

Unfortunately there was no consensus on this approach, and I did not get
the time yet to finalize something that could be integrated. But as long as
you are ready to recompile clang-format, it should work fine.
Best regards,

-- 
Francois

On Thu, Sep 10, 2020 at 2:28 PM via cfe-commits <cfe-commits@lists.llvm.org>
wrote:

> Hi all,
>
>
>
>
>
> I have recently started to work with Clang-Format and Clang-Tidy tools as
> part of a methodology project in my company.
>
> We want to have a uniform style and format in the entire department and
> for that we want to use the two tools to automatically keep this in order.
> For this we need to be able to store the config files somewhere available
> for everybody and for any project.
>
>
>
> In my research, I did not find the possibility to give an Absolute Path to
> the config files of the tools.
>
>
>
> This is why I added the feature myself and recompiled the tools. Could
> some body help me with the integration of the feature in the community?
>
>
>
>
>
> Best regards,
>
> Cezar
> _______________________________________________
> cfe-commits mailing list
> cfe-commits@lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
>
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to