Haojian Wu 67e94c9dc8 [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
2023-07-05 13:30:26 +02:00

8 lines
349 B
C++

// RUN: cp %s %t.cpp
// RUN: clang-include-cleaner -edit %t.cpp -- -I%S/Inputs/modules -fimplicit-module-maps -fmodules-strict-decluse -fmodule-name=XA
// RUN: FileCheck --match-full-lines --check-prefix=EDIT %s < %t.cpp
// Verify the tool still works on compilable-but-layering-violation code.
#include "a.h"
// EDIT-NOT: {{^}}#include "a.h"{{$}}