From 2b087ab7cd63106dbca16afa3bb3c0d9eaf63b08 Mon Sep 17 00:00:00 2001 From: Weng Xuetian Date: Mon, 1 Apr 2024 13:33:12 -0700 Subject: [PATCH] Add iwyu pragma --- src/lib/fcitx-config/option.h | 2 +- src/lib/fcitx-utils/dbus/message.h | 2 +- src/lib/fcitx-utils/handlertable.h | 2 +- src/lib/fcitx-utils/keysym.h | 2 +- src/lib/fcitx-utils/signals.h | 2 +- src/lib/fcitx/addoninstance.h | 10 +++++----- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/lib/fcitx-config/option.h b/src/lib/fcitx-config/option.h index 3eb7bbbc2..4a6e03f81 100644 --- a/src/lib/fcitx-config/option.h +++ b/src/lib/fcitx-config/option.h @@ -13,7 +13,7 @@ #include #include #include -#include +#include // IWYU pragma: export #include #include diff --git a/src/lib/fcitx-utils/dbus/message.h b/src/lib/fcitx-utils/dbus/message.h index ae0b3950f..5b7bbc4ee 100644 --- a/src/lib/fcitx-utils/dbus/message.h +++ b/src/lib/fcitx-utils/dbus/message.h @@ -15,7 +15,7 @@ #include #include #include -#include +#include // IWYU pragma: export #include #include #include diff --git a/src/lib/fcitx-utils/handlertable.h b/src/lib/fcitx-utils/handlertable.h index 40281bbf9..6e71956d3 100644 --- a/src/lib/fcitx-utils/handlertable.h +++ b/src/lib/fcitx-utils/handlertable.h @@ -9,7 +9,7 @@ #include #include -#include +#include // IWYU pragma: export #include namespace fcitx { diff --git a/src/lib/fcitx-utils/keysym.h b/src/lib/fcitx-utils/keysym.h index 883974c92..73b2b8608 100644 --- a/src/lib/fcitx-utils/keysym.h +++ b/src/lib/fcitx-utils/keysym.h @@ -14,7 +14,7 @@ /// \brief Key sym related types. #include -#include +#include // IWYU pragma: export #include namespace fcitx { diff --git a/src/lib/fcitx-utils/signals.h b/src/lib/fcitx-utils/signals.h index bdf82ca14..ec43b090c 100644 --- a/src/lib/fcitx-utils/signals.h +++ b/src/lib/fcitx-utils/signals.h @@ -16,7 +16,7 @@ #include #include #include -#include +#include // IWYU pragma: export #include #include diff --git a/src/lib/fcitx/addoninstance.h b/src/lib/fcitx/addoninstance.h index 35cbc8eb2..549948a36 100644 --- a/src/lib/fcitx/addoninstance.h +++ b/src/lib/fcitx/addoninstance.h @@ -12,7 +12,7 @@ #include #include #include -#include +#include // IWYU pragma: export #include "fcitxcore_export.h" /// \addtogroup FcitxCore @@ -178,10 +178,10 @@ class FCITXCORE_EXPORT AddonInstance { &CLASS::FUNCTION)) FUNCTION##Adaptor{#CLASS "::" #FUNCTION, this, \ &CLASS::FUNCTION}; \ static_assert( \ - std::is_same>::value, \ + std::is_same_v>, \ "Signature doesn't match"); #define FCITX_ADDON_FACTORY(ClassName) \