[llvm-bugs] [Bug 47957] New: implement -Wattribute-alias=n
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Oct 23 13:06:36 PDT 2020
https://bugs.llvm.org/show_bug.cgi?id=47957
Bug ID: 47957
Summary: implement -Wattribute-alias=n
Product: clang
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: Frontend
Assignee: unassignedclangbugs at nondot.org
Reporter: ndesaulniers at google.com
CC: llvm-bugs at lists.llvm.org, neeilans at live.com,
richard-llvm at metafoo.co.uk
This is helpful for catching instances when alias' are declared but types don't
match.
void test13(float y) {}
void test13_foo(int y) __attribute__((alias ("test13")));
<source>:5:6: warning: 'test13_foo' alias between functions of incompatible
types 'void(int)' and 'void(float)' [-Wattribute-alias=]
https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html
Forked from report: https://reviews.llvm.org/D66492#2350947
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20201023/1b4e6832/attachment.html>
More information about the llvm-bugs
mailing list