Skip to content

Commit

Permalink
Rename all Enum.None to Enum.None_ (#1185)
Browse files Browse the repository at this point in the history
  • Loading branch information
parker-research authored Dec 3, 2024
1 parent 4a21c54 commit 8dc79fc
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions bindings/python/ASTBindings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ void registerAST(py::module_& m) {
.value("Interrupt", VisitAction::Interrupt);

py::enum_<EvalFlags>(m, "EvalFlags")
.value("None", EvalFlags::None)
.value("None_", EvalFlags::None)
.value("IsScript", EvalFlags::IsScript)
.value("CacheResults", EvalFlags::CacheResults)
.value("SpecparamsAllowed", EvalFlags::SpecparamsAllowed)
Expand Down Expand Up @@ -75,7 +75,7 @@ void registerAST(py::module_& m) {
.def("store", &LValue::store, "value"_a);

py::enum_<ASTFlags>(m, "ASTFlags")
.value("None", ASTFlags::None)
.value("None_", ASTFlags::None)
.value("InsideConcatenation", ASTFlags::InsideConcatenation)
.value("UnevaluatedBranch", ASTFlags::UnevaluatedBranch)
.value("AllowDataType", ASTFlags::AllowDataType)
Expand Down
4 changes: 2 additions & 2 deletions bindings/python/CompBindings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ void registerCompilation(py::module_& m) {
.value("Max", MinTypMax::Max);

py::enum_<CompilationFlags>(m, "CompilationFlags")
.value("None", CompilationFlags::None)
.value("None_", CompilationFlags::None)
.value("AllowHierarchicalConst", CompilationFlags::AllowHierarchicalConst)
.value("RelaxEnumConversions", CompilationFlags::RelaxEnumConversions)
.value("AllowUseBeforeDeclare", CompilationFlags::AllowUseBeforeDeclare)
Expand Down Expand Up @@ -287,7 +287,7 @@ void registerCompilation(py::module_& m) {
.def("__repr__", [](const SystemSubroutine& self) { return self.name; });

py::enum_<SystemSubroutine::WithClauseMode>(systemSub, "WithClauseMode")
.value("None", SystemSubroutine::WithClauseMode::None)
.value("None_", SystemSubroutine::WithClauseMode::None)
.value("Iterator", SystemSubroutine::WithClauseMode::Iterator)
.value("Randomize", SystemSubroutine::WithClauseMode::Randomize);

Expand Down
12 changes: 6 additions & 6 deletions bindings/python/SymbolBindings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ void registerSymbols(py::module_& m) {
EXPOSE_ENUM(m, SystemTimingCheckKind);

py::enum_<LookupFlags>(m, "LookupFlags")
.value("None", LookupFlags::None)
.value("None_", LookupFlags::None)
.value("Type", LookupFlags::Type)
.value("AllowDeclaredAfter", LookupFlags::AllowDeclaredAfter)
.value("DisallowWildcardImport", LookupFlags::DisallowWildcardImport)
Expand All @@ -42,7 +42,7 @@ void registerSymbols(py::module_& m) {
.value("DisallowUnitReferences", LookupFlags::DisallowUnitReferences);

py::enum_<LookupResultFlags>(m, "LookupResultFlags")
.value("None", LookupResultFlags::None)
.value("None_", LookupResultFlags::None)
.value("WasImported", LookupResultFlags::WasImported)
.value("IsHierarchical", LookupResultFlags::IsHierarchical)
.value("SuppressUndeclared", LookupResultFlags::SuppressUndeclared)
Expand Down Expand Up @@ -272,7 +272,7 @@ void registerSymbols(py::module_& m) {
.def_property_readonly("pathDest", &SpecparamSymbol::getPathDest);

py::enum_<VariableFlags>(m, "VariableFlags")
.value("None", VariableFlags::None)
.value("None_", VariableFlags::None)
.value("Const", VariableFlags::Const)
.value("CompilerGenerated", VariableFlags::CompilerGenerated)
.value("ImmutableCoverageOption", VariableFlags::ImmutableCoverageOption)
Expand Down Expand Up @@ -302,7 +302,7 @@ void registerSymbols(py::module_& m) {
.def_property_readonly("driveStrength", &NetSymbol::getDriveStrength);

py::enum_<NetSymbol::ExpansionHint>(netSymbol, "ExpansionHint")
.value("None", NetSymbol::None)
.value("None_", NetSymbol::None)
.value("Vectored", NetSymbol::Vectored)
.value("Scalared", NetSymbol::Scalared)
.export_values();
Expand All @@ -327,7 +327,7 @@ void registerSymbols(py::module_& m) {
.def_readonly("randMode", &ClassPropertySymbol::randMode);

py::enum_<MethodFlags>(m, "MethodFlags")
.value("None", MethodFlags::None)
.value("None_", MethodFlags::None)
.value("Virtual", MethodFlags::Virtual)
.value("Pure", MethodFlags::Pure)
.value("Static", MethodFlags::Static)
Expand Down Expand Up @@ -700,7 +700,7 @@ void registerSymbols(py::module_& m) {
.def_readonly("repeatKind", &CoverageBinSymbol::TransRangeList::repeatKind);

py::enum_<CoverageBinSymbol::TransRangeList::RepeatKind>(transRangeList, "RepeatKind")
.value("None", CoverageBinSymbol::TransRangeList::None)
.value("None_", CoverageBinSymbol::TransRangeList::None)
.value("Consecutive", CoverageBinSymbol::TransRangeList::Consecutive)
.value("Nonconsecutive", CoverageBinSymbol::TransRangeList::Nonconsecutive)
.value("GoTo", CoverageBinSymbol::TransRangeList::GoTo)
Expand Down
2 changes: 1 addition & 1 deletion bindings/python/TypeBindings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ void registerTypes(py::module_& m) {
.def_property_readonly("firstForwardDecl", &GenericClassDefSymbol::getFirstForwardDecl);

py::enum_<ConstraintBlockFlags>(m, "ConstraintBlockFlags")
.value("None", ConstraintBlockFlags::None)
.value("None_", ConstraintBlockFlags::None)
.value("Pure", ConstraintBlockFlags::Pure)
.value("Static", ConstraintBlockFlags::Static)
.value("Extern", ConstraintBlockFlags::Extern)
Expand Down

0 comments on commit 8dc79fc

Please sign in to comment.