def METHOD_NAME(cls, directive):
    cpp_directives = { 'expr', 'texpr', 'any', 'class',
                       'struct', 'func', 'member', 'var',
                       'type', 'concept', 'enum', 'enumerator' }
    if directive in cpp_directives:
        return f':cpp:{directive}:'
    return f':{directive}:'