-
Notifications
You must be signed in to change notification settings - Fork 0
/
iwyu.imp
22 lines (22 loc) · 1023 Bytes
/
iwyu.imp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# General IWYU command example:
#
# iwyu_tool.py \
# -p out/linux-x64-all-clusters-clang/compile_commands.json \
# src/lib/core/ \
# -- \
# -Xiwyu --mapping_file=$(pwd)/iwyu.imp \
# -Xiwyu --no_comments \
# -Xiwyu --comment_style=none \
# -Xiwyu --cxx17ns \
# -Xiwyu no_fwd_decls \
# | tee out/iwyu.out
#
# cd out/linux-x64-all-clusters-clang
#
# fix_includes.py <../iwyu.out
#
[
{ include: [ '"system/SystemBuildConfig.h"', private, '<system/SystemConfig.h>', public ] },
{ include: [ '"core/CHIPBuildConfig.h"', private, '<lib/core/CHIPConfig.h>', public ] },
{ include: [ '@"platform/.*/CHIPPlatformConfig.h"', private, '<lib/core/CHIPConfig.h>', public ] },
]