Summary: And some improvements: * Show better error messages on unfound symbols. * Fix a typo. Reviewers: bkramer Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D20827 llvm-svn: 271382
12 lines
466 B
C++
12 lines
466 B
C++
// REQUIRES: shell
|
|
// 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: cat %t.cpp | clang-include-fixer -stdin -insert-header='{SymbolIdentifier: foo, Headers: ["\"foo.h\""]}' %t.cpp | FileCheck %s -check-prefix=CHECK
|
|
//
|
|
// CHECK-HEADERS: "Headers": [ "\"foo.h\"", "\"bar.h\"" ]
|
|
//
|
|
// CHECK: #include "foo.h"
|
|
// CHECK: foo f;
|
|
|
|
foo f;
|