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 {
15901590
15911591 int templateCount = 0 ;
15921592 int parenCount = 0 ;
1593- bool endOfArg = false ;
15941593 std::string currentArg;
15951594 std::vector<std::string> args;
15961595 char quote = 0 ;
15971596 bool escaped = false ;
15981597 typedef std::string::const_iterator it_t ;
15991598 for (it_t it = argText.begin (); it != argText.end (); ++it) {
16001599
1601- endOfArg = false ;
1602-
16031600 // Store current character
16041601 char ch = *it;
16051602
@@ -1622,31 +1619,28 @@ namespace attributes {
16221619 (parenCount == 0 )) {
16231620 args.push_back (currentArg);
16241621 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
16501644 }
16511645 }
16521646 }
You can’t perform that action at this time.
0 commit comments