<div>Are there any plans for testing compilations of the headers on the various platforms?</div>
<div> </div>
<div>I would like to look into getting Visual Studio and Windows headers to compile, and the first step would be to see where we are.</div>
<div> </div>
<div>I'm thinking that if we had some tests that just include individual headers and just syntax check them, that would both give us this information, as well as become a regression test.</div>
<div> </div>
<div>What I've done locally is to create an "Includes" directory under "test", and put in simple tests of the form:</div>
<div> </div>
<div>// RUN: clang -fsyntax-only %s</div>
<div>#include <stdio.h><br></div>
<div> </div>
<div>I'm using the clang driver because of the -fms-extension issue.</div>
<div> </div>
<div>Since headers might act differently between C and C++, perhaps each test should have two compile commands, one for C and one for C++.  (I haven't figured out the right options to do that yet with the clang driver.)</div>

<div> </div>
<div>Since stdio.h might include other files, I test those separately.  Since these might be platform-specific, I'd use conditionals:</div>
<div> </div>
<div>// This test is for Windows only.<br>// RUN: clang -fsyntax-only %s</div>
<div>#if defined(__WIN32__) || defined(__WIN64__)</div>
<div>#include <crtdefs.h></div>
<div>#endif</div>
<div> </div>
<div>Platform and complier-specific files probably should be in separate directories, perhaps under Includes, i.e.:</div>
<div> </div>
<div>test</div>
<div>    Includes</div>
<div>        VisualStudio</div>
<div>        Windows</div>
<div>        GNU</div>
<div> </div>
<div>I separated VisualStudio and Windows with respect to the files under Visual Studio and those under the Platform SDK also being separated, but they could be combined.</div>
<div> </div>
<div>Anyway, let me know what you think.</div>
<div> </div>
<div>-- <br>John Thompson<br><a href="mailto:John.Thompson.JTSoftware@gmail.com" target="_blank">John.Thompson.JTSoftware@gmail.com</a><br><br></div>