Skip to content

Added Clang formatting rules#194

Merged
JF002 merged 1 commit intoInfiniTimeOrg:developfrom
Avamander:patch-6
Jan 31, 2021
Merged

Added Clang formatting rules#194
JF002 merged 1 commit intoInfiniTimeOrg:developfrom
Avamander:patch-6

Conversation

@Avamander
Copy link
Copy Markdown
Collaborator

This PR adds a clang-format configuration file that will help unify formatting across different editors.

Opens the possibility of a pre-commit hook that formats everything properly.

If this is merged, I can also make a PR to force using this instead of CLion's own formatter.

@JF002
Copy link
Copy Markdown
Collaborator

JF002 commented Jan 31, 2021

I've never used clang-format. How do you use it?

@Avamander
Copy link
Copy Markdown
Collaborator Author

Avamander commented Jan 31, 2021

@JF002 You have CLion it's easy, turn it on in CLion's settings under Code Style and then press format.

@Avamander
Copy link
Copy Markdown
Collaborator Author

Screenshot displaying the settings' location

@JF002 JF002 merged commit 9810f58 into InfiniTimeOrg:develop Jan 31, 2021
@Avamander Avamander deleted the patch-6 branch May 1, 2021 17:59
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.

2 participants