CodingStyle: allow #pragma once

Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
Sage Weil 2018-05-23 06:42:09 -05:00
parent 69a1715a74
commit 2c45dc6fe7

View File

@ -101,7 +101,11 @@ by section.
if (foo) { bar; } // definitely no
* Header Files -> The `#define` Guard:
`#pragma once` is allowed for simplicity at the expense of
portability sinces `#pragma once` is wildly supported and is known
to work on GCC and Clang.
The following guidelines have not been followed in the legacy code,