Changeset View
Changeset View
Standalone View
Standalone View
test/include-fixer/commandline_options.cpp
// REQUIRES: shell | // REQUIRES: shell | ||||
// RUN: sed -e 's#//.*$##' %s > %t.cpp | // RUN: sed -e 's#//.*$##' %s > %t.cpp | ||||
// RUN: clang-include-fixer -db=fixed -input='foo= "foo.h","bar.h"' -output-headers %t.cpp -- | FileCheck %s -check-prefix=CHECK-HEADERS | // RUN: clang-include-fixer -db=fixed -input='foo= "foo.h","bar.h"' -output-headers %t.cpp -- | FileCheck %s -check-prefix=CHECK-HEADERS | ||||
// RUN: cat %t.cpp | clang-include-fixer -stdin -insert-header='"foo.h"' %t.cpp | FileCheck %s -check-prefix=CHECK | // RUN: cat %t.cpp | clang-include-fixer -stdin -insert-header='{SymbolIdentifier: foo, Headers: ["\"foo.h\""]}' %t.cpp | FileCheck %s -check-prefix=CHECK | ||||
// | // | ||||
// CHECK-HEADERS: "foo.h" | // CHECK-HEADERS: "Headers": [ "\"foo.h\"", "\"bar.h\"" ] | ||||
// CHECK-HEADERS: "bar.h" | |||||
// | // | ||||
// CHECK: #include "foo.h" | // CHECK: #include "foo.h" | ||||
// CHECK: foo f; | // CHECK: foo f; | ||||
foo f; | foo f; |