[lldb-dev] Config.h

Nico Weber thakis at chromium.org
Thu Jul 3 12:16:09 PDT 2014


Why wouldn't you just include it in every file where it's needed? Why does
it have to be included first?


On Wed, Jul 2, 2014 at 10:04 PM, Zachary Turner <zturner at google.com> wrote:

> 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
>
> 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?
>
> _______________________________________________
> lldb-dev mailing list
> lldb-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20140703/4559caf1/attachment.html>


More information about the lldb-dev mailing list