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: [email protected]
Reporter: [email protected]
CC: [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs