[clang-tools-extra] b56e5f8 - [clangd] Unbreak mac build after 0c96a92d8666b8

Nico Weber via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 30 09:53:46 PDT 2021


Author: Nico Weber
Date: 2021-06-30T12:53:38-04:00
New Revision: b56e5f8a10c1ec4fd3750bdd269fbad778820326

URL: https://github.com/llvm/llvm-project/commit/b56e5f8a10c1ec4fd3750bdd269fbad778820326
DIFF: https://github.com/llvm/llvm-project/commit/b56e5f8a10c1ec4fd3750bdd269fbad778820326.diff

LOG: [clangd] Unbreak mac build after 0c96a92d8666b8

That commit removed the include of Features.inc from ClangdLSPServer.h,
but ClangdMain.cpp relied on this include to pull in Features.inc for
the #if at the bottom of Transport.h.

Since the include is needed in Transport.h, just add it to there
directly.

Added: 
    

Modified: 
    clang-tools-extra/clangd/Transport.h

Removed: 
    


################################################################################
diff  --git a/clang-tools-extra/clangd/Transport.h b/clang-tools-extra/clangd/Transport.h
index ae6da722d91b..b3db4eba85f9 100644
--- a/clang-tools-extra/clangd/Transport.h
+++ b/clang-tools-extra/clangd/Transport.h
@@ -18,6 +18,7 @@
 #ifndef LLVM_CLANG_TOOLS_EXTRA_CLANGD_TRANSPORT_H_
 #define LLVM_CLANG_TOOLS_EXTRA_CLANGD_TRANSPORT_H_
 
+#include "Features.h"
 #include "llvm/ADT/StringRef.h"
 #include "llvm/Support/JSON.h"
 #include "llvm/Support/raw_ostream.h"


        


More information about the cfe-commits mailing list