[clangd] Config: config struct propagated through Context
authorSam McCall <sam.mccall@gmail.com>
Thu, 25 Jun 2020 21:42:36 +0000 (23:42 +0200)
committerSam McCall <sam.mccall@gmail.com>
Mon, 29 Jun 2020 18:18:48 +0000 (20:18 +0200)
commit9963d93b0731e21dd1c9c1cebf8baaecf2010330
treebf233cb002a2f0d0479776ce985cd6c1f3b00078
parentb8a6f58f696fd1113149a557ac4ecd8cd33688f7
[clangd] Config: config struct propagated through Context

Summary:
This introduces the "semantic form" of config exposed to features,
contrasted with the "syntactic form" exposed to users in e9fb1506b83d.

The two are not connected, CompiledFragment and Provider will bridge that gap.
Nor is configuration actually set: that needs changes to ClangdServer,
TUScheduler, and BackgroundQueue.

Reviewers: hokein, kadircet

Subscribers: mgorny, ilya-biryukov, MaskRay, jkorous, arphaman, usaxena95, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D82606
clang-tools-extra/clangd/CMakeLists.txt
clang-tools-extra/clangd/CompileCommands.cpp
clang-tools-extra/clangd/Config.cpp [new file with mode: 0644]
clang-tools-extra/clangd/Config.h [new file with mode: 0644]
clang-tools-extra/clangd/unittests/CompileCommandsTests.cpp