Skip to content

Commit

Permalink
Remove automatic from member qualifiers
Browse files Browse the repository at this point in the history
Signed-off-by: Krzysztof Bieganski <[email protected]>
  • Loading branch information
kbieganski committed Oct 25, 2023
1 parent 665ea34 commit e36fee8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
3 changes: 0 additions & 3 deletions src/V3ParseImp.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ struct VMemberQualifiers {
uint32_t m_rand : 1; // Rand property/member qualifier
uint32_t m_randc : 1; // Randc property/member qualifier (ignored until supported)
uint32_t m_virtual : 1; // Virtual property/method qualifier
uint32_t m_automatic : 1; // Automatic property/method qualifier
uint32_t m_const : 1; // Const property/method qualifier
uint32_t m_static : 1; // Static class member
};
Expand All @@ -75,7 +74,6 @@ struct VMemberQualifiers {
if (m_protected) nodep->isHideProtected(true);
if (m_static) nodep->isStatic(true);
if (m_virtual) nodep->isVirtual(true);
if (m_automatic) nodep->isStatic(false);
if (m_const || m_rand || m_randc) {
nodep->v3error("Syntax error: 'const'/'rand'/'randc' not allowed before "
"function/task declaration");
Expand All @@ -88,7 +86,6 @@ struct VMemberQualifiers {
if (m_randc) nodep->isRandC(true);
if (m_local) nodep->isHideLocal(true);
if (m_protected) nodep->isHideProtected(true);
if (m_automatic) nodep->lifetime(VLifetime::AUTOMATIC);
if (m_static) nodep->lifetime(VLifetime::STATIC);
if (m_const) nodep->isConst(true);
if (m_virtual) {
Expand Down
2 changes: 0 additions & 2 deletions src/verilog.y
Original file line number Diff line number Diff line change
Expand Up @@ -7100,8 +7100,6 @@ memberQualOne<qualifiers>: // IEEE: property_qualifier + me
| yVIRTUAL__ETC { $$ = VMemberQualifiers::none(); $$.m_virtual = true; }
// // Part of property_qualifier only
| random_qualifier { $$ = $1; }
// // Part of lifetime, but here as ySTATIC can be in different positions
| yAUTOMATIC { $$ = VMemberQualifiers::none(); $$.m_automatic = true; }
// // Part of data_declaration, but not in data_declarationVarFrontClass
| yCONST__ETC { $$ = VMemberQualifiers::none(); $$.m_const = true; }
;
Expand Down

0 comments on commit e36fee8

Please sign in to comment.