mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-17 01:56:36 +00:00

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
8 lines
349 B
C++
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"{{$}}
|