[Top][All Lists]

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

Re: clang formating

From: Ron Economos
Subject: Re: clang formating
Date: Wed, 11 Nov 2020 02:47:57 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0

I forgot to mention, you have to run clang-format-10 in tree. It gets the formatting rules from the file .clang-format in the top level directory.


On 11/11/20 02:41, Ron Economos wrote:
On Ubuntu 20.04:

sudo apt-get install clang-format-10

Then update your changed files.

clang-format-10 -i sourcefile.cc

The -i formats the file in place. Otherwise, output is to stdout.


On 11/11/20 02:20, Volker Schroer wrote:

I just made a pr and got the message that the pr formatting check
failed. But looking at the output I don't understand, what's wrong.

Even more I'd like to know how I can do the formatting check locally.
The coding guide in the wiki is empty.

Thanks in advance

-- Volker

reply via email to

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