[include-cleaner] Ignore the layering-violation errors for the standalone tool
authorHaojian Wu <hokein.wu@gmail.com>
Wed, 5 Jul 2023 07:29:11 +0000 (09:29 +0200)
committerHaojian Wu <hokein.wu@gmail.com>
Wed, 5 Jul 2023 11:30:26 +0000 (13:30 +0200)
commit67e94c9dc8ff7ac49f2557e02fdf375edd850d76
tree055c7f8df30531c732eca185f4b706e51492fab0
parentc3b7ab728a7a1ee2ad4b638fafd477e533471d37
[include-cleaner] Ignore the layering-violation errors for the standalone tool

If the source code is compilable-but-layering-violation, we still want
the tool to be functional on it (rather than bailing out).

Differential Revision: https://reviews.llvm.org/D154477
clang-tools-extra/include-cleaner/test/Inputs/modules/a.h [new file with mode: 0644]
clang-tools-extra/include-cleaner/test/Inputs/modules/module.map [new file with mode: 0644]
clang-tools-extra/include-cleaner/test/module.cpp [new file with mode: 0644]
clang-tools-extra/include-cleaner/tool/IncludeCleaner.cpp