clang-power-tools icon indicating copy to clipboard operation
clang-power-tools copied to clipboard

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

Open IrisPeter opened this issue 1 year ago • 0 comments

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```

IrisPeter avatar Oct 30 '23 18:10 IrisPeter