aboutsummaryrefslogtreecommitdiffstats
path: root/sys/syz-extract/fetch.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2019-03-14 15:30:58 +0100
committerDmitry Vyukov <dvyukov@google.com>2019-03-14 15:30:58 +0100
commitd72db19b2a8ebb5aedf5a7c4950fc282a1042670 (patch)
treedea1dea841a89cc656f631e531312496194336f1 /sys/syz-extract/fetch.go
parent38ebd40e415a7e1ef05331debec039cad47da8ea (diff)
sys/syz-extract: support more identifier quoting options
That's insanity compilers shuffle them in all possible combinations.
Diffstat (limited to 'sys/syz-extract/fetch.go')
-rw-r--r--sys/syz-extract/fetch.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/syz-extract/fetch.go b/sys/syz-extract/fetch.go
index db37fe4ab..a3c49c9b5 100644
--- a/sys/syz-extract/fetch.go
+++ b/sys/syz-extract/fetch.go
@@ -36,10 +36,9 @@ func extract(info *compiler.ConstInfo, cc string, args []string, addSource strin
valMap[val] = true
}
for _, errMsg := range []string{
- "error: ‘([a-zA-Z0-9_]+)’ undeclared",
- "error: '([a-zA-Z0-9_]+)' undeclared",
- "note: in expansion of macro ‘([a-zA-Z0-9_]+)’",
- "error: use of undeclared identifier '([a-zA-Z0-9_]+)'",
+ `error: [‘']([a-zA-Z0-9_]+)[’'] undeclared`,
+ `note: in expansion of macro [‘']([a-zA-Z0-9_]+)[’']`,
+ `error: use of undeclared identifier [‘']([a-zA-Z0-9_]+)[’']`,
} {
re := regexp.MustCompile(errMsg)
matches := re.FindAllSubmatch(out, -1)