Caphyon / clang-power-tools

Bringing clang-tidy magic to Visual Studio C++ developers.
http://www.clangpowertools.com
Apache License 2.0
472 stars 57 forks source link

Clang-Format Configurator - fails to load .clang-format files compatible with default style outputs #1331

Open IrisPeter opened 8 months ago

IrisPeter commented 8 months ago

In https://clangpowertools.com/blog/getting-started-with-clang-format-style-options.html you describe how to create default configs.

If I generate a file for each of the available styles from the command line then I should be able to import them into the configurator however it chokes on them.

You give the following example:

clang-format.exe -style=llvm -dump-config > .clang-format

The outputted file fails to be decodable

I've tried all the different default presets of LLVM, GNU, Google, Chromium, Microsoft, Mozilla, WebKit and they all fail in the same way


AlignConsecutiveAssignments: { { Enabled, false }, { AcrossEmptyLines, false }, { AcrossComments, false }, { AlignCompound, false }, { PadOperators, true } }
                               ^
Error reading C:\Users\someuser\AppData\Roaming\ClangFormatEditor\Format\17ff79ef-a71d-4e0f-acb0-8b2e5f4ade01\.clang-format: invalid argument```