johnmcfarlane / unformat

generates .clang-format file from example codebase
Apache License 2.0
316 stars 22 forks source link

BasedOnStyle setting causes error message #7

Closed anntzer closed 7 years ago

anntzer commented 7 years ago

A BasedOnStyle entry in .clang-format leads to the message

Unrecognized setting, 'BasedOnStyle:Chromium', in .clang-format configuration.
johnmcfarlane commented 7 years ago

Can I ask what version of clang-format you're using?

anntzer commented 7 years ago

4.0.1 from Arch Linux repository.

johnmcfarlane commented 7 years ago

Problem was that when you run clang-format -dump-config it produces a config file with BasedOnStyle commented out so I never thought to add it. Should be fixed now. Thanks.