On 24 January 2018 at 16:30, Oswald Buddenhagen
<[email protected]> wrote:
> but that's only tangentially related to the issue at hand, because the
> compiler would still pick only one of the files under normal
> circumstances. a problem would arise if different include styles in
> different files lead to different headers being picked up from the same
> -I list. it's fairly hard to construct such a case, and it *probably*
> doesn't appear inside qt's "regular" build system (that specifically
> excludes webkit & webengine).


That risk is not worth taking. Get your include guards right, and
don't mess with #pragma once.
There are tools that can help, but I haven't used them myself, and I
don't know whether clang
has anything for this.
_______________________________________________
Development mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to