[Development] Using '#pragma once' instead of include guards?

Thiago Macieira thiago.macieira at intel.com
Tue Oct 11 22:11:16 CEST 2022


On Tuesday, 11 October 2022 12:25:13 PDT Kyle Edwards via Development wrote:
> Speaking as co-maintainer of CMake, we have effectively required #pragma
> once to build CMake itself since August 2017, we officially codified
> this as policy in September 2020, and we will soon be writing a
> clang-tidy plugin to enforce this in our CI. We have not received any
> complaints about it. Just my $0.02.

Thanks for the information. This confirms what we already knew that all systems 
and compilers where Qt would be compiled do support it.

However, neither Qt Creator nor CMake are libraries. They are not comparable.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Cloud Software Architect - Intel DCAI Cloud Engineering





More information about the Development mailing list