Skip to content

Commit

Permalink
CodingStyle: allow #pragma once
Browse files Browse the repository at this point in the history
Signed-off-by: Sage Weil <[email protected]>
  • Loading branch information
liewegas committed May 23, 2018
1 parent 69a1715 commit 2c45dc6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CodingStyle
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 2c45dc6

Please sign in to comment.