Skip to content

odb: Use snake_case for LEF58 parser variables in multiple files (#2275)#9721

Merged
eder-matheus merged 2 commits intoThe-OpenROAD-Project:masterfrom
Divinesoumyadip:fix-2275-part2
Mar 12, 2026
Merged

odb: Use snake_case for LEF58 parser variables in multiple files (#2275)#9721
eder-matheus merged 2 commits intoThe-OpenROAD-Project:masterfrom
Divinesoumyadip:fix-2275-part2

Conversation

@Divinesoumyadip
Copy link
Contributor

Following up on my previous PR #9702 and @maliberty's feedback, this PR continues the broader naming convention cleanup for issue #2275.

I have refactored the local Boost.Spirit qi::rule variables from SCREAMING_SNAKE_CASE to standard snake_case in the following parsers to comply with the Google C++ Style Guide:

  • ArraySpacingParser.cpp
  • KeepOutZoneParser.cpp
  • AntennaGateParser.cpp

Testing:
Built successfully locally (make).And ran the OpenDB test suite (ctest -R odb) and all 86/86 tests passed, confirming the parsers still map the LEF file strings correctly.

@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

1 similar comment
@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"


qi::rule<std::string::const_iterator, space_type> LEF58_ARRAYSPACING
= (lit("ARRAYSPACING") >> -(CUTCLASS)
qi::rule<std::string::const_iterator, space_type> lef58_arrayspacing_rule
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lef58_arrayspacing_rule -> lef58_array_spacing_rule

auto first = s.begin();
auto last = s.end();
bool valid = qi::phrase_parse(first, last, LEF58_ARRAYSPACING, space)
bool valid = qi::phrase_parse(first, last, lef58_arrayspacing_rule, space)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lef58_arrayspacing_rule -> lef58_array_spacing_rule

&odb::dbTechLayerKeepOutZoneRule::setSpiralExtension)]));

qi::rule<std::string::const_iterator, space_type> LEF58_KEEPOUTZONE
qi::rule<std::string::const_iterator, space_type> lef58_keepoutzone_rule
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lef58_keepoutzone_rule -> lef58_keepout_zone_rule

auto first = s.begin();
auto last = s.end();
bool valid = qi::phrase_parse(first, last, LEF58_KEEPOUTZONE, space)
bool valid = qi::phrase_parse(first, last, lef58_keepoutzone_rule, space)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lef58_keepoutzone_rule -> lef58_keepout_zone_rule

Signed-off-by: Divinesoumyadip <soumyacode7@gmail.com>
@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

1 similar comment
@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@eder-matheus eder-matheus merged commit 5ab2554 into The-OpenROAD-Project:master Mar 12, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants