(original) (raw)
diff --git a/docs/CodingStandards.rst b/docs/CodingStandards.rst index fdcc32e..ede6137 100644 --- a/docs/CodingStandards.rst +++ b/docs/CodingStandards.rst @@ -563,23 +563,6 @@ That said, LLVM unfortunately does contain static constructors. It would be a constructors from LLVM, and then enable the ``-Wglobal-constructors`` warning flag (when building with Clang) to ensure we do not regress in the future. -Use of ``class`` and ``struct`` Keywords -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -In C++, the ``class`` and ``struct`` keywords can be used almost -interchangeably. The only difference is when they are used to declare a class: -``class`` makes all members private by default while ``struct`` makes all -members public by default. - -Unfortunately, not all compilers follow the rules and some will generate -different symbols based on whether ``class`` or ``struct`` was used to declare -the symbol. This can lead to problems at link time. - -So, the rule for LLVM is to always use the ``class`` keyword, unless **all** -members are public and the type is a C++ `POD -`_ type, in which case -``struct`` is allowed. - Style Issues ============