[clangd] Parse files without extensions if we don't have a compile command.
authorHaojian Wu <hokein@google.com>
Tue, 18 Jun 2019 11:54:17 +0000 (11:54 +0000)
committerHaojian Wu <hokein@google.com>
Tue, 18 Jun 2019 11:54:17 +0000 (11:54 +0000)
commit8ddf31bc33e6c29dca82d640c0c9bab7a67080fa
treea815b52fd1c5f5e657991fcb4e29fa86e5474c64
parent40fdd7a643b5d02e4bd63ce280a5fe53aa03fdef
[clangd] Parse files without extensions if we don't have a compile command.

Summary: This would enable clangd for C++ standard library files.

Reviewers: sammccall

Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, kadircet, cfe-commits

Tags: #clang

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

llvm-svn: 363663
clang-tools-extra/clangd/GlobalCompilationDatabase.cpp
clang-tools-extra/clangd/unittests/GlobalCompilationDatabaseTests.cpp