summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2019-04-10 16:48:52 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2019-04-10 16:48:52 +0000
commite1b9b9dc15cf14b849d70eafab2257a2bbb6fbb5 (patch)
treeefade5bbc3935b344261ea03f7b62e63949d1152
parentb9a00cb504b6ddf4982ad7995d445b8f19f465b6 (diff)
downloadbcm5719-llvm-e1b9b9dc15cf14b849d70eafab2257a2bbb6fbb5.tar.gz
bcm5719-llvm-e1b9b9dc15cf14b849d70eafab2257a2bbb6fbb5.zip
clangd: fix the build with XPC
`Transport.h` does not include `Features.inc`. However, since it is used in a subdirectory, it cannot directly include the header as it is not available. Include `Features.inc` in `ClangdLSPServer.h` prior to the inclusion of `Transport.h` which will provide the interfaces in `ClangdMain.cpp` where the symbol `newXPCTransport` will not be defined due to it being preprocessed away since the configuration is not passed along to the initial inclusion. llvm-svn: 358103
-rw-r--r--clang-tools-extra/clangd/ClangdLSPServer.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang-tools-extra/clangd/ClangdLSPServer.h b/clang-tools-extra/clangd/ClangdLSPServer.h
index d30c47e6a47..171ba075696 100644
--- a/clang-tools-extra/clangd/ClangdLSPServer.h
+++ b/clang-tools-extra/clangd/ClangdLSPServer.h
@@ -11,6 +11,7 @@
#include "ClangdServer.h"
#include "DraftStore.h"
+#include "Features.inc"
#include "FindSymbols.h"
#include "GlobalCompilationDatabase.h"
#include "Path.h"
OpenPOWER on IntegriCloud