]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
CodingStyle: allow #pragma once
authorSage Weil <sage@redhat.com>
Wed, 23 May 2018 11:42:09 +0000 (06:42 -0500)
committerSage Weil <sage@redhat.com>
Wed, 23 May 2018 11:42:09 +0000 (06:42 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
CodingStyle

index 7c9035e65e03bd58e11181de619a9d0c3ee1ac58..7e9621e27e8d28a926e8afb55bd77a0a3ea449b2 100644 (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,