code: def is_forward_decl(decl):
      if decl.kind is _KIND.TYPEDEF:
          return False
      elif is_type_decl(decl):
          return not decl.data
      elif decl.kind is _KIND.FUNCTION:
          # XXX This doesn't work with ParsedItem.
          return decl.signature.isforward
      elif decl.kind is _KIND.VARIABLE:
          # No var decls are considered forward (or all are...).
          return False
      else:
          raise NotImplementedError(decl)
  
file_path: cpython/Tools/c-analyzer/c_parser/match.py
imports: import re
  from .None import info
  from .parser._regexes import SIMPLE_TYPE
label_desc: Use image node_id 7 for calling a global function with example usage: is_forward_decl(decl) and returns: False, unknown, decl, False