https://bugs.llvm.org/show_bug.cgi?id=36900
Bug ID: 36900
Summary: Wrong ast-printer output at
__attribute__((nonnull(1)))
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Frontend
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
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)));
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs