You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The clang compiler has a standalone tool called "clang-format" that automatically formats C++ code according to user-specified options. The benefit is that this ensures consistency across a code base and eliminates the need for developers to think about formats. I've used this in a few different projects, and it works really well. Some code editors can automatically format code on save (e.g. VS Code, Atom) or it can be applied manually.
@david-montiel-t what do you think of moving PRISMS-PF to this? If you want, I'd be happy to make a style file and do the initial reformat of all of the files.
The text was updated successfully, but these errors were encountered:
The clang compiler has a standalone tool called "clang-format" that automatically formats C++ code according to user-specified options. The benefit is that this ensures consistency across a code base and eliminates the need for developers to think about formats. I've used this in a few different projects, and it works really well. Some code editors can automatically format code on save (e.g. VS Code, Atom) or it can be applied manually.
Here's some info on how to use it:
https://www.clangpowertools.com/blog/getting-started-with-clang-format-style-options.html
To do this, the best way is to add a ".clangf-ormat" file in the root directory of the repository. An example of one is here:
https://github.com/adamantine-sim/adamantine/blob/master/.clang-format
@david-montiel-t what do you think of moving PRISMS-PF to this? If you want, I'd be happy to make a style file and do the initial reformat of all of the files.
The text was updated successfully, but these errors were encountered: