Issue 150065
Summary Clang pragma attribute push does not work for nodebug on function/record/type_alias
Labels clang
Assignees
Reporter 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. 

_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to