<div dir="ltr">Why wouldn't you just include it in every file where it's needed? Why does it have to be included first?</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jul 2, 2014 at 10:04 PM, Zachary Turner <span dir="ltr"><<a href="mailto:zturner@google.com" target="_blank">zturner@google.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">It would be useful if there were a header file that were always included in every CPP file before any other header file, that would initialize any platform-specific defines and whatnot. We already have a header file that seems to serve exactly this purpose, but it just isn't always included. It's lldb/Host/Config.h<div>
<br></div><div>Doing a single pass over every file and manually including this would be a lot of work, but can we make it a policy going forward that a) this file will always be included first, in every newly created cpp file, and b) When touching files, try to remember to add this include at the top?</div>
</div>
<br>_______________________________________________<br>
lldb-dev mailing list<br>
<a href="mailto:lldb-dev@cs.uiuc.edu">lldb-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev</a><br>
<br></blockquote></div><br></div>