Skip to content

Clang pragma attribute push does not work for nodebug on function/record/type_alias #150065

@mikeynap

Description

@mikeynap

Problem:

#pragma clang attribute push(__attribute__((__nodebug__)), apply_to = any( function)

gives

error: attribute '__nodebug__' can't be applied to 'function'

The only specifier that seems to work is variable(unless(is_parameter)). I tested all of the various flavors of function/record/type_alias with their corresponding unless and all gave the same output.

However, I can apply attribute(nodebug) to methods/functions/type_alias directly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    clangClang issues not falling into any other category

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions