Skip to content

Commit

Permalink
Add iwyu pragma
Browse files Browse the repository at this point in the history
  • Loading branch information
wengxt committed Apr 1, 2024
1 parent 37f3d5d commit 2b087ab
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/lib/fcitx-config/option.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include <string>
#include <type_traits>
#include <fcitx-config/marshallfunction.h>
#include <fcitx-config/option_details.h>
#include <fcitx-config/option_details.h> // IWYU pragma: export
#include <fcitx-config/optiontypename.h>
#include <fcitx-config/rawconfig.h>

Expand Down
2 changes: 1 addition & 1 deletion src/lib/fcitx-utils/dbus/message.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include <tuple>
#include <type_traits>
#include <vector>
#include <fcitx-utils/dbus/message_details.h>
#include <fcitx-utils/dbus/message_details.h> // IWYU pragma: export
#include <fcitx-utils/log.h>
#include <fcitx-utils/macros.h>
#include <fcitx-utils/metastring.h>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/fcitx-utils/handlertable.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

#include <functional>
#include <unordered_map>
#include <fcitx-utils/handlertable_details.h>
#include <fcitx-utils/handlertable_details.h> // IWYU pragma: export
#include <fcitx-utils/intrusivelist.h>

namespace fcitx {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/fcitx-utils/keysym.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
/// \brief Key sym related types.

#include <cstdint>
#include <fcitx-utils/keysymgen.h>
#include <fcitx-utils/keysymgen.h> // IWYU pragma: export
#include <fcitx-utils/macros.h>

namespace fcitx {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/fcitx-utils/signals.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include <fcitx-utils/handlertable.h>
#include <fcitx-utils/intrusivelist.h>
#include <fcitx-utils/macros.h>
#include <fcitx-utils/signals_details.h>
#include <fcitx-utils/signals_details.h> // IWYU pragma: export
#include <fcitx-utils/trackableobject.h>
#include <fcitx-utils/tuplehelpers.h>

Expand Down
10 changes: 5 additions & 5 deletions src/lib/fcitx/addoninstance.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include <fcitx-config/configuration.h>
#include <fcitx-utils/metastring.h>
#include <fcitx/addoninfo.h>
#include <fcitx/addoninstance_details.h>
#include <fcitx/addoninstance_details.h> // IWYU pragma: export
#include "fcitxcore_export.h"

/// \addtogroup FcitxCore
Expand Down Expand Up @@ -178,10 +178,10 @@ class FCITXCORE_EXPORT AddonInstance {
&CLASS::FUNCTION)) FUNCTION##Adaptor{#CLASS "::" #FUNCTION, this, \
&CLASS::FUNCTION}; \
static_assert( \
std::is_same<decltype(::fcitx::MakeAddonFunctionAdaptor( \
&CLASS::FUNCTION))::Signature, \
::fcitx::AddonFunctionSignatureType<fcitxMakeMetaString( \
#CLASS "::" #FUNCTION)>>::value, \
std::is_same_v<decltype(::fcitx::MakeAddonFunctionAdaptor( \
&CLASS::FUNCTION))::Signature, \
::fcitx::AddonFunctionSignatureType< \
fcitxMakeMetaString(#CLASS "::" #FUNCTION)>>, \
"Signature doesn't match");

#define FCITX_ADDON_FACTORY(ClassName) \
Expand Down

0 comments on commit 2b087ab

Please sign in to comment.