xref: /llvm-project/clang-tools-extra/include-cleaner/test/module.cpp (revision 67e94c9dc8ff7ac49f2557e02fdf375edd850d76)
1 // RUN: cp %s %t.cpp
2 // RUN: clang-include-cleaner -edit %t.cpp -- -I%S/Inputs/modules -fimplicit-module-maps -fmodules-strict-decluse -fmodule-name=XA
3 // RUN: FileCheck --match-full-lines --check-prefix=EDIT %s < %t.cpp
4 
5 // Verify the tool still works on compilable-but-layering-violation code.
6 #include "a.h"
7 // EDIT-NOT: {{^}}#include "a.h"{{$}}
8