[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: clang formating
From: |
Gisle Vanem |
Subject: |
Re: clang formating |
Date: |
Wed, 11 Nov 2020 13:19:18 +0100 |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 |
Johannes Demel wrote:
unless the clang-format behavior changed, the function call should be:
clang-format --style=file -i path/to/file.cc
The `--style=file` option tells clang-format to search for a `.clang-format`
file.
Does not work on Windows (using clang-format v10.0.0).
In a .bat-file I have:
clang-format.exe -style=%GR_ROOT%/.clang-format -i %*
No matter how style is; '--style' or '-style', it
says 'Invalid value for -style'.
Only these values works:
LLVM, Google, Chromium, Mozilla, WebKit.
which all are equally ugly.
--
--gv
Re: clang formating, Martin Braun, 2020/11/13