@@ -104,7 +104,7 @@ bool lefTechLayerAreaRuleParser::parseSubRule(
104104{
105105 odb::dbTechLayerAreaRule* rule = odb::dbTechLayerAreaRule::create (layer);
106106
107- qi::rule<std::string::const_iterator, space_type> EXCEPT_EDGE_LENGTH
107+ qi::rule<std::string::const_iterator, space_type> except_edge_length
108108 = ((lit (" EXCEPTEDGELENGTH" ) >> double_ >> double_)[boost::bind (
109109 &lefTechLayerAreaRuleParser::setExceptEdgeLengths, this , _1, rule)]
110110 | lit (" EXCEPTEDGELENGTH" ) >> double_[boost::bind (
@@ -114,15 +114,15 @@ bool lefTechLayerAreaRuleParser::parseSubRule(
114114 rule,
115115 &dbTechLayerAreaRule::setExceptEdgeLength)]);
116116
117- qi::rule<std::string::const_iterator, space_type> EXCEPT_MIN_SIZE
117+ qi::rule<std::string::const_iterator, space_type> except_min_size
118118 = (lit (" EXCEPTMINSIZE" ) >> double_ >> double_)[boost::bind (
119119 &lefTechLayerAreaRuleParser::setExceptMinSize, this , _1, rule)];
120120
121- qi::rule<std::string::const_iterator, space_type> EXCEPT_STEP
121+ qi::rule<std::string::const_iterator, space_type> except_step
122122 = (lit (" EXCEPTSTEP" ) >> double_ >> double_)[boost::bind (
123123 &lefTechLayerAreaRuleParser::setExceptStep, this , _1, rule)];
124124
125- qi::rule<std::string::const_iterator, space_type> LAYER
125+ qi::rule<std::string::const_iterator, space_type> layer_rule
126126 = ((lit (" LAYER" )
127127 >> _string[boost::bind (&lefTechLayerAreaRuleParser::setTrimLayer,
128128 this ,
@@ -133,7 +133,7 @@ bool lefTechLayerAreaRuleParser::parseSubRule(
133133 >> lit (" OVERLAP" )
134134 >> int_[boost::bind (&odb::dbTechLayerAreaRule::setOverlap, rule, _1)]);
135135
136- qi::rule<std::string::const_iterator, space_type> AREA
136+ qi::rule<std::string::const_iterator, space_type> area_rule
137137 = (lit (" AREA" ) >> double_[boost::bind (&lefTechLayerAreaRuleParser::setInt,
138138 this ,
139139 _1,
@@ -148,7 +148,7 @@ bool lefTechLayerAreaRuleParser::parseSubRule(
148148 _1,
149149 rule,
150150 &odb::dbTechLayerAreaRule::setExceptMinWidth)])
151- >> -EXCEPT_EDGE_LENGTH >> -EXCEPT_MIN_SIZE >> -EXCEPT_STEP
151+ >> -except_edge_length >> -except_min_size >> -except_step
152152 >> -(lit (" RECTWIDTH" )
153153 >> double_[boost::bind (&lefTechLayerAreaRuleParser::setInt,
154154 this ,
@@ -157,10 +157,10 @@ bool lefTechLayerAreaRuleParser::parseSubRule(
157157 &odb::dbTechLayerAreaRule::setRectWidth)])
158158 >> -(lit (" EXCEPTRECTANGLE" )[boost::bind (
159159 &dbTechLayerAreaRule::setExceptRectangle, rule, true )])
160- >> -LAYER >> lit (" ;" ));
160+ >> -layer_rule >> lit (" ;" ));
161161 auto first = s.begin ();
162162 auto last = s.end ();
163- bool valid = qi::phrase_parse (first, last, AREA , space) && first == last;
163+ bool valid = qi::phrase_parse (first, last, area_rule , space) && first == last;
164164 if (!valid) {
165165 if (!incomplete_props.empty () && incomplete_props.back ().first == rule) {
166166 incomplete_props.pop_back ();
0 commit comments