clangd: fix the build with XPC
authorSaleem Abdulrasool <compnerd@compnerd.org>
Wed, 10 Apr 2019 16:48:52 +0000 (16:48 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Wed, 10 Apr 2019 16:48:52 +0000 (16:48 +0000)
`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

clang-tools-extra/clangd/ClangdLSPServer.h

index d30c47e..171ba07 100644 (file)
@@ -11,6 +11,7 @@
 
 #include "ClangdServer.h"
 #include "DraftStore.h"
+#include "Features.inc"
 #include "FindSymbols.h"
 #include "GlobalCompilationDatabase.h"
 #include "Path.h"