Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add iwyu imp generater #222

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions utils/iwyu/generate.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/sh

OUTIMP=`pwd`/iutest.imp

if git rev-parse --ls-include-work-tree > /dev/null 2>&1; then
pushd `pwd`/`git rev-parse --show-cdup`/include
else
pushd ../../include
fi

echo "# Mappings for iutest" > $OUTIMP
echo "[" >> $OUTIMP

for f in `git ls-files internal/*.hpp`
do
echo " { include: [ \"$f\", private, \"iutest.hpp\", public ] }," >> $OUTIMP
done

echo "]" >> $OUTIMP

popd
40 changes: 40 additions & 0 deletions utils/iwyu/iutest.imp
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Mappings for iutest
[
{ include: [ "internal/iutest_charcode.hpp", private, "iutest.hpp", public ] },
{ include: [ "internal/iutest_compiler.hpp", private, "iutest.hpp", public ] },
{ include: [ "internal/iutest_console.hpp", private, "iutest.hpp", public ] },
{ include: [ "internal/iutest_constant.hpp", private, "iutest.hpp", public ] },
{ include: [ "internal/iutest_core_impl.hpp", private, "iutest.hpp", public ] },
{ include: [ "internal/iutest_debug.hpp", private, "iutest.hpp", public ] },
{ include: [ "internal/iutest_default_main.hpp", private, "iutest.hpp", public ] },
{ include: [ "internal/iutest_exception.hpp", private, "iutest.hpp", public ] },
{ include: [ "internal/iutest_factory.hpp", private, "iutest.hpp", public ] },
{ include: [ "internal/iutest_file.hpp", private, "iutest.hpp", public ] },
{ include: [ "internal/iutest_filepath.hpp", private, "iutest.hpp", public ] },
{ include: [ "internal/iutest_genparams.hpp", private, "iutest.hpp", public ] },
{ include: [ "internal/iutest_genparams_from_file.hpp", private, "iutest.hpp", public ] },
{ include: [ "internal/iutest_internal.hpp", private, "iutest.hpp", public ] },
{ include: [ "internal/iutest_internal_defs.hpp", private, "iutest.hpp", public ] },
{ include: [ "internal/iutest_list.hpp", private, "iutest.hpp", public ] },
{ include: [ "internal/iutest_log_stream.hpp", private, "iutest.hpp", public ] },
{ include: [ "internal/iutest_mediator.hpp", private, "iutest.hpp", public ] },
{ include: [ "internal/iutest_message.hpp", private, "iutest.hpp", public ] },
{ include: [ "internal/iutest_mfc.hpp", private, "iutest.hpp", public ] },
{ include: [ "internal/iutest_option_message.hpp", private, "iutest.hpp", public ] },
{ include: [ "internal/iutest_params_util.hpp", private, "iutest.hpp", public ] },
{ include: [ "internal/iutest_pool.hpp", private, "iutest.hpp", public ] },
{ include: [ "internal/iutest_port.hpp", private, "iutest.hpp", public ] },
{ include: [ "internal/iutest_pp.hpp", private, "iutest.hpp", public ] },
{ include: [ "internal/iutest_pragma.hpp", private, "iutest.hpp", public ] },
{ include: [ "internal/iutest_random.hpp", private, "iutest.hpp", public ] },
{ include: [ "internal/iutest_regex.hpp", private, "iutest.hpp", public ] },
{ include: [ "internal/iutest_result_reporter.hpp", private, "iutest.hpp", public ] },
{ include: [ "internal/iutest_socket.hpp", private, "iutest.hpp", public ] },
{ include: [ "internal/iutest_stdlib.hpp", private, "iutest.hpp", public ] },
{ include: [ "internal/iutest_stream.hpp", private, "iutest.hpp", public ] },
{ include: [ "internal/iutest_string.hpp", private, "iutest.hpp", public ] },
{ include: [ "internal/iutest_time.hpp", private, "iutest.hpp", public ] },
{ include: [ "internal/iutest_type_traits.hpp", private, "iutest.hpp", public ] },
{ include: [ "internal/iutest_typed_util.hpp", private, "iutest.hpp", public ] },
{ include: [ "internal/iutest_typelist.hpp", private, "iutest.hpp", public ] },
]