[LLVMbugs] [Bug 16810] New: __attribute__((__format__, N, M)) should have a __wprintf__ version or the __printf__ version should be able to handle wprintf-like functions too
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Aug 6 14:54:47 PDT 2013
http://llvm.org/bugs/show_bug.cgi?id=16810
Bug ID: 16810
Summary: __attribute__((__format__, N, M)) should have a
__wprintf__ version or the __printf__ version should
be able to handle wprintf-like functions too
Product: clang
Version: unspecified
Hardware: Macintosh
OS: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: oohrah at mac.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
If I try to do this:
class A {
int WriteWithFormat(const WChar *format, ...) __attribute__((__format__
(__printf__, 2, 3)));
};
then I get this error:
Format argument not a string type
and if I try to do this:
class A {
int WriteWithFormat (const WChar *format, ...)
__attribute__((__format__ (__wprintf__, 2, 3)));
};
then I get this warning indicating it is useless:
'format' attribute argument not supported: __wprintf__
Seems like one or the other should be supported (I prefer the second
personally).
--
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/20130806/8ab8d5a6/attachment.html>
More information about the llvm-bugs
mailing list