Commit 9c980aa1 authored by Dominik Charousset's avatar Dominik Charousset

Update coding guidelines (use pragma once)

parent bd322d78
...@@ -71,8 +71,7 @@ Example for the Impatient ...@@ -71,8 +71,7 @@ Example for the Impatient
```cpp ```cpp
// libcaf_example/caf/example/my_class.hpp // libcaf_example/caf/example/my_class.hpp
#ifndef CAF_EXAMPLE_MY_CLASS_HPP #pragma once
#define CAF_EXAMPLE_MY_CLASS_HPP
#include <string> #include <string>
...@@ -118,8 +117,6 @@ private: ...@@ -118,8 +117,6 @@ private:
} // namespace example } // namespace example
} // namespace caf } // namespace caf
#endif // CAF_EXAMPLE_MY_CLASS_HPP
``` ```
```cpp ```cpp
...@@ -329,8 +326,7 @@ Headers ...@@ -329,8 +326,7 @@ Headers
is located at `libcaf_example/caf/example/my_class.hpp` and the is located at `libcaf_example/caf/example/my_class.hpp` and the
source file at `libcaf_example/src/my_class.cpp`. source file at `libcaf_example/src/my_class.cpp`.
- All header files should use `#define` guards to prevent multiple inclusion. - All header files use `#pragma once` to prevent multiple inclusion.
The symbol name is `<RELATIVE>_<PATH>_<TO>_<FILE>_HPP`.
- Do not `#include` when a forward declaration suffices. - Do not `#include` when a forward declaration suffices.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment