parameters: (self, val)
return_statement: return None
docstring: Return the pretty printer for a val, if the type is supported.
docstring_summary: Return the pretty printer for a val, if the type is supported.
docstring_tokens: Return the pretty printer for a val if the type is supported .
function: def __call__(self, val):
          """Return the pretty printer for a val, if the type is supported."""
  
          # Do not handle any type that is not a struct/class.
          if val.type.strip_typedefs().code != gdb.TYPE_CODE_STRUCT:
              return None
  
          # Don't attempt types known to be inside libstdcxx.
          typename = val.type.name or val.type.tag or str(val.type)
          match = re.match("^std::(__.*?)::", typename)
          if match is None or match.group(1) in ["__cxx1998",
                                                 "__debug",
                                                 "__7",
                                                 "__g"]:
              return None
  
          # Handle any using declarations or other typedefs.
          typename = _prettify_typename(val.type)
          if not typename:
              return None
          without_generics = _remove_generics(typename)
          lookup_name = _remove_std_prefix(without_generics)
          if lookup_name in self.lookup:
              return self.lookup[lookup_name](val)
          return None
function_tokens: def __call__ ( self , val ) : # Do not handle any type that is not a struct/class. if val . type . strip_typedefs ( ) . code != gdb . TYPE_CODE_STRUCT : return None # Don't attempt types known to be inside libstdcxx. typename = val . type . name or val . type . tag or str ( val . type ) match = re . match ( "^std::(__.*?)::" , typename ) if match is None or match . group ( 1 ) in [ "__cxx1998" , "__debug" , "__7" , "__g" ] : return None # Handle any using declarations or other typedefs. typename = _prettify_typename ( val . type ) if not typename : return None without_generics = _remove_generics ( typename ) lookup_name = _remove_std_prefix ( without_generics ) if lookup_name in self . lookup : return self . lookup [ lookup_name ] ( val ) return None