C++ Code Style
On this page
Our coding guidelines are based on the Collaborative Collection of C++ Best Practices.
We provide detailed extensions to the best practice, agreed on by the NebulaStream team, in the following subsections:
- Code Format Style
- General Guidelines
- Logging in NebulaStream
- Consider Threadability
- Consider Performance
- Consider Safety
Clang Format
We use clang-format to ensure a consistent code styling format.
The style is defined in .clang-format
configuration file in the NebulaStream main repository.
You can find other styling parameters in the documentation.
💡 The clang format configurator helps you find the correct settings.
Further Resources on C++ Coding
- To get the current and older drafts you should visit the Standard for Programming Language C++.
- If you know the exact document you are looking for then you should visit the WG21 redirect service.
- If you want to get more insights using small code snippets, check out Godbolt and CppInsights