diff --git a/CODING_GUIDELINES.md b/CODING_GUIDELINES.md index 5f5cc6572..503d3d46e 100644 --- a/CODING_GUIDELINES.md +++ b/CODING_GUIDELINES.md @@ -240,7 +240,23 @@ Example: ``` -### 9. Misc. ### +### 9. Include guard. ### +`#pragma once` should be used instead of "include guard" in new code: +```c++ +// examplewidget.h + +#pragma once + +#include + +class ExampleWidget : public QWidget +{ + // (some code omitted) +}; + +``` + +### 10. Misc. ### * Line breaks for long lines with operation: