Skip to content

Commit 2f79acb

Browse files
committed
[clangd] Unbreak mac build differently 0c96a92
This reverts b56e5f8 (and follow-up f6db885) and instead restores the state we had before 0c96a92: ClangdMain.cpp includes Features.inc before including Transport.h. This is a bit ugly, but it matches the former state and making Transport.h include Features.h means that xpc/ needs to be able to find the generated Features.inc, wich is also a bit ugly.
1 parent 0af9b25 commit 2f79acb

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

clang-tools-extra/clangd/Transport.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
#ifndef LLVM_CLANG_TOOLS_EXTRA_CLANGD_TRANSPORT_H_
1919
#define LLVM_CLANG_TOOLS_EXTRA_CLANGD_TRANSPORT_H_
2020

21-
#include "Features.h"
2221
#include "llvm/ADT/StringRef.h"
2322
#include "llvm/Support/JSON.h"
2423
#include "llvm/Support/raw_ostream.h"

clang-tools-extra/clangd/tool/ClangdMain.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9+
// Must be before Transport.h include.
10+
#include "Features.h"
11+
912
#include "ClangdLSPServer.h"
1013
#include "CodeComplete.h"
1114
#include "Config.h"
1215
#include "ConfigProvider.h"
13-
#include "Features.h"
1416
#include "PathMapping.h"
1517
#include "Protocol.h"
1618
#include "TidyProvider.h"

llvm/utils/gn/secondary/clang-tools-extra/clangd/xpc/BUILD.gn

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ static_library("transport") {
1616
deps = [
1717
":conversions",
1818
"//clang-tools-extra/clangd",
19-
"//clang-tools-extra/clangd:features",
2019
"//clang-tools-extra/clangd/support",
2120
"//llvm/lib/Support",
2221
]

0 commit comments

Comments
 (0)