Issue#1285: Updated documentation for protected_type and protected_type_body rules.
This commit is contained in:
parent
f313504306
commit
157926c19a
|
|
@ -444,6 +444,16 @@ Rules Enforcing Case
|
|||
* `process_017 <process_rules.html#process-017>`_
|
||||
* `process_019 <process_rules.html#process-019>`_
|
||||
|
||||
* `protected_type_500 <protected_type_rules.html#protected-type-500>`_
|
||||
* `protected_type_501 <protected_type_rules.html#protected-type-501>`_
|
||||
* `protected_type_502 <protected_type_rules.html#protected-type-502>`_
|
||||
* `protected_type_body_500 <protected_type_rules.html#protected-type-body-500>`_
|
||||
|
||||
* `protected_type_body_501 <protected_type_rules.html#protected-type-body-501>`_
|
||||
* `protected_type_body_502 <protected_type_rules.html#protected-type-body-502>`_
|
||||
* `protected_type_body_503 <protected_type_rules.html#protected-type-body-503>`_
|
||||
* `protected_type_body_504 <protected_type_rules.html#protected-type-body-504>`_
|
||||
|
||||
* `range_001 <range_rules.html#range-001>`_
|
||||
* `range_002 <range_rules.html#range-002>`_
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,109 @@
|
|||
.. include:: includes.rst
|
||||
|
||||
Protected Type Body Rules
|
||||
-------------------------
|
||||
|
||||
protected_type_body_500
|
||||
#######################
|
||||
|
||||
|phase_6| |error| |case| |case_keyword|
|
||||
|
||||
This rule checks the **protected** keyword in **protected body** has proper case.
|
||||
|
||||
|configuring_uppercase_and_lowercase_rules_link|
|
||||
|
||||
**Violation**
|
||||
|
||||
.. code-block:: vhdl
|
||||
|
||||
type sharedcounter is PROTECTED body
|
||||
|
||||
**Fix**
|
||||
|
||||
.. code-block:: vhdl
|
||||
|
||||
type sharedcounter is protected body
|
||||
|
||||
protected_type_body_501
|
||||
#######################
|
||||
|
||||
|phase_6| |error| |case| |case_keyword|
|
||||
|
||||
This rule checks the **body** keyword in **protected body** has proper case.
|
||||
|
||||
|configuring_uppercase_and_lowercase_rules_link|
|
||||
|
||||
**Violation**
|
||||
|
||||
.. code-block:: vhdl
|
||||
|
||||
type sharedcounter is protected BODY
|
||||
|
||||
**Fix**
|
||||
|
||||
.. code-block:: vhdl
|
||||
|
||||
type sharedcounter is protected body
|
||||
|
||||
protected_type_body_502
|
||||
#######################
|
||||
|
||||
|phase_6| |error| |case| |case_keyword|
|
||||
|
||||
This rule checks the **end** keyword in **end protected body** has proper case.
|
||||
|
||||
|configuring_uppercase_and_lowercase_rules_link|
|
||||
|
||||
**Violation**
|
||||
|
||||
.. code-block:: vhdl
|
||||
|
||||
END protected body sharedcounter;
|
||||
|
||||
**Fix**
|
||||
|
||||
.. code-block:: vhdl
|
||||
|
||||
end protected body sharedcounter;
|
||||
|
||||
protected_type_body_503
|
||||
#######################
|
||||
|
||||
|phase_6| |error| |case| |case_keyword|
|
||||
|
||||
This rule checks the **protected** keyword in **end protected body** has proper case.
|
||||
|
||||
|configuring_uppercase_and_lowercase_rules_link|
|
||||
|
||||
**Violation**
|
||||
|
||||
.. code-block:: vhdl
|
||||
|
||||
end PROTECTED body sharedcounter;
|
||||
|
||||
**Fix**
|
||||
|
||||
.. code-block:: vhdl
|
||||
|
||||
end protected body sharedcounter;
|
||||
|
||||
protected_type_body_504
|
||||
#######################
|
||||
|
||||
|phase_6| |error| |case| |case_keyword|
|
||||
|
||||
This rule checks the **body** keyword in **end protected body** has proper case.
|
||||
|
||||
|configuring_uppercase_and_lowercase_rules_link|
|
||||
|
||||
**Violation**
|
||||
|
||||
.. code-block:: vhdl
|
||||
|
||||
end protected BODY sharedcounter;
|
||||
|
||||
**Fix**
|
||||
|
||||
.. code-block:: vhdl
|
||||
|
||||
end protected body sharedcounter;
|
||||
|
|
@ -0,0 +1,67 @@
|
|||
.. include:: includes.rst
|
||||
|
||||
Protected Type Rules
|
||||
--------------------
|
||||
|
||||
protected_type_500
|
||||
##################
|
||||
|
||||
|phase_6| |error| |case| |case_keyword|
|
||||
|
||||
This rule checks the **protected** keyword has proper case.
|
||||
|
||||
|configuring_uppercase_and_lowercase_rules_link|
|
||||
|
||||
**Violation**
|
||||
|
||||
.. code-block:: vhdl
|
||||
|
||||
type sharedcounter is PROTECTED
|
||||
|
||||
**Fix**
|
||||
|
||||
.. code-block:: vhdl
|
||||
|
||||
type sharedcounter is protected
|
||||
|
||||
protected_type_501
|
||||
##################
|
||||
|
||||
|phase_6| |error| |case| |case_keyword|
|
||||
|
||||
This rule checks the **end** keyword in **end protected** has proper case.
|
||||
|
||||
|configuring_uppercase_and_lowercase_rules_link|
|
||||
|
||||
**Violation**
|
||||
|
||||
.. code-block:: vhdl
|
||||
|
||||
END protected sharedcounter;
|
||||
|
||||
**Fix**
|
||||
|
||||
.. code-block:: vhdl
|
||||
|
||||
end protected sharedcounter;
|
||||
|
||||
protected_type_502
|
||||
##################
|
||||
|
||||
|phase_6| |error| |case| |case_keyword|
|
||||
|
||||
This rule checks the **protected** keyword in **end protected** has proper case.
|
||||
|
||||
|configuring_uppercase_and_lowercase_rules_link|
|
||||
|
||||
**Violation**
|
||||
|
||||
.. code-block:: vhdl
|
||||
|
||||
end PROTECTED sharedcounter;
|
||||
|
||||
**Fix**
|
||||
|
||||
.. code-block:: vhdl
|
||||
|
||||
end protected sharedcounter;
|
||||
|
|
@ -136,6 +136,14 @@ Rules Enforcing Case::Keyword Rule Group
|
|||
* `process_008 <../process_rules.html#process-008>`_
|
||||
* `process_009 <../process_rules.html#process-009>`_
|
||||
* `process_013 <../process_rules.html#process-013>`_
|
||||
* `protected_type_500 <../protected_type_rules.html#protected-type-500>`_
|
||||
* `protected_type_501 <../protected_type_rules.html#protected-type-501>`_
|
||||
* `protected_type_502 <../protected_type_rules.html#protected-type-502>`_
|
||||
* `protected_type_body_500 <../protected_type_rules.html#protected-type-body-500>`_
|
||||
* `protected_type_body_501 <../protected_type_rules.html#protected-type-body-501>`_
|
||||
* `protected_type_body_502 <../protected_type_rules.html#protected-type-body-502>`_
|
||||
* `protected_type_body_503 <../protected_type_rules.html#protected-type-body-503>`_
|
||||
* `protected_type_body_504 <../protected_type_rules.html#protected-type-body-504>`_
|
||||
* `range_001 <../range_rules.html#range-001>`_
|
||||
* `range_002 <../range_rules.html#range-002>`_
|
||||
* `record_type_definition_500 <../record_type_definition_rules.html#record-type-definition-500>`_
|
||||
|
|
|
|||
|
|
@ -188,6 +188,14 @@ Rules Enforcing Case Rule Group
|
|||
* `process_013 <../process_rules.html#process-013>`_
|
||||
* `process_017 <../process_rules.html#process-017>`_
|
||||
* `process_019 <../process_rules.html#process-019>`_
|
||||
* `protected_type_500 <../protected_type_rules.html#protected-type-500>`_
|
||||
* `protected_type_501 <../protected_type_rules.html#protected-type-501>`_
|
||||
* `protected_type_502 <../protected_type_rules.html#protected-type-502>`_
|
||||
* `protected_type_body_500 <../protected_type_rules.html#protected-type-body-500>`_
|
||||
* `protected_type_body_501 <../protected_type_rules.html#protected-type-body-501>`_
|
||||
* `protected_type_body_502 <../protected_type_rules.html#protected-type-body-502>`_
|
||||
* `protected_type_body_503 <../protected_type_rules.html#protected-type-body-503>`_
|
||||
* `protected_type_body_504 <../protected_type_rules.html#protected-type-body-504>`_
|
||||
* `range_001 <../range_rules.html#range-001>`_
|
||||
* `range_002 <../range_rules.html#range-002>`_
|
||||
* `record_type_definition_500 <../record_type_definition_rules.html#record-type-definition-500>`_
|
||||
|
|
|
|||
|
|
@ -62,6 +62,8 @@ The rules are divided into categories depending on the part of the VHDL code bei
|
|||
procedure_rules.rst
|
||||
procedure_call_rules.rst
|
||||
process_rules.rst
|
||||
protected_type_rules.rst
|
||||
protected_type_body_rules.rst
|
||||
range_rules.rst
|
||||
record_type_definition_rules.rst
|
||||
report_statement_rules.rst
|
||||
|
|
|
|||
Loading…
Reference in New Issue