[clangd] Simplify code handling compile commands
authorIlya Biryukov <ibiryukov@google.com>
Tue, 23 Jan 2018 15:07:52 +0000 (15:07 +0000)
committerIlya Biryukov <ibiryukov@google.com>
Tue, 23 Jan 2018 15:07:52 +0000 (15:07 +0000)
commit82b59ae4281b96cb6b5df5208778e2956bc1b26d
tree7df151a9f95f0c86c2b734109fa45f141a47a5b6
parentb1d949fa0c25a1df806da87f9585df8b0773bc4e
[clangd] Simplify code handling compile commands

Summary:
CppFile can now change compilation arguments during rebuild. This allows
simplifying code that manages CppFiles.

Reviewers: sammccall, bkramer, jkorous-apple

Reviewed By: sammccall

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

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

llvm-svn: 323204
clang-tools-extra/clangd/ClangdServer.cpp
clang-tools-extra/clangd/ClangdServer.h
clang-tools-extra/clangd/ClangdUnit.cpp
clang-tools-extra/clangd/ClangdUnit.h
clang-tools-extra/clangd/ClangdUnitStore.cpp
clang-tools-extra/clangd/ClangdUnitStore.h