aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/yacppdic/detail/internal/object_identifier.hpp5
-rw-r--r--include/yacppdic/tagging.hpp1
-rwxr-xr-xscripts/lint-includes.sh19
-rw-r--r--src/object_identifier.cpp2
4 files changed, 23 insertions, 4 deletions
diff --git a/include/yacppdic/detail/internal/object_identifier.hpp b/include/yacppdic/detail/internal/object_identifier.hpp
index a97ebd2..4132090 100644
--- a/include/yacppdic/detail/internal/object_identifier.hpp
+++ b/include/yacppdic/detail/internal/object_identifier.hpp
@@ -1,10 +1,11 @@
#pragma once
-#include "yacppdic/tagging.hpp"
-
+#include <cstddef>
#include <string_view>
#include <typeinfo>
+#include "yacppdic/tagging.hpp"
+
namespace yacppdic::internal
{
diff --git a/include/yacppdic/tagging.hpp b/include/yacppdic/tagging.hpp
index 498ff5d..2ecbabe 100644
--- a/include/yacppdic/tagging.hpp
+++ b/include/yacppdic/tagging.hpp
@@ -4,6 +4,7 @@
#include <array>
#include <cstddef>
#include <string_view>
+#include <type_traits>
#include <utility>
namespace yacppdic
diff --git a/scripts/lint-includes.sh b/scripts/lint-includes.sh
new file mode 100755
index 0000000..4248a80
--- /dev/null
+++ b/scripts/lint-includes.sh
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+# See https://github.com/include-what-you-use/include-what-you-use
+
+iwyu_tool.py \
+ --jobs 16 \
+ -p build \
+ src \
+ include \
+ -- \
+ -Xiwyu --cxx17ns \
+ -Xiwyu --check_also='*.hpp' \
+| fix_includes.py \
+ --blank_lines \
+ --reorder \
+ --nocomments
+
+# -Xiwyu --mapping_file=$PWD/mappings.imp \
+
diff --git a/src/object_identifier.cpp b/src/object_identifier.cpp
index 1144df7..a3fef45 100644
--- a/src/object_identifier.cpp
+++ b/src/object_identifier.cpp
@@ -2,8 +2,6 @@
#include "yacppdic/detail/internal/hash.hpp"
-#include <functional>
-
namespace yacppdic::internal
{