commit 21fa3f3f9451c4be0e5882f08f0199ba451af8d6
Author: Richard Kimberly Heck <[email protected]>
Date:   Mon Feb 15 09:55:33 2021 -0500

    Update coding rules
---
 lib/doc/Development.lyx |   42 +++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 41 insertions(+), 1 deletions(-)

diff --git a/lib/doc/Development.lyx b/lib/doc/Development.lyx
index 46f253f..ef61adb 100644
--- a/lib/doc/Development.lyx
+++ b/lib/doc/Development.lyx
@@ -1,5 +1,5 @@
 #LyX 2.4 created this file. For more info see https://www.lyx.org/
-\lyxformat 601
+\lyxformat 606
 \begin_document
 \begin_header
 \save_transient_properties true
@@ -5899,6 +5899,46 @@ default: // not needed and would shadow a wrong use of 
Foo
 
 \end_layout
 
+\begin_layout Itemize
+Use default initialization such as
+\begin_inset listings
+inline false
+status open
+
+\begin_layout Plain Layout
+
+int i = 0;
+\end_layout
+
+\begin_layout Plain Layout
+
+Class * ptr = nullptr;
+\end_layout
+
+\end_inset
+
+rather than brace initialization:
+\begin_inset listings
+inline false
+status open
+
+\begin_layout Plain Layout
+
+int i {};
+\end_layout
+
+\begin_layout Plain Layout
+
+Class * ptr {};
+\end_layout
+
+\end_inset
+
+for PODs.
+ Use brace initialization only for more complex data structures.
+ 
+\end_layout
+
 \begin_layout Section
 Exceptions
 \begin_inset CommandInset label
-- 
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to