[Bug 65108] Clean-up header includes (global/local)

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Nov 5 02:21:21 PST 2013


--- Comment #12 from Stephan Bergmann <sbergman at redhat.com> ---
(In reply to comment #11)
> I'd suggest my compromise: using "" for includes in the same directory as
> the cxx file, and <> for everything else; clearly we'd need a script to
> identify and re-write for those. Do we have such a thing ? :-)

A conforming compiler is not require to support #include <...> for anything but
the standard headers.  In practice, the compilers we use today do.  So, all
other things being equal, the safest thing to do would be to use #include "..."
for inclusion of all of LO's source files.

However, the odd behavior of MSVC described in comment 8,
<http://msdn.microsoft.com/en-us/library/36k2cdd4%28v=vs.80%29.aspx> "#include
Directive (C/C++)" can be used as an argument in favor of <...>.  Though I
would probably use <...> exclusively then, and not even stick to "..." for
inclusion of source files from the same directory.

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20131105/d0a2215d/attachment.html>

More information about the LibreOffice mailing list