Temporary header file '/tmp/MfMsSMuEvO/dump1.h' with the following content will be compiled to create GCC translation unit dump: // add defines #define __STDC_VERSION__ 201710L #define _GXX_NULLPTR_T #define CLUTTER_ENABLE_COMPOSITOR_API 1 #define _REGEX_NELTS(n) #define _Atomic #define PACKED #define getaddrinfo_a(a,b,c,d) // add includes #include "/usr/include/KF5/BalooWidgets/baloo/filemetadataconfigwidget.h" #include "/usr/include/KF5/BalooWidgets/baloo/filemetadatawidget.h" #include "/usr/include/KF5/BalooWidgets/baloo/tagwidget.h" #include "/usr/include/KF5/BalooWidgets/baloo/widgets_export.h" // add namespaces namespace QAlgorithmsPrivate{typedef int tmp_add_type_1;} QAlgorithmsPrivate::tmp_add_type_1 tmp_add_func_1(){return 0;}; namespace Qt{typedef int tmp_add_type_2;} Qt::tmp_add_type_2 tmp_add_func_2(){return 0;}; namespace QtGlobalStatic{typedef int tmp_add_type_3;} QtGlobalStatic::tmp_add_type_3 tmp_add_func_3(){return 0;}; namespace QtMetaTypePrivate{typedef int tmp_add_type_4;} QtMetaTypePrivate::tmp_add_type_4 tmp_add_func_4(){return 0;}; namespace QtMetaTypePrivate{namespace QtPrivate{typedef int tmp_add_type_5;}} QtMetaTypePrivate::QtPrivate::tmp_add_type_5 tmp_add_func_5(){return 0;}; namespace QtMetaTypePrivate{namespace QtPrivate{namespace ContainerCapabilitiesMetaProgrammingHelper{typedef int tmp_add_type_6;}}} QtMetaTypePrivate::QtPrivate::ContainerCapabilitiesMetaProgrammingHelper::tmp_add_type_6 tmp_add_func_6(){return 0;}; namespace QtPrivate{typedef int tmp_add_type_7;} QtPrivate::tmp_add_type_7 tmp_add_func_7(){return 0;}; namespace QtPrivate{namespace DeprecatedRefClassBehavior{typedef int tmp_add_type_8;}} QtPrivate::DeprecatedRefClassBehavior::tmp_add_type_8 tmp_add_func_8(){return 0;}; namespace QtPrivate{namespace SwapExceptionTester{typedef int tmp_add_type_9;}} QtPrivate::SwapExceptionTester::tmp_add_type_9 tmp_add_func_9(){return 0;}; The GCC parameters: gcc -fdump-lang-raw -fkeep-inline-functions -c -x c++ -fpermissive -w "/tmp/MfMsSMuEvO/dump1.h" -I/usr/include/arm-linux-gnueabihf/qt5 -I/usr/include/KF5/KIOCore -I/usr/include/KF5/KCoreAddons -I/usr/include/arm-linux-gnueabihf/qt5/QtWidgets -I/usr/include/arm-linux-gnueabihf/qt5/QtCore In file included from /usr/include/KF5/KIOCore/kfileitem.h:15, from /usr/include/KF5/KIOCore/KFileItem:1, from /usr/include/KF5/BalooWidgets/baloo/filemetadataconfigwidget.h:12, from /tmp/MfMsSMuEvO/dump1.h:12: /usr/include/KF5/KIOCore/kacl.h:12:10: fatal error: qplatformdefs.h: No such file or directory 12 | #include | ^~~~~~~~~~~~~~~~~ compilation terminated.