[LLVMbugs] [Bug 16968] New: format attribute not propagated across usage
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Aug 22 02:57:40 PDT 2013
http://llvm.org/bugs/show_bug.cgi?id=16968
Bug ID: 16968
Summary: format attribute not propagated across usage
Product: clang
Version: 3.3
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Frontend
Assignee: unassignedclangbugs at nondot.org
Reporter: cube2killfield at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 11083
--> http://llvm.org/bugs/attachment.cgi?id=11083&action=edit
compile with `clang -Weverything -c foo.c`
When specifying format attribute for functions where the intended argument must
be of literal string, if said string is passed off to another function that
requires said argument to be of a string-literal, warnings will occur.
Interestingly standard-library marked functions can be wrapped and no warnings
will occur, this seems to only manifest with user-defined wrappers around other
attribute format wrappers. Included is an attachment showing the problem as
described and various methods of trying to get around it, annotated of course.
--
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/20130822/33f0f643/attachment.html>
More information about the llvm-bugs
mailing list