Andrei Litvin | f8d7d1d | 2024-02-13 12:40:20 -0500 | [diff] [blame] | 1 | # General IWYU command example: |
| 2 | # |
| 3 | # iwyu_tool.py \ |
| 4 | # -p out/linux-x64-all-clusters-clang/compile_commands.json \ |
| 5 | # src/lib/core/ \ |
| 6 | # -- \ |
| 7 | # -Xiwyu --mapping_file=$(pwd)/iwyu.imp \ |
| 8 | # -Xiwyu --no_comments \ |
| 9 | # -Xiwyu --comment_style=none \ |
| 10 | # -Xiwyu --cxx17ns \ |
| 11 | # -Xiwyu no_fwd_decls \ |
| 12 | # | tee out/iwyu.out |
| 13 | # |
| 14 | # cd out/linux-x64-all-clusters-clang |
| 15 | # |
| 16 | # fix_includes.py <../iwyu.out |
| 17 | # |
| 18 | [ |
| 19 | { include: [ '"system/SystemBuildConfig.h"', private, '<system/SystemConfig.h>', public ] }, |
| 20 | { include: [ '"core/CHIPBuildConfig.h"', private, '<lib/core/CHIPConfig.h>', public ] }, |
| 21 | { include: [ '@"platform/.*/CHIPPlatformConfig.h"', private, '<lib/core/CHIPConfig.h>', public ] }, |
| 22 | ] |