Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
IrisPeter opened this issue Oct 30, 2023 · 0 comments

Comments

@IrisPeter
Copy link

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```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant