1// RUN: clang-include-fixer -db=yaml -input=%S/Inputs/fake_yaml_db.yaml -output-headers %s -- | FileCheck %s
2// RUN: clang-include-fixer -query-symbol bar -db=yaml -input=%S/Inputs/fake_yaml_db.yaml -output-headers %s -- | FileCheck %s
3
4// CHECK: "HeaderInfos": [
5// CHECK-NEXT: {"Header": "\"test/clang-include-fixer/baz.h\"",
6// CHECK-NEXT: "QualifiedName": "c::bar"},
7// CHECK-NEXT: {"Header": "\"../include/bar.h\"",
8// CHECK-NEXT: "QualifiedName": "b::a::bar"},
9// CHECK-NEXT: {"Header": "\"../include/zbar.h\"",
10// CHECK-NEXT: "QualifiedName": "b::a::bar"}
11// CHECK-NEXT:]
12
13bar b;
14

source code of clang-tools-extra/test/clang-include-fixer/ranking.cpp