Parse .h files as objective-c++ if we don't have a compile command.
authorSam McCall <sam.mccall@gmail.com>
Fri, 20 Apr 2018 11:35:17 +0000 (11:35 +0000)
committerSam McCall <sam.mccall@gmail.com>
Fri, 20 Apr 2018 11:35:17 +0000 (11:35 +0000)
commit690dcf12c286548cebb1bb9c50762c33bc651eca
treef165ec5fb8619869b714bad1fd1075148ecfe00b
parent3085cdc99e2fe24bda2c2ccdb29b6711cd1b2a84
Parse .h files as objective-c++ if we don't have a compile command.

Summary: This makes C++/objC not totally broken, without hurting C files too much.

Reviewers: ilya-biryukov

Subscribers: klimek, jkorous-apple, ioeric, cfe-commits

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

llvm-svn: 330418
clang-tools-extra/clangd/GlobalCompilationDatabase.cpp
clang-tools-extra/clangd/GlobalCompilationDatabase.h
clang-tools-extra/unittests/clangd/CMakeLists.txt
clang-tools-extra/unittests/clangd/GlobalCompilationDatabaseTests.cpp [new file with mode: 0644]
clang-tools-extra/unittests/clangd/TestFS.cpp