This typically happens when the user didn't setup include paths correctly and the fixer starts adding garbage includes. Avoid that. Disable the error limit though, as we might hit that easily with missing includes and still want to fix those cases. llvm-svn: 269923
12 lines
288 B
C++
12 lines
288 B
C++
// REQUIRES: shell
|
|
// RUN: sed -e 's#//.*$##' %s > %t.cpp
|
|
// RUN: not clang-include-fixer -db=fixed -input='foo= "foo.h"' %t.cpp --
|
|
// RUN: FileCheck %s -input-file=%t.cpp
|
|
|
|
// CHECK-NOT: #include
|
|
// CHECK: #include "doesnotexist.h"
|
|
// CHECK-NEXT: foo f;
|
|
|
|
#include "doesnotexist.h"
|
|
foo f;
|