Make test more lenient for custom clang version strings
[llvm-project.git] / clang-tools-extra / test / clang-include-fixer / yamldb_autodetect.cpp
blob1997390d5a2c5efb73378ed961946308c0876e46
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
8 // CHECK: #include "foo.h"
9 // CHECK: b::a::foo f;
11 b::a::foo f;