<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - __attribute__((__format__, N, M)) should have a __wprintf__ version or the __printf__ version should be able to handle wprintf-like functions too"
   href="http://llvm.org/bugs/show_bug.cgi?id=16810">16810</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>__attribute__((__format__, N, M)) should have a __wprintf__ version or the __printf__ version should be able to handle wprintf-like functions too
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Macintosh
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>MacOS X
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>-New Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>oohrah@mac.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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).</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>