forked from mirrors/gecko-dev
Bug 1754930 - Understand mozilla::Maybe in masm declarations. r=nbp
Basically, argument types must allow for templated types and optional args must recognize at least `mozilla::Nothing()`. It's a bit hacky but it seems like a useful extension that won't destroy anything, and I need this. Differential Revision: https://phabricator.services.mozilla.com/D138526
This commit is contained in:
parent
0ce54a83db
commit
16bd16b49d
1 changed files with 2 additions and 2 deletions
|
|
@ -34,9 +34,9 @@ all_architecture_names = set(["x86", "x64", "arm", "arm64"])
|
||||||
all_shared_architecture_names = set(["x86_shared", "arm", "arm64"])
|
all_shared_architecture_names = set(["x86_shared", "arm", "arm64"])
|
||||||
|
|
||||||
reBeforeArg = "(?<=[(,\s])"
|
reBeforeArg = "(?<=[(,\s])"
|
||||||
reArgType = "(?P<type>[\w\s:*&]+)"
|
reArgType = "(?P<type>[\w\s:*&<>]+)"
|
||||||
reArgName = "(?P<name>\s\w+)"
|
reArgName = "(?P<name>\s\w+)"
|
||||||
reArgDefault = "(?P<default>(?:\s=[^,)]+)?)"
|
reArgDefault = "(?P<default>(?:\s=(?:(?:\s[\w:]+\(\))|[^,)]+))?)"
|
||||||
reAfterArg = "(?=[,)])"
|
reAfterArg = "(?=[,)])"
|
||||||
reMatchArg = re.compile(reBeforeArg + reArgType + reArgName + reArgDefault + reAfterArg)
|
reMatchArg = re.compile(reBeforeArg + reArgType + reArgName + reArgDefault + reAfterArg)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue