Header refactoring patches

Yuriy Skalko yuriy.skalko at gmail.com
Mon Oct 26 07:42:38 UTC 2020


>> Previously it happened that these headers in all clients were included after
>> some other headers that define these types (directly or indirectly).
> 
> 
> Oh, I see it's just that we were always lucky to have e.g. include FileName.h
> before include Clipboard.h.
> 
> Thanks,
> Pavel

Yes.
C/C++ header include system is really fragile. And always including own 
header first (in .cpp) can help in preventing such issues with include 
order.


Yuriy


More information about the lyx-devel mailing list