Skip to content

Commit fe0ba95

Browse files
committed
Make sure we don't throw things away while collecting the signature, though
1 parent e304e5f commit fe0ba95

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

c.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1395,7 +1395,9 @@ static void skipToMatch (const char *const pair)
13951395
// watch out for '<<' in template arguments
13961396
int x = cppGetc ();
13971397
if(c == '<' && x == '<') {
1398-
// we've found a << - do nothing
1398+
// we've found a << - do nothing except record the signature
1399+
if (CollectingSignature)
1400+
vStringPut(Signature, x);
13991401
} else {
14001402
cppUngetc (x);
14011403
++matchLevel;
@@ -1411,7 +1413,9 @@ static void skipToMatch (const char *const pair)
14111413
// watch out for '>>' in template arguments
14121414
int x = cppGetc ();
14131415
if(c == '>' && x == '>') {
1414-
// we've found a >> in a template - skip it
1416+
// we've found a >> - do nothing except record the signature
1417+
if (CollectingSignature)
1418+
vStringPut(Signature, x);
14151419
} else {
14161420
cppUngetc (x);
14171421
--matchLevel;

0 commit comments

Comments
 (0)