From edcfaa888de1c20aab75e40d890bb92dacc9b185 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Sat, 28 Sep 2019 11:13:30 -0400 Subject: [PATCH] Commentary --- internals.pod | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/internals.pod b/internals.pod index 81490329d..9fa4775b0 100644 --- a/internals.pod +++ b/internals.pod @@ -400,17 +400,29 @@ changed; if clear, checking those signals for changes may be skipped. =head2 Indentation style -To match the indentation of Verilator C++ sources, use 4 spaces per level, -and leave tabs at 8 columns, so every other indent level is a tab stop. +We will work with contributors to fix up indentation style issues, but it +is appreciated if you could match our style: All files should contain the magic header to insure standard indentation: +=over 4 + // -*- mode: C++; c-file-style: "cc-mode" -*- This sets indentation to the cc-mode defaults. (Verilator predates a CC-mode change of several years ago which overrides the defaults with GNU style indentation; the c-set-style undoes that.) +=back + +Use 4 spaces per level, and no tabs. + +Use 2 spaces between the end of source and the beginning of a comment. + +Use "mixedCapsSymbols" instead of "underlined_symbls". + +Comment every member variable. + =head2 The C script Some of the code implementing passes is extremely repetitive, and must be @@ -530,11 +542,11 @@ function. Applies the C method of each C in a list (i.e. connected by C and C pointers). -=item C +=item C -Applies the C method of each C in a list. If a node is -edited by the call to C, apply C again, until the node does -not change. +Applies the C method of each C in a list, only if the +provided node is non-NULL. If a node is edited by the call to C, +apply C again, until the node does not change. =item C @@ -543,8 +555,8 @@ the last one. =item C -Apply the C method on each child C through C in -turn. +Apply the C method on each child C through +C in turn. =item C