From: Jacob Lifshay Date: Wed, 17 Mar 2021 20:50:13 +0000 (-0700) Subject: detect duplicate comment fields X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;ds=sidebyside;p=simplev-cpp.git detect duplicate comment fields --- diff --git a/generate_headers.py b/generate_headers.py index 9e33e93..7ead2d4 100755 --- a/generate_headers.py +++ b/generate_headers.py @@ -276,6 +276,9 @@ def make_opcodes_dict() -> Dict[str, Dict[str, Any]]: comment = opcode['comment'] if comment not in retval: retval[comment] = opcode + else: + print(f"duplicate comment field: {comment!r}" + f" subdecoder.pattern={subdecoder.pattern}") return retval