├── .gitattributes ├── .gitignore ├── LICENSE ├── Philosophy.pdf ├── Philosophy.png └── README.md /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Prerequisites 2 | *.d 3 | 4 | # Compiled Object files 5 | *.slo 6 | *.lo 7 | *.o 8 | *.obj 9 | 10 | # Precompiled Headers 11 | *.gch 12 | *.pch 13 | 14 | # Compiled Dynamic libraries 15 | *.so 16 | *.dylib 17 | *.dll 18 | 19 | # Fortran module files 20 | *.mod 21 | *.smod 22 | 23 | # Compiled Static libraries 24 | *.lai 25 | *.la 26 | *.a 27 | *.lib 28 | 29 | # Executables 30 | *.exe 31 | *.out 32 | *.app 33 | .DS_Store 34 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2022 Ming 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /Philosophy.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ufoym/cpp-core-guidelines-cheatsheet/f5c65ad9eac35b909cce6590ccd216cb1b5ca183/Philosophy.pdf -------------------------------------------------------------------------------- /Philosophy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ufoym/cpp-core-guidelines-cheatsheet/f5c65ad9eac35b909cce6590ccd216cb1b5ca183/Philosophy.png -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # cpp-core-guidelines-cheatsheet 2 | Cheatsheet for [the C++ core guidelines](https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines) (by Bjarne Stroustrup & Herb Sutter), including a set of tried-and-true guidelines, rules, and best practices about coding in C++. 3 | 4 | 5 | - [x] P: Philosophy 6 | - [ ] I: Interfaces 7 | - [ ] F: Functions 8 | - [ ] C: Classes and class hierarchies 9 | - [ ] Enum: Enumerations 10 | - [ ] R: Resource management 11 | - [ ] ES: Expressions and statements 12 | - [ ] Per: Performance 13 | - [ ] CP: Concurrency and parallelism 14 | - [ ] E: Error handling 15 | - [ ] Con: Constants and immutability 16 | - [ ] T: Templates and generic programming 17 | - [ ] CPL: C-style programming 18 | - [ ] SF: Source files 19 | - [ ] SL: The Standard Library 20 | 21 | --- 22 | 23 | ### P: Philosophy 24 | - [[Download PDF]](Philosophy.pdf) 25 | - [[Download PNG Image]](Philosophy.png) 26 | 27 | ![Philosophy](Philosophy.png) 28 | --------------------------------------------------------------------------------