<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </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 - clang-cl support C language standard option /std:c11 and /std:c17"
   href="https://bugs.llvm.org/show_bug.cgi?id=48185">48185</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>clang-cl support C language standard option /std:c11 and /std:c17
          </td>
        </tr>

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

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

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows NT
          </td>
        </tr>

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

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>Driver
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>zufuliu@163.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org, neeilans@live.com, richard-llvm@metafoo.co.uk
          </td>
        </tr></table>
      <p>
        <div>
        <pre>C language standard option /std:c11 and /std:c17 ware added in Visual Studio
2019 16.8 see
<a href="https://docs.microsoft.com/en-us/visualstudio/releases/2019/release-notes#16.8.0">https://docs.microsoft.com/en-us/visualstudio/releases/2019/release-notes#16.8.0</a>

current clang-cl (as of Nov 14, 23cc838099e10b13a32e54105f4db0f1b7e3a842)
clang-cl /c /std:c11 test.c
clang-cl: warning: argument unused during compilation: '/std:c11'
[-Wunused-command-line-argument]

though `clang -c -std=c11 test.c` works.

test.c:
```
int add(int x, int y) {
    return x + y;
}
```</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>