diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2019-03-14 15:30:58 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2019-03-14 15:30:58 +0100 |
| commit | d72db19b2a8ebb5aedf5a7c4950fc282a1042670 (patch) | |
| tree | dea1dea841a89cc656f631e531312496194336f1 /sys/syz-extract/fetch.go | |
| parent | 38ebd40e415a7e1ef05331debec039cad47da8ea (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.go | 7 |
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) |
