<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/155192>155192</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            public LLVM CLANG headers exposed MSVC warnings, better use a testcase to catch all warnings of public headers.
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          lygstate
      </td>
    </tr>
</table>

<pre>
    C:/mesa-deps/include\llvm/Option/ArgList.h(135): error C2220: the following warning is treated as an error
C:/mesa-deps/include\llvm/Option/ArgList.h(135): warning C4146: unary minus operator applied to unsigned type, result still unsigned
C:/mesa-deps/include\clang/Serialization/SourceLocationEncoding.h(111): warning C4146: unary minus operator applied to unsigned type, result still unsigned
C:/mesa-deps/include\clang/Serialization/SourceLocationEncoding.h(177): warning C4146: unary minus operator applied to unsigned type, result still unsigned

C:/mesa-deps/include\llvm/TargetParser/SubtargetFeature.h(58): error C2220: the following warning is treated as an error
C:/mesa-deps/include\llvm/TargetParser/SubtargetFeature.h(58): warning C4146: unary minus operator applied to unsigned type, result still unsigned
C:/mesa-deps/include\llvm/Analysis/LoopAccessAnalysis.h(309): warning C4146: unary minus operator applied to unsigned type, result still unsigned
C:/mesa-deps/include\llvm/CodeGen/SelectionDAGNodes.h(242): warning C4146: unary minus operator applied to unsigned type, result still unsigned
C:/mesa-deps/include\llvm/CodeGen/SelectionDAGNodes.h(248): warning C4146: unary minus operator applied to unsigned type, result still unsigned
C:/mesa-deps/include\llvm/CodeGen/SelectionDAGNodes.h(1179): warning C4146: unary minus operator applied to unsigned type, result still unsigned

C:/mesa-deps/include\llvm/DebugInfo/DIContext.h(195): error C2220: the following warning is treated as an error
C:/mesa-deps/include\llvm/DebugInfo/DIContext.h(195): warning C4146: unary minus operator applied to unsigned type, result still unsigned
C:/mesa-deps/include\llvm/DebugInfo/DIContext.h(196): warning C4146: unary minus operator applied to unsigned type, result still unsigned
C:/mesa-deps/include\llvm/DebugInfo/DIContext.h(224): warning C4146: unary minus operator applied to unsigned type, result still unsigned
C:/mesa-deps/include\llvm/DebugInfo/DIContext.h(226): warning C4146: unary minus operator applied to unsigned type, result still unsigned
C:/mesa-deps/include\llvm/CodeGen/SelectionDAGNodes.h(242): warning C4146: unary minus operator applied to unsigned type, result still unsigned
C:/mesa-deps/include\llvm/CodeGen/SelectionDAGNodes.h(248): warning C4146: unary minus operator applied to unsigned type, result still unsigned
C:/mesa-deps/include\llvm/CodeGen/SelectionDAGNodes.h(1179): warning C4146: unary minus operator applied to unsigned type, result still unsigned

</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJzsl89unDAQxp_GXKyswCwLHDhQ0o0ibdJKqXIfzACuvDbynyTbp6_MkvTWpFKTbKqegDG2f_N9owGDtWJQiBXJPpHsPALvRm0qeRisA4dRq7tD1ZC0Jmy7RwtnHU6WsK1QXPoOSdZIebcnbPtlckIrwra1GXbCutVIWJGkGWElSWuKxmhDG8ZYHB7diLTXUup7oQZ6D0aFq7DUGQSHHQVLQR1nkbj-CwCPezTrZL0JAa_AHOheKG-pntCA04bCNEmBHXWaejUr01F3mJCwhhq0XjpqnZDyafQ5OC5BDYRtb9AIkOIHLJA32huOO83nwGfFdSfUcGROko_HnOevzvzCOvgGZkD3FYxFE6B96-bIFsF5gzNuVrxZWf4RzjsZvqDWCuTBijC203qqOUdrH4MzaBqXJ0Ha6A4vcK5JlMhDOZ7XF9e6wyMnW7MPwnkazj_HmST56xv_QtZzbP1wqXod7i8brRw-LM2-fLuvzUso3tfT3xFuTpyQsfXJE56Ghv874T_YCaOuSrsyLSHCKsmzTbzJS1ZEY7VJWQnQ930Wb7ocgSVtXpRlW3YFpkWeR6JiMcviYHucFutixQroe877vkizNst7so5xD0KuQr4rbYZIWOuxSrIsKVkkoUVp58MAY8t_IAvnAlOFCWetHyxZx1JYZ38t4YSTWE2-lYLT3e72ija7-vqCjggdGkvxYdIWO3p1c9s8ymaDAC06h4Z6ixSoQ-s4WAxScXB8pCDl0-tU93TZYVl2FXkjq9G5yR6NJWw7CDf6dsV18HKxdAafjP6O3AXLQ77B-yXlu4r9DAAA__-talzX">