[cfe-dev] Coding Style

Hubert Tong via cfe-dev cfe-dev at lists.llvm.org
Tue Jun 25 20:34:06 PDT 2019


On Tue, Jun 25, 2019 at 11:12 PM Pardis Pashakhanloo via cfe-dev <
cfe-dev at lists.llvm.org> wrote:

> Hi all,
>
> What is the coding style that clang developers (
> https://github.com/llvm-mirror/clang) use? When I use ".clang-format" to
> reformat the code that is in this repo, cpp files change. Is there any
> other clang-format config that is used in this repo?
>
That the code does not change when `clang-format` is applied using the LLVM
style (`--style=llvm`) is not an actual requirement the last I checked. Put
another way, `clang-format` output is not the only valid expression of the
LLVM style. Instead of applying `clang-format` to the entire file, try
using `clang/tools/clang-format/git-clang-format`.


>
> Best,
> Pardis
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20190625/e4ac0e69/attachment.html>


More information about the cfe-dev mailing list