<div dir="ltr"><div class="gmail_quote"><div dir="ltr">Hi Daniel,<div>Sorry, I sent the initial message to the wrong list.</div><div><br><div>When using pre-compiled header, the Main Header for the file will not be detected since the first header needs to be the precompiled header.</div><div><div><br></div><div>I was looking at fixing it, but I am not quite sure how to go fixing it?</div></div><div><br></div><div>This will result in the main header being moved.</div><div><br></div><div><div>Expected:</div><div>MyFile.cpp:</div><div><br></div><div>  #include "stdafx.h"</div><div>  #include "MyFile.h"</div><div>  #include "AnotherHeader.h"</div><div><br></div><div>Actual:</div><div><div>MyFile.cpp:</div><div><br></div><div>  #include "stdafx.h"</div><div>  #include "AnotherHeader.h"</div><div>  #include "MyFile.h"</div></div></div><div><br></div><div>This can be somewhat worked around by leaving a line after the Main Header.</div><div><br></div><div>Fix Option 1:</div><div>Add a new option: PercompiledHeaderRegEx, and if detected assign priority -1, and keep on looking for MainHeader (Not great since we use unsigned)</div><div><br></div><div>Fix Option 2:</div><div>Add a keyword that can be used instead of the regular expression to refer to the MainHeader. This way one can add a regular expression for the pre-compiled header priority 0, and one for MainHeader priority 1. Consider it main header if first header with category >= MainHeaderCategory.</div><div><br></div><div>Fix Option 3:</div><div>A better plan?</div><div><br></div><div>Do you have any thought on the problem?</div><div>Kind Regards,</div><div>Jean-Philippe.</div></div></div>
</div><br></div>