mirror of
https://github.com/verilator/verilator.git
synced 2025-01-19 12:54:02 +00:00
Commentary
This commit is contained in:
parent
a95eb53684
commit
77cc335c2d
@ -405,6 +405,15 @@ This sets indentation to the `cc-mode` defaults. (Verilator predates a
|
|||||||
CC-mode change of several years ago which overrides the defaults with GNU
|
CC-mode change of several years ago which overrides the defaults with GNU
|
||||||
style indentation; the `c-set-style` undoes that.)
|
style indentation; the `c-set-style` undoes that.)
|
||||||
|
|
||||||
|
* Use "mixedCapsSymbols" instead of "underlined_symbols".
|
||||||
|
|
||||||
|
* Uas a "p" suffix on variables that are pointers, e.g. "nodep".
|
||||||
|
|
||||||
|
* Comment every member variable.
|
||||||
|
|
||||||
|
Indentation is automatically maintained with "make clang-format" (using
|
||||||
|
clang-format version 10.0.0). For those manually formatting:
|
||||||
|
|
||||||
* Use 4 spaces per level, and no tabs.
|
* Use 4 spaces per level, and no tabs.
|
||||||
|
|
||||||
* Use 2 spaces between the end of source and the beginning of a comment.
|
* Use 2 spaces between the end of source and the beginning of a comment.
|
||||||
@ -414,12 +423,6 @@ style indentation; the `c-set-style` undoes that.)
|
|||||||
* No spaces before semicolons, nor between a function's name and open
|
* No spaces before semicolons, nor between a function's name and open
|
||||||
parenthesis (only applies to functions; if/else has a following space).
|
parenthesis (only applies to functions; if/else has a following space).
|
||||||
|
|
||||||
* Use "mixedCapsSymbols" instead of "underlined_symbols".
|
|
||||||
|
|
||||||
* Uas a "p" suffix on variables that are pointers, e.g. "nodep".
|
|
||||||
|
|
||||||
* Comment every member variable.
|
|
||||||
|
|
||||||
=== The `astgen` Script
|
=== The `astgen` Script
|
||||||
|
|
||||||
Some of the code implementing passes is extremely repetitive, and must be
|
Some of the code implementing passes is extremely repetitive, and must be
|
||||||
|
Loading…
Reference in New Issue
Block a user