On 13-Jan-16 13:38, Ziller Eike wrote:

Let’s drop the argument about the clang code model from the discussion about 
whether to use #pragma once or not.

Still, as it came up, this argument raises the interesting question what will happen to users of the clang code model that cannot switch to (non-standard) pragma once for this or that reason?

What would it take to fix this problem? Can we work around it? Can we provide an upstream fix?

Apart from that, I did not understand the problem at all.
The opening #ifndef does match the #endif, doesn't it?
If "matches" means "is balanced with" at least.

#pragma once seems to be supported by all compilers that we care about for 
compiling Qt Creator.
It is less to type, makes renaming classes/files much more pleasant, and is 
less error prone.

+1 from me for at least allowing to use it.

Sure, let's give users the possibility to choose between include guards and pragma once.


Cheers,

Joerg
_______________________________________________
Qt-creator mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/qt-creator

Reply via email to