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

Use LLVM as a base for loading a custom style to mimic CLI clang-format's behavior #45

Merged
merged 1 commit into from
Jul 15, 2020

Conversation

kkaefer
Copy link
Member

@kkaefer kkaefer commented Jul 15, 2020

It looks like clang-format loads the LLVM style as a base before applying the custom .clang-format file to it. So far, we've started with the empty (NoStyle). This breaks with .clang-format files that do not contain a BasedOnStyle rule, e.g. the one the Blender project uses if the same file is used with the CLI version of clang-format.

Fixes #44 reported by @anktkr.

@kkaefer kkaefer merged commit c6a7471 into master Jul 15, 2020
@kkaefer kkaefer deleted the custom-style-based-on-llvm branch July 15, 2020 16:39
@kkaefer kkaefer restored the custom-style-based-on-llvm branch July 15, 2020 16:55
@kkaefer kkaefer deleted the custom-style-based-on-llvm branch July 15, 2020 16:56
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

Successfully merging this pull request may close these issues.

No formatting happens with custom .clang-format style
1 participant