We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 420d705 commit e4d18aaCopy full SHA for e4d18aa
1 file changed
Tools/clinic/libclinic/dsl_parser.py
@@ -470,16 +470,12 @@ def at_staticmethod(self) -> None:
470
def at_vectorcall(self, *args: str) -> None:
471
if self.vectorcall is not None:
472
fail("Called @vectorcall twice!")
473
- exact_only = False
474
- for arg in args:
475
- if '=' in arg:
476
- key = arg.split('=', 1)[0]
477
- else:
478
- key = arg
479
- if key == 'exact_only':
480
- exact_only = True
481
482
- fail(f"@vectorcall: unknown argument {key!r}")
+ flags = list(args)
+ exact_only = 'exact_only' in flags
+ if exact_only:
+ flags.remove('exact_only')
+ if flags:
+ fail(f"@vectorcall: unknown argument {flags[0]!r}")
483
self.vectorcall = VectorcallOptions(exact_only=exact_only)
484
485
def at_coexist(self) -> None:
0 commit comments