[clang-tools-extra] a61f34e - [clangd] Fix windows build after 478863ef58c7f7314e06
Sam McCall via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 3 11:18:21 PST 2022
Author: Sam McCall
Date: 2022-01-03T20:17:20+01:00
New Revision: a61f34ea2502d900c57a332174d4c103b6963c80
URL: https://github.com/llvm/llvm-project/commit/a61f34ea2502d900c57a332174d4c103b6963c80
DIFF: https://github.com/llvm/llvm-project/commit/a61f34ea2502d900c57a332174d4c103b6963c80.diff
LOG: [clangd] Fix windows build after 478863ef58c7f7314e06
http://45.33.8.238/win/51774/step_4.txt
MS extension causes the wrong class to be friended.
Added:
Modified:
clang-tools-extra/clangd/Headers.h
Removed:
################################################################################
diff --git a/clang-tools-extra/clangd/Headers.h b/clang-tools-extra/clangd/Headers.h
index 9612ce8def46..3b510325da04 100644
--- a/clang-tools-extra/clangd/Headers.h
+++ b/clang-tools-extra/clangd/Headers.h
@@ -38,6 +38,7 @@ namespace clangd {
// clangd has a built-in database of standard library symbols.
namespace stdlib {
+class Symbol;
// A standard library header, such as <iostream>
// Lightweight class, in fact just an index into a table.
@@ -53,7 +54,7 @@ class Header {
private:
Header(unsigned ID) : ID(ID) {}
unsigned ID;
- friend class Symbol;
+ friend Symbol;
friend llvm::DenseMapInfo<Header>;
friend bool operator==(const Header &L, const Header &R) {
return L.ID == R.ID;
More information about the cfe-commits
mailing list