C[++]: Normalizing include syntax ("" vs <>)

Stephan Bergmann sbergman at redhat.com
Mon Oct 9 08:29:26 UTC 2017


On 10/06/2017 11:26 AM, Kaganski Mike wrote:
> 3. *Always* use "" syntax *only* for includes that refer to headers
> placed next to the current source in the same directory (or
> subdirectories), i.e. that would be found using the "." entry of -I
> switch. These are implementation headers. This applies to both includes
> in c[xx] files as well as in h[xx] residing in directories like
> /sw/source/core/access (as opposed to those in /sw/inc).

Does that mean that once you're done we can stop adding -I. to SOLARINC 
in configure.ac?  (Also, it's unclear to me what

   -I$(dir $(3))

in gb_CObject__command_pattern in 
solenv/gbuild/platform/com_{GCC,MSC}_class.mk is good for, and whether 
it could then be dropped, too.)


More information about the LibreOffice mailing list