From 601e05615d2d25b5522f1a350369d3712c8a4dc7 Mon Sep 17 00:00:00 2001 From: github action Date: Wed, 18 Mar 2026 01:45:25 +0000 Subject: [PATCH] Apply 'make format' --- src/V3AstAttr.h | 14 +++++++------- src/V3AstNodeOther.h | 12 ++++++------ src/V3AstNodes.cpp | 8 ++------ src/V3LinkParse.cpp | 3 +-- 4 files changed, 16 insertions(+), 21 deletions(-) diff --git a/src/V3AstAttr.h b/src/V3AstAttr.h index b98641776..5dc695faf 100644 --- a/src/V3AstAttr.h +++ b/src/V3AstAttr.h @@ -1110,14 +1110,14 @@ inline std::ostream& operator<<(std::ostream& os, const VCastable& rhs) { class VCoverBinsType final { public: enum en : uint8_t { - BINS_USER, // Single bin with one or more values/ranges - BINS_ARRAY, // Array of bins with user-speciifed size - BINS_AUTO, // Auto-sized array of bins (eg auto_bin_max) - BINS_IGNORE, // Ignore bin - BINS_ILLEGAL, // Illegal bin - BINS_DEFAULT, // Default bin + BINS_USER, // Single bin with one or more values/ranges + BINS_ARRAY, // Array of bins with user-speciifed size + BINS_AUTO, // Auto-sized array of bins (eg auto_bin_max) + BINS_IGNORE, // Ignore bin + BINS_ILLEGAL, // Illegal bin + BINS_DEFAULT, // Default bin BINS_WILDCARD, // Wildcard bin - BINS_TRANSITION // Transition bin + BINS_TRANSITION // Transition bin }; enum en m_e; VCoverBinsType() diff --git a/src/V3AstNodeOther.h b/src/V3AstNodeOther.h index d4ffd9188..221f6c5e6 100644 --- a/src/V3AstNodeOther.h +++ b/src/V3AstNodeOther.h @@ -1045,9 +1045,9 @@ class AstCoverBin final : public AstNode { // @astgen op2 := iffp : Optional[AstNodeExpr] // @astgen op3 := arraySizep : Optional[AstNodeExpr] // @astgen op4 := transp : List[AstCoverTransSet] - const string m_name; // Base name of the bin + const string m_name; // Base name of the bin const VCoverBinsType m_type; // Bin type (eg AUTO, IGNORE, ILLEGAL) - bool m_isArray = false; // Bin is either an auto-sized array of values or transitions + bool m_isArray = false; // Bin is either an auto-sized array of values or transitions public: AstCoverBin(FileLine* fl, const string& name, AstNode* rangesp, bool isIgnore, bool isIllegal, @@ -1093,7 +1093,7 @@ public: class AstCoverCrossBins final : public AstNode { // Cross-point bin definition // @astgen op1 := selectp : Optional[AstCoverSelectExpr] - const string m_name; // Bin name + const string m_name; // Bin name public: AstCoverCrossBins(FileLine* fl, const string& name, AstCoverSelectExpr* selectp) @@ -1109,7 +1109,7 @@ public: class AstCoverOption final : public AstNode { // Coverage-option assignment // @astgen op1 := valuep : AstNodeExpr - const VCoverOptionType m_type; // Option being assigned + const VCoverOptionType m_type; // Option being assigned public: AstCoverOption(FileLine* fl, VCoverOptionType type, AstNodeExpr* valuep) @@ -1172,7 +1172,7 @@ class AstCovergroup final : public AstNode { // @astgen op2 := membersp : List[AstNode] // @astgen op3 := eventp : Optional[AstSenTree] // @astgen op4 := sampleArgsp : List[AstVar] - string m_name; // covergroup name + string m_name; // covergroup name public: AstCovergroup(FileLine* fl, const string& name, AstVar* argsp, AstVar* sampleArgsp, @@ -1194,7 +1194,7 @@ public: class AstCoverpointRef final : public AstNode { // Reference to a coverpoint used in a cross // @astgen ptr := m_coverpointp : Optional[AstCoverpoint] - const string m_name; // coverpoint name + const string m_name; // coverpoint name public: AstCoverpointRef(FileLine* fl, const string& name) diff --git a/src/V3AstNodes.cpp b/src/V3AstNodes.cpp index 8453c92b2..cf82c469c 100644 --- a/src/V3AstNodes.cpp +++ b/src/V3AstNodes.cpp @@ -3501,9 +3501,7 @@ const char* AstNot::widthMismatch() const VL_MT_STABLE { void AstCovergroup::dump(std::ostream& str) const { this->AstNode::dump(str); } -void AstCovergroup::dumpJson(std::ostream& str) const { - dumpJsonGen(str); -} +void AstCovergroup::dumpJson(std::ostream& str) const { dumpJsonGen(str); } void AstCoverpoint::dump(std::ostream& str) const { this->AstNodeFuncCovItem::dump(str); } @@ -3531,9 +3529,7 @@ void AstCoverTransItem::dumpJson(std::ostream& str) const { if (m_repType != VTransRepType::NONE) { str << ", \"repType\": " << m_repType.asciiJson(); } } -void AstCoverTransSet::dump(std::ostream& str) const { - this->AstNode::dump(str); -} +void AstCoverTransSet::dump(std::ostream& str) const { this->AstNode::dump(str); } void AstCoverTransSet::dumpJson(std::ostream& str) const { this->AstNode::dumpJson(str); } diff --git a/src/V3LinkParse.cpp b/src/V3LinkParse.cpp index 3014b04a2..4e44b84fd 100644 --- a/src/V3LinkParse.cpp +++ b/src/V3LinkParse.cpp @@ -1176,8 +1176,7 @@ class LinkParseVisitor final : public VNVisitor { } { AstVar* const varp - = new AstVar{nodep->fileline(), VVarType::MEMBER, "type_option", - VFlagChildDType{}, + = new AstVar{nodep->fileline(), VVarType::MEMBER, "type_option", VFlagChildDType{}, new AstRefDType{nodep->fileline(), "vl_covergroup_type_options_t", new AstClassOrPackageRef{nodep->fileline(), "std", nullptr, nullptr},