Wrong ast-printer output at __attribute__((nonnull(1)))
| Bugzilla Link | 36900 |
| Resolution | FIXED |
| Resolved on | Apr 18, 2018 11:35 |
| Version | trunk |
| OS | Linux |
| CC | @Axel-Naumann,@jdenny-ornl |
Extended Description
The ast printer print the wrong index at the nonnull attribute. If the first argument of a function should be nonnull, the nonnull attribute should have the value 1, but the printer prints 0.
$ echo 'void foo(void*) attribute((nonnull(1)));' | clang -cc1 -x c++ - -ast-print void foo(void *) attribute((nonnull(0)));
The correct output should be void foo(void *) attribute((nonnull(1)));
This should have been fixed by r327405. Would you please confirm? Thanks.
The bug is fixed. Now it works fine. Thank you very much.
Thank you!
This should have been fixed by r327405. Would you please confirm? Thanks.
The bug is fixed. Now it works fine. Thank you very much.
This should have been fixed by r327405. Would you please confirm? Thanks.