code: def test_domain_cpp_ast_member_definitions():
      check(
          "member",
          "  const  std::string  &  name = 42",
          {1: "name__ssCR", 2: "4name"},
          output="const std::string &name = 42",
      )
      check(
          "member",
          "  const  std::string  &  name",
          {1: "name__ssCR", 2: "4name"},
          output="const std::string &name",
      )
      check(
          "member",
          "  const  std::string  &  name [ n ]",
          {1: "name__ssCRA", 2: "4name"},
          output="const std::string &name[n]",
      )
      check(
          "member",
          "const std::vector< unsigned int, long> &name",
          {1: "name__std::vector:unsigned-i.l:CR", 2: "4name"},
          output="const std::vector<unsigned int, long> &name",
      )
      check(
          "member",
          "module::myclass foo[n]",
          {1: "foo__module::myclassA", 2: "3foo"},
      )
      check("member", "int *const p", {1: "p__iPC", 2: "1p"})
      check("member", "extern int myInt", {1: "myInt__i", 2: "5myInt"})
      check(
          "member",
          "thread_local int myInt",
          {1: "myInt__i", 2: "5myInt"},
      )
      check(
          "member",
          "extern thread_local int myInt",
          {1: "myInt__i", 2: "5myInt"},
      )
      check(
          "member",
          "thread_local extern int myInt",
          {1: "myInt__i", 2: "5myInt"},
          "extern thread_local int myInt",
      )
  
      # tests based on https://en.cppreference.com/w/cpp/language/bit_field
      check("member", "int b : 3", {1: "b__i", 2: "1b"})
      check("member", "int b : 8 = 42", {1: "b__i", 2: "1b"})
      check("member", "int b : 8{42}", {1: "b__i", 2: "1b"})
      # TODO: enable once the ternary operator is supported
      # check('member', 'int b : true ? 8 : a = 42', {1: 'b__i', 2: '1b'})
      # TODO: enable once the ternary operator is supported
      # check('member', 'int b : (true ? 8 : a) = 42', {1: 'b__i', 2: '1b'})
      check("member", "int b : 1 || new int{0}", {1: "b__i", 2: "1b"})
  
      check("member", "inline int n", {1: "n__i", 2: "1n"})
      check("member", "constinit int n", {1: "n__i", 2: "1n"})
  
imports: import itertools
  import re
  import zlib
  import pytest
  import sphinx.domains.cpp
  from sphinx import addnodes
  from sphinx.addnodes import desc, desc_content, desc_name, desc_parameter, desc_parameterlist, desc_sig_name, desc_sig_space, desc_signature, desc_signature_line, pending_xref
  from sphinx.domains.cpp import DefinitionError, DefinitionParser, NoOldIdError, Symbol, _id_prefix, _max_id
  from sphinx.ext.intersphinx import load_mappings, normalize_intersphinx_mapping
  from sphinx.testing import restructuredtext
  from sphinx.testing.util import assert_node
  from sphinx.writers.text import STDINDENT
label_desc: Use image node_id 8 for calling a global function with example usage: test_domain_cpp_ast_member_definitions() without return types