Adam Majer
895543b272
OBS-URL: https://build.opensuse.org/request/show/477341 OBS-URL: https://build.opensuse.org/package/show/devel:tools/ctags?expand=0&rev=29
40 lines
1.2 KiB
Diff
40 lines
1.2 KiB
Diff
From fe0ba956daf1f3940543e3dce8ec0befcab4d386 Mon Sep 17 00:00:00 2001
|
|
From: Daniel Garcia <danielgarcia@gmail.com>
|
|
Date: Wed, 24 Feb 2016 00:59:15 -0800
|
|
Subject: [PATCH 12/19] Make sure we don't throw things away while collecting
|
|
the signature, though
|
|
|
|
---
|
|
c.c | 8 ++++++--
|
|
1 file changed, 6 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/c.c b/c.c
|
|
index b975453..386af29 100644
|
|
--- a/c.c
|
|
+++ b/c.c
|
|
@@ -1395,7 +1395,9 @@ static void skipToMatch (const char *const pair)
|
|
// watch out for '<<' in template arguments
|
|
int x = cppGetc ();
|
|
if(c == '<' && x == '<') {
|
|
- // we've found a << - do nothing
|
|
+ // we've found a << - do nothing except record the signature
|
|
+ if (CollectingSignature)
|
|
+ vStringPut(Signature, x);
|
|
} else {
|
|
cppUngetc (x);
|
|
++matchLevel;
|
|
@@ -1411,7 +1413,9 @@ static void skipToMatch (const char *const pair)
|
|
// watch out for '>>' in template arguments
|
|
int x = cppGetc ();
|
|
if(c == '>' && x == '>') {
|
|
- // we've found a >> in a template - skip it
|
|
+ // we've found a >> - do nothing except record the signature
|
|
+ if (CollectingSignature)
|
|
+ vStringPut(Signature, x);
|
|
} else {
|
|
cppUngetc (x);
|
|
--matchLevel;
|
|
--
|
|
2.11.0
|
|
|