Open daljit46 opened 6 months ago
Would you suggest renaming the wrapper #ifndef
's, or switch to using #pragma once
?
My preference would be to use #pragma once
because I think header guards are ugly. While #pragma once
is not strictly in the standard, it's virtually supported by all compilers in existence.
There are many instances in our codebase (e.g. pretty much all include guards) where variables are declared beginning with a double underscore. As pointed out by
clang-tidy
(bugprone-reserved-identifier), this results in undefined behaviour since the C++ standard reserves all identifiers beginning with a double underscore.