File tree Expand file tree Collapse file tree 1 file changed +22
-28
lines changed Expand file tree Collapse file tree 1 file changed +22
-28
lines changed Original file line number Diff line number Diff line change @@ -1590,16 +1590,13 @@ namespace attributes {
1590
1590
1591
1591
int templateCount = 0 ;
1592
1592
int parenCount = 0 ;
1593
- bool endOfArg = false ;
1594
1593
std::string currentArg;
1595
1594
std::vector<std::string> args;
1596
1595
char quote = 0 ;
1597
1596
bool escaped = false ;
1598
1597
typedef std::string::const_iterator it_t ;
1599
1598
for (it_t it = argText.begin (); it != argText.end (); ++it) {
1600
1599
1601
- endOfArg = false ;
1602
-
1603
1600
// Store current character
1604
1601
char ch = *it;
1605
1602
@@ -1622,31 +1619,28 @@ namespace attributes {
1622
1619
(parenCount == 0 )) {
1623
1620
args.push_back (currentArg);
1624
1621
currentArg.clear ();
1625
- endOfArg = true ;
1626
- }
1627
-
1628
- if ( ! endOfArg) {
1629
-
1630
- // Append current character if not a space at start
1631
- if ( ! currentArg.empty () || ch != ' ' )
1632
- currentArg.push_back (ch);
1633
-
1634
- // Count use of potentially enclosed brackets
1635
- if ( ! quote) {
1636
- switch (ch) {
1637
- case ' <' :
1638
- templateCount++;
1639
- break ;
1640
- case ' >' :
1641
- templateCount--;
1642
- break ;
1643
- case ' (' :
1644
- parenCount++; // #nocov
1645
- break ; // #nocov
1646
- case ' )' :
1647
- parenCount--; // #nocov
1648
- break ; // #nocov
1649
- }
1622
+ continue ;
1623
+ }
1624
+
1625
+ // Append current character if not a space at start
1626
+ if ( ! currentArg.empty () || ch != ' ' )
1627
+ currentArg.push_back (ch);
1628
+
1629
+ // Count use of potentially enclosed brackets
1630
+ if ( ! quote) {
1631
+ switch (ch) {
1632
+ case ' <' :
1633
+ templateCount++;
1634
+ break ;
1635
+ case ' >' :
1636
+ templateCount--;
1637
+ break ;
1638
+ case ' (' :
1639
+ parenCount++; // #nocov
1640
+ break ; // #nocov
1641
+ case ' )' :
1642
+ parenCount--; // #nocov
1643
+ break ; // #nocov
1650
1644
}
1651
1645
}
1652
1646
}
You can’t perform that action at this time.
0 commit comments