[clang-query] Continue if compilation command not found for some files
authorGeorge Karpenkov <ekarpenkov@apple.com>
Wed, 5 Dec 2018 02:02:40 +0000 (02:02 +0000)
committerGeorge Karpenkov <ekarpenkov@apple.com>
Wed, 5 Dec 2018 02:02:40 +0000 (02:02 +0000)
commitd499725b8ffa4826e1fb4f7d2a87f5bcf1540229
treed1de0e609062924b64ec982cc93f5ee9b5c8720c
parent8076c57fd2f9ec89f2f64bc22abae96dec7c2e99
[clang-query] Continue if compilation command not found for some files

When searching for a code pattern in an entire project with a
compilation database it's tempting to run

```
clang-query **.cpp
```

And yet, that often breaks because some files are just not in the
compilation database: tests, sample code, etc..
clang-query should not stop when encountering such cases.

Differential Revision: https://reviews.llvm.org/D51183

llvm-svn: 348328
clang-tools-extra/clang-query/tool/ClangQuery.cpp