[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [GNUnet-developers] clang formatting discussion (documenting it)

From: ng0
Subject: Re: [GNUnet-developers] clang formatting discussion (documenting it)
Date: Thu, 25 Apr 2019 09:27:29 +0000

address@hidden transcribed 1.0K bytes:
> One thing I found out today, or maybe I'm wrong about it, is
> that clang has no way to ever do KNF style format enforcing.
> Doesn't matter for us, but it sucks. Apparently clang-format
> just looks at tokens and not the AST.
> Anyway, I've built llvm from git yesterday and at least running
> clang-format was okay.
> I will document two ways to do this, static and dynamic.
> The summary is as described on the website:
> git clone
> cd llvm-project
> mkdir build
> cd build
> # if dynamic build:
> cmake -DLLVM_ENABLE_PROJECTS=clang -G "Unix Makefiles" ../llvm
> make clang-format
> # if static build:
> Makefiles" ../llvm
> make clang-format
> Unless I got it wrong somewhere, static build is still running, dynamic build 
> worked.
> This is for NetBSD 8.99.37 userland but should work everywhere else.

Furthermore I think I should work in the ways I found how to git blame files
which were formated this way. It's easier than one thinks.

Any additions?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]