From 1ea2d6c2abdc286a25e0f804113d30b2afeb3e71 Mon Sep 17 00:00:00 2001 From: Remy Prechelt <prechelt@hawaii.edu> Date: Thu, 30 Jul 2020 09:29:56 +0200 Subject: [PATCH] Change include guards to #pragma's. --- CONTRIBUTING.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index b1b83aea7..caf04155d 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -64,10 +64,8 @@ While `clang-format` does the structural formatting, we still need to agree on n can only provide definitions for a _single_ namespace. It is one main purpose of namespaces to structure the location of header files. - - Each header file uses an include protection that includes at - least the namespace name, and header file name, thus, `#ifndef - __include_geometry_Point_h__` or `#ifndef __geometry_Point_h__`, - or similar are acceptable. + - Each header file must include a `#pragma once` immediately below + the copyright statement. - Header files should always be included with `<..>`, thus, `#include <corsika/geometry/Point.h>` since the build system will always provide the correct include directives (and files -- GitLab