On Wed, Oct 11, 2017 at 11:45:54AM +0200, Emilio Cobos Álvarez wrote:
Hi,
I'm adding a header to the build, and I'm wondering: Can we use pragma once?
I don't see it anywhere in the build except third-party paths and:
dom/svg/nsISVGPoint.h
xpcom/io/nsAnonymousTemporaryFile.h
The last time
On Thu, Oct 12, 2017 at 8:16 AM, Gian-Carlo Pascutto <g...@mozilla.com>
wrote:
> On 11-10-17 11:45, Emilio Cobos Álvarez wrote:
> > Hi,
> >
> > I'm adding a header to the build, and I'm wondering: Can we use pragma
> once?
> >
> > I don't see it anyw
>>>>> "Marco" == Marco Bonardo <mbona...@mozilla.com> writes:
Marco> See the previous pragma once proposal:
Marco>
https://groups.google.com/forum/#!msg/mozilla.dev.platform/PgDjWw3xp8k/PLYQc5xoWmsJ
Something I didn't see in that thread is that, at least
See the previous pragma once proposal:
https://groups.google.com/forum/#!msg/mozilla.dev.platform/PgDjWw3xp8k/PLYQc5xoWmsJ
On Wed, Oct 11, 2017 at 11:45 AM, Emilio Cobos Álvarez <emi...@crisal.io> wrote:
> Hi,
>
> I'm adding a header to the build, and I'm wondering: Can we
Hi,
I'm adding a header to the build, and I'm wondering: Can we use pragma once?
I don't see it anywhere in the build except third-party paths and:
dom/svg/nsISVGPoint.h
xpcom/io/nsAnonymousTemporaryFile.h
So I'm not sure if it's because it's somehow prohibited or not
recommended, or just
On Mon, Oct 29, 2012 at 06:11:04PM -0700, Gregory Szorc wrote:
On 10/29/12 5:52 PM, Robert O'Callahan wrote:
On Tue, Oct 30, 2012 at 1:13 PM, Nicholas Nethercote n.netherc...@gmail.com
wrote:
#pragma once does have one drawback (other than being non-standard)
and that is if you have
I'd like to switch our coding style to use #pragma once instead of #include
guards. #pragma once is supported on all compilers than can build our
source code, it is more concise, and it avoids possible name clashes in
#include guards (or adopting silly conventions for avoiding them), and it
can
Not a concern, but the obvious question is: Do you have any idea how
this affects compile times?
On Mon, Oct 29, 2012 at 7:44 PM, Ehsan Akhgari ehsan.akhg...@gmail.com wrote:
I'd like to switch our coding style to use #pragma once instead of #include
guards. #pragma once is supported on all
On 2012-10-29 7:56 PM, Justin Lebar wrote:
Not a concern, but the obvious question is: Do you have any idea how
this affects compile times?
It probably won't have any meaningful improvements, since all decent
compilers already seem to special case #include guards.
Ehsan
On Tue, Oct 30, 2012 at 1:13 PM, Nicholas Nethercote n.netherc...@gmail.com
wrote:
#pragma once does have one drawback (other than being non-standard)
and that is if you have the same file in different locations (we have
this because our build system copies files around) then the compiler
On 2012-10-29 9:11 PM, Gregory Szorc wrote:
On 10/29/12 5:52 PM, Robert O'Callahan wrote:
On Tue, Oct 30, 2012 at 1:13 PM, Nicholas Nethercote
n.netherc...@gmail.com
wrote:
#pragma once does have one drawback (other than being non-standard)
and that is if you have the same file in different
On 10/29/12 7:17 PM, Ehsan Akhgari wrote:
On 2012-10-29 9:11 PM, Gregory Szorc wrote:
On 10/29/12 5:52 PM, Robert O'Callahan wrote:
On Tue, Oct 30, 2012 at 1:13 PM, Nicholas Nethercote
n.netherc...@gmail.com
wrote:
#pragma once does have one drawback (other than being non-standard
12 matches
Mail list logo