Wednesday, November 11, 2020

Re: clang formating

Den 11.11.2020 13.28, skrev Johannes Demel:
> Hi Gisle,
>
> `file` is not a placeholder but the literal argument. `--style=file` tells `clang-format` to search for a
> `.clang-format` file in the current and parent folders.

Oh. But deleting the '%GR_ROOT/.clang-format' and doing a:
clang-format.exe -style=file -i file_descriptor_sink_impl.cc

in '%GR_ROOT/gr-blocks/lib', works too. So it traverses multiple
directories under my %GR_ROOT? Adding a '--verbose' gives no
extra clue what this tool does and where it finds '.clang-format'.

--
--gv

No comments:

Post a Comment