bolt/deps/llvm-18.1.8/clang-tools-extra/include-cleaner/test/module.cpp

8 lines
349 B
C++
Raw Normal View History

2025-02-14 19:21:04 +01:00
// 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"{{$}}