mirror of
https://github.com/ceph/ceph
synced 2025-03-25 11:48:05 +00:00
CodingStyle: allow #pragma once
Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
parent
69a1715a74
commit
2c45dc6fe7
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user