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

Fix .clang-format Align #85

Closed
wants to merge 1 commit into from

Conversation

Projects
None yet
2 participants
@VinceBackpack
Copy link

commented Nov 29, 2018

Fix AlignAfterOpenBracket and AllowShortFunctionsOnASingleLine format errors from .clang-format

@plibither8

This comment has been minimized.

Copy link
Owner

commented Nov 29, 2018

Hi!

Thank you for raising this issue. Although @cawvyoct might be able to shed more light onto this, I applied the changes you suggested in the .clang-format file. It errored as it did not recognise the key:

YAML:3:35: error: unknown key 'AlignAfterOpenBracket(BAS_Align)'
AlignAfterOpenBracket(BAS_Align): 'true'
                                  ^~~~~~

This might be an issue related to the VSCode extension itself, and not the clang-format configuration. The way I have installed clang-format (and what works for me) is using npm. If you do have Node and npm installed, run npm install --global clang-format. It should work without an error then :)

@plibither8 plibither8 closed this Dec 16, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.