Skip to content

Add .clang-format file and reformat all c++ files#38

Open
dteague wants to merge 1 commit intokdlong:masterfrom
dteague:clang_format
Open

Add .clang-format file and reformat all c++ files#38
dteague wants to merge 1 commit intokdlong:masterfrom
dteague:clang_format

Conversation

@dteague
Copy link
Contributor

@dteague dteague commented May 7, 2020

Ended up picking Google style but setting spaces for indent to 4. To format, you simply do

clang-format -i <file>

The .clang-format file holds are of the styling information. If we want to change the style to suit our preferences, its fairly easy, just pipe all c++ files into the clang-format command and there is plenty of documentation meaning finding these format options should in principle be easy.

If you see any style that looks glaringly bad, I can change and reformat

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.

1 participant