Issue#1318: Added documentation for subprogram instantiation whitespace rules.
This commit is contained in:
parent
533336e393
commit
a8b94fdfbf
|
|
@ -259,6 +259,11 @@ Rules Enforcing Whitespace
|
|||
* `signal_100 <signal_rules.html#signal-100>`_
|
||||
* `signal_101 <signal_rules.html#signal-101>`_
|
||||
* `signal_102 <signal_rules.html#signal-102>`_
|
||||
* `subprogram_instantiation_100 <subprogram_instantiation_rules.html#subprogram-instantiation-100>`_
|
||||
* `subprogram_instantiation_101 <subprogram_instantiation_rules.html#subprogram-instantiation-101>`_
|
||||
* `subprogram_instantiation_102 <subprogram_instantiation_rules.html#subprogram-instantiation-102>`_
|
||||
* `subprogram_instantiation_103 <subprogram_instantiation_rules.html#subprogram-instantiation-103>`_
|
||||
* `subprogram_instantiation_104 <subprogram_instantiation_rules.html#subprogram-instantiation-104>`_
|
||||
* `subtype_100 <subtype_rules.html#subtype-100>`_
|
||||
* `subtype_101 <../subtype_rules.html#subtype-101>`_
|
||||
* `subtype_102 <../subtype_rules.html#subtype-102>`_
|
||||
|
|
|
|||
|
|
@ -156,6 +156,11 @@ Rules Enforcing Whitespace Rule Group
|
|||
* `signal_100 <../signal_rules.html#signal-100>`_
|
||||
* `signal_101 <../signal_rules.html#signal-101>`_
|
||||
* `signal_102 <../signal_rules.html#signal-102>`_
|
||||
* `subprogram_instantiation_100 <../subprogram_instantiation_rules.html#subprogram-instantiation-100>`_
|
||||
* `subprogram_instantiation_101 <../subprogram_instantiation_rules.html#subprogram-instantiation-101>`_
|
||||
* `subprogram_instantiation_102 <../subprogram_instantiation_rules.html#subprogram-instantiation-102>`_
|
||||
* `subprogram_instantiation_103 <../subprogram_instantiation_rules.html#subprogram-instantiation-103>`_
|
||||
* `subprogram_instantiation_104 <../subprogram_instantiation_rules.html#subprogram-instantiation-104>`_
|
||||
* `subtype_100 <../subtype_rules.html#subtype-100>`_
|
||||
* `subtype_101 <../subtype_rules.html#subtype-101>`_
|
||||
* `subtype_102 <../subtype_rules.html#subtype-102>`_
|
||||
|
|
|
|||
|
|
@ -3,6 +3,111 @@
|
|||
Subprogram Instantiation Rules
|
||||
------------------------------
|
||||
|
||||
subprogram_instantiation_100
|
||||
############################
|
||||
|
||||
|phase_2| |error| |whitespace|
|
||||
|
||||
This rule checks for a single space between the **procedure** keyword and the new subprogram identifier.
|
||||
|
||||
|configuring_whitespace_rules_link|
|
||||
|
||||
**Violation**
|
||||
|
||||
.. code-block:: vhdl
|
||||
|
||||
procedure my_proc is new my_generic_proc
|
||||
|
||||
**Fix**
|
||||
|
||||
.. code-block:: vhdl
|
||||
|
||||
procedure my_proc is new my_generic_proc
|
||||
|
||||
subprogram_instantiation_101
|
||||
############################
|
||||
|
||||
|phase_2| |error| |whitespace|
|
||||
|
||||
This rule checks for a single space between the **function** keyword and the new subprogram identifier.
|
||||
|
||||
|configuring_whitespace_rules_link|
|
||||
|
||||
**Violation**
|
||||
|
||||
.. code-block:: vhdl
|
||||
|
||||
function my_func is new my_generic_func
|
||||
|
||||
**Fix**
|
||||
|
||||
.. code-block:: vhdl
|
||||
|
||||
function my_func is new my_generic_func
|
||||
|
||||
subprogram_instantiation_102
|
||||
############################
|
||||
|
||||
|phase_2| |error| |whitespace|
|
||||
|
||||
This rule checks for a single space between the new subprogram identifier and the **is** keyword.
|
||||
|
||||
|configuring_whitespace_rules_link|
|
||||
|
||||
**Violation**
|
||||
|
||||
.. code-block:: vhdl
|
||||
|
||||
procedure my_proc is new my_generic_proc
|
||||
|
||||
**Fix**
|
||||
|
||||
.. code-block:: vhdl
|
||||
|
||||
procedure my_proc is new my_generic_proc
|
||||
|
||||
subprogram_instantiation_103
|
||||
############################
|
||||
|
||||
|phase_2| |error| |whitespace|
|
||||
|
||||
This rule checks for a single space between the **is** keyword and the **new** keyword.
|
||||
|
||||
|configuring_whitespace_rules_link|
|
||||
|
||||
**Violation**
|
||||
|
||||
.. code-block:: vhdl
|
||||
|
||||
procedure my_proc is new my_generic_proc
|
||||
|
||||
**Fix**
|
||||
|
||||
.. code-block:: vhdl
|
||||
|
||||
procedure my_proc is new my_generic_proc
|
||||
|
||||
subprogram_instantiation_104
|
||||
############################
|
||||
|
||||
|phase_2| |error| |whitespace|
|
||||
|
||||
This rule checks for a single space between **new** keyword and the uninstantiated subprogram name.
|
||||
|
||||
|configuring_whitespace_rules_link|
|
||||
|
||||
**Violation**
|
||||
|
||||
.. code-block:: vhdl
|
||||
|
||||
procedure my_proc is new my_generic_proc
|
||||
|
||||
**Fix**
|
||||
|
||||
.. code-block:: vhdl
|
||||
|
||||
procedure my_proc is new my_generic_proc
|
||||
|
||||
subprogram_instantiation_500
|
||||
############################
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue