Summary: * Add a `query-symbol` option to query symbol without parsing the source file. * Update Vim & Emacs integration scripts. Reviewers: bkramer, massberg Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D24075 llvm-svn: 280824
14 lines
510 B
C++
14 lines
510 B
C++
// RUN: clang-include-fixer -db=fixed -input='foo= "foo.h","bar.h"' -query-symbol="foo" test.cpp -- | FileCheck %s
|
|
|
|
// CHECK: "FilePath": "test.cpp",
|
|
// CHECK-NEXT:"QuerySymbolInfos": [
|
|
// CHECK-NEXT: {"RawIdentifier": "foo",
|
|
// CHECK-NEXT: "Range":{"Offset":0,"Length":0}}
|
|
// CHECK-NEXT:],
|
|
// CHECK-NEXT:"HeaderInfos": [
|
|
// CHECK-NEXT: {"Header": "\"foo.h\"",
|
|
// CHECK-NEXT: "QualifiedName": "foo"},
|
|
// CHECK-NEXT: {"Header": "\"bar.h\"",
|
|
// CHECK-NEXT: "QualifiedName": "foo"}
|
|
// CHECK-NEXT:]
|