tools/spec: conform argument spacing to PEP8
This commit is contained in:
parent
7aca56ce9e
commit
a1e15882f6
@ -614,6 +614,7 @@ class Extension(Type):
|
|||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
def ignore_node(types: Dict[str, Type], root):
|
def ignore_node(types: Dict[str, Type], root):
|
||||||
|
types, root
|
||||||
pass
|
pass
|
||||||
|
|
||||||
parse_comment = ignore_node
|
parse_comment = ignore_node
|
||||||
@ -736,7 +737,6 @@ def write_header(path: str, q: List[Type], reg: Registry):
|
|||||||
dst.write(obj.define(reg))
|
dst.write(obj.define(reg))
|
||||||
dst.write('\n')
|
dst.write('\n')
|
||||||
|
|
||||||
|
|
||||||
# Define the default case for device and instance type traits.
|
# Define the default case for device and instance type traits.
|
||||||
dst.write("""
|
dst.write("""
|
||||||
#include <type_traits>
|
#include <type_traits>
|
||||||
@ -868,7 +868,6 @@ def write_dispatch(path: str, q: List[Type], reg: Registry):
|
|||||||
else:
|
else:
|
||||||
raise Exception("Unknown param type")
|
raise Exception("Unknown param type")
|
||||||
|
|
||||||
|
|
||||||
dispatch.write(f"""
|
dispatch.write(f"""
|
||||||
extern "C" {obj.result} {rename(obj.name)} ({", ".join(p.param for p in obj.params)}) noexcept {{
|
extern "C" {obj.result} {rename(obj.name)} ({", ".join(p.param for p in obj.params)}) noexcept {{
|
||||||
using first_arg_t = std::decay_t<decltype({obj.params[0].name})>;
|
using first_arg_t = std::decay_t<decltype({obj.params[0].name})>;
|
||||||
|
Loading…
Reference in New Issue
Block a user