https://github.com/motine/cppstylelineup
a comparison of common C++ style guides
https://github.com/motine/cppstylelineup
Last synced: about 1 year ago
JSON representation
a comparison of common C++ style guides
- Host: GitHub
- URL: https://github.com/motine/cppstylelineup
- Owner: motine
- Created: 2016-02-11T20:02:43.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2024-03-28T12:52:19.000Z (about 2 years ago)
- Last Synced: 2024-11-19T18:46:13.762Z (over 1 year ago)
- Language: C++
- Size: 17.6 KB
- Stars: 241
- Watchers: 6
- Forks: 18
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# C++ Style Guide Lineup
This is a comparison of the following coding styles:
- [LLVM](http://llvm.org/docs/CodingStandards.html)
- [Google](https://google.github.io/styleguide/cppguide.html)
- [Chromium](http://www.chromium.org/developers/coding-style)
- [Mozilla](https://firefox-source-docs.mozilla.org/code-quality/coding-style/coding_style_cpp.html)
- [WebKit](https://webkit.org/code-style-guidelines/)
- [Microsoft](https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-code-style-settings-reference?view=vs-2019)
- [GNU](https://www.gnu.org/prep/standards/standards.html)
Why those seven? Because [clang-format](http://clang.llvm.org/docs/ClangFormat.html) supports them as base styles.
**This comparison only looks at formatting issues.**
## Compile and format
```bash
g++ llvm.cpp -o llvm
clang-format -i --style=LLVM llvm.cpp # style keys: LLVM, Google, Chromium, Mozilla, WebKit
```
## Contribute
Please open an issue or create a merge request if you find a mistake.