1// RUN: mkdir -p %T/foo/bar
2// RUN: cp %p/Inputs/fake_yaml_db.yaml %T/find_all_symbols_db.yaml
3// RUN: cd %T/foo
4// RUN: sed -e 's#//.*$##' %s > bar/test.cpp
5// RUN: clang-include-fixer -db=yaml bar/test.cpp --
6// RUN: FileCheck %s -input-file=bar/test.cpp
7
8// CHECK: #include "foo.h"
9// CHECK: b::a::foo f;
10
11b::a::foo f;
12

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